public class PutEventsResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The result of the PutEvents operation.
Modifier and Type | Field and Description |
---|---|
private java.util.List<PutEventsResultEntry> |
entries
A list of successfully and unsuccessfully ingested events results.
|
private java.lang.Integer |
failedEntryCount
The number of failed entries.
|
Constructor and Description |
---|
PutEventsResult() |
Modifier and Type | Method and Description |
---|---|
PutEventsResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<PutEventsResultEntry> |
getEntries()
A list of successfully and unsuccessfully ingested events results.
|
java.lang.Integer |
getFailedEntryCount()
The number of failed entries.
|
int |
hashCode() |
void |
setEntries(java.util.Collection<PutEventsResultEntry> entries)
A list of successfully and unsuccessfully ingested events results.
|
void |
setFailedEntryCount(java.lang.Integer failedEntryCount)
The number of failed entries.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutEventsResult |
withEntries(java.util.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(java.lang.Integer failedEntryCount)
The number of failed entries.
|
private java.lang.Integer failedEntryCount
The number of failed entries.
private java.util.List<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.
public void setFailedEntryCount(java.lang.Integer failedEntryCount)
The number of failed entries.
failedEntryCount
- The number of failed entries.public java.lang.Integer getFailedEntryCount()
The number of failed entries.
public PutEventsResult withFailedEntryCount(java.lang.Integer failedEntryCount)
The number of failed entries.
failedEntryCount
- The number of failed entries.public java.util.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(java.util.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(java.util.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public PutEventsResult clone()
clone
in class java.lang.Object