Class PutEventsResult
- java.lang.Object
-
- com.amazonaws.services.cloudwatchevents.model.PutEventsResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class PutEventsResult extends Object implements Serializable, Cloneable
The result of the PutEvents operation.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PutEventsResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PutEventsResult
clone()
boolean
equals(Object obj)
List<PutEventsResultEntry>
getEntries()
A list of successfully and unsuccessfully ingested events results.Integer
getFailedEntryCount()
The number of failed entries.int
hashCode()
void
setEntries(Collection<PutEventsResultEntry> entries)
A list of successfully and unsuccessfully ingested events results.void
setFailedEntryCount(Integer failedEntryCount)
The number of failed entries.String
toString()
Returns a string representation of this object; useful for testing and debugging.PutEventsResult
withEntries(PutEventsResultEntry... entries)
A list of successfully and unsuccessfully ingested events results.PutEventsResult
withEntries(Collection<PutEventsResultEntry> entries)
A list of successfully and unsuccessfully ingested events results.PutEventsResult
withFailedEntryCount(Integer failedEntryCount)
The number of failed entries.
-
-
-
Method Detail
-
setFailedEntryCount
public void setFailedEntryCount(Integer failedEntryCount)
The number of failed entries.
- Parameters:
failedEntryCount
- The number of failed entries.
-
getFailedEntryCount
public Integer getFailedEntryCount()
The number of failed entries.
- Returns:
- The number of failed entries.
-
withFailedEntryCount
public PutEventsResult withFailedEntryCount(Integer failedEntryCount)
The number of failed entries.
- Parameters:
failedEntryCount
- The number of failed entries.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getEntries
public List<PutEventsResultEntry> getEntries()
A list of successfully and unsuccessfully ingested events results. If the ingestion was successful, the entry will have the event ID in it. If not, then the ErrorCode and ErrorMessage can be used to identify the problem with the entry.
- Returns:
- A list of successfully and unsuccessfully ingested events results. If the ingestion was successful, the entry will have the event ID in it. If not, then the ErrorCode and ErrorMessage can be used to identify the problem with the entry.
-
setEntries
public void setEntries(Collection<PutEventsResultEntry> entries)
A list of successfully and unsuccessfully ingested events results. If the ingestion was successful, the entry will have the event ID in it. If not, then the ErrorCode and ErrorMessage can be used to identify the problem with the entry.
- Parameters:
entries
- A list of successfully and unsuccessfully ingested events results. If the ingestion was successful, the entry will have the event ID in it. If not, then the ErrorCode and ErrorMessage can be used to identify the problem with the entry.
-
withEntries
public PutEventsResult withEntries(PutEventsResultEntry... entries)
A list of successfully and unsuccessfully ingested events results. If the ingestion was successful, the entry will have the event ID in it. If not, then the ErrorCode and ErrorMessage can be used to identify the problem with the entry.
NOTE: This method appends the values to the existing list (if any). Use
setEntries(java.util.Collection)
orwithEntries(java.util.Collection)
if you want to override the existing values.- Parameters:
entries
- A list of successfully and unsuccessfully ingested events results. If the ingestion was successful, the entry will have the event ID in it. If not, then the ErrorCode and ErrorMessage can be used to identify the problem with the entry.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withEntries
public PutEventsResult withEntries(Collection<PutEventsResultEntry> entries)
A list of successfully and unsuccessfully ingested events results. If the ingestion was successful, the entry will have the event ID in it. If not, then the ErrorCode and ErrorMessage can be used to identify the problem with the entry.
- Parameters:
entries
- A list of successfully and unsuccessfully ingested events results. If the ingestion was successful, the entry will have the event ID in it. If not, then the ErrorCode and ErrorMessage can be used to identify the problem with the entry.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public PutEventsResult clone()
-
-