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:
  • Constructor Details

    • PutEventsResult

      public PutEventsResult()
  • Method Details

    • 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) or withEntries(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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public PutEventsResult clone()
      Overrides:
      clone in class Object