public class PutEventsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
The result of the PutEvents operation.
Constructor and Description |
---|
PutEventsResult() |
Modifier and Type | Method and 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(Collection<PutEventsResultEntry> entries)
A list of successfully and unsuccessfully ingested events results.
|
PutEventsResult |
withEntries(PutEventsResultEntry... entries)
A list of successfully and unsuccessfully ingested events results.
|
PutEventsResult |
withFailedEntryCount(Integer failedEntryCount)
The number of failed entries.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setFailedEntryCount(Integer failedEntryCount)
The number of failed entries.
failedEntryCount
- The number of failed entries.public Integer getFailedEntryCount()
The number of failed entries.
public PutEventsResult withFailedEntryCount(Integer failedEntryCount)
The number of failed entries.
failedEntryCount
- The number of failed entries.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.
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.
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.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)
or withEntries(java.util.Collection)
if you want to override
the existing values.
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.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.
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.public String toString()
toString
in class Object
Object.toString()
public PutEventsResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.