Class DescribeAlarmHistoryResult

java.lang.Object
com.amazonaws.services.cloudwatch.model.DescribeAlarmHistoryResult
All Implemented Interfaces:
Serializable, Cloneable

public class DescribeAlarmHistoryResult extends Object implements Serializable, Cloneable

The output for the DescribeAlarmHistory action.

See Also:
  • Constructor Details

    • DescribeAlarmHistoryResult

      public DescribeAlarmHistoryResult()
  • Method Details

    • getAlarmHistoryItems

      public List<AlarmHistoryItem> getAlarmHistoryItems()

      A list of alarm histories in JSON format.

      Returns:
      A list of alarm histories in JSON format.
    • setAlarmHistoryItems

      public void setAlarmHistoryItems(Collection<AlarmHistoryItem> alarmHistoryItems)

      A list of alarm histories in JSON format.

      Parameters:
      alarmHistoryItems - A list of alarm histories in JSON format.
    • withAlarmHistoryItems

      public DescribeAlarmHistoryResult withAlarmHistoryItems(AlarmHistoryItem... alarmHistoryItems)

      A list of alarm histories in JSON format.

      NOTE: This method appends the values to the existing list (if any). Use setAlarmHistoryItems(java.util.Collection) or withAlarmHistoryItems(java.util.Collection) if you want to override the existing values.

      Parameters:
      alarmHistoryItems - A list of alarm histories in JSON format.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withAlarmHistoryItems

      public DescribeAlarmHistoryResult withAlarmHistoryItems(Collection<AlarmHistoryItem> alarmHistoryItems)

      A list of alarm histories in JSON format.

      Parameters:
      alarmHistoryItems - A list of alarm histories in JSON format.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setNextToken

      public void setNextToken(String nextToken)

      A string that marks the start of the next batch of returned results.

      Parameters:
      nextToken - A string that marks the start of the next batch of returned results.
    • getNextToken

      public String getNextToken()

      A string that marks the start of the next batch of returned results.

      Returns:
      A string that marks the start of the next batch of returned results.
    • withNextToken

      public DescribeAlarmHistoryResult withNextToken(String nextToken)

      A string that marks the start of the next batch of returned results.

      Parameters:
      nextToken - A string that marks the start of the next batch of returned results.
      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

      Overrides:
      clone in class Object