public class DescribeAlarmHistoryRequest extends AmazonWebServiceRequest implements java.io.Serializable
Retrieves history for the specified alarm. Filter alarms by date range or item type. If an alarm name is not specified, Amazon CloudWatch returns histories for all of the owner's alarms.
Constructor and Description |
---|
DescribeAlarmHistoryRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAlarmName()
The name of the alarm.
|
java.util.Date |
getEndDate()
The ending date to retrieve alarm history.
|
java.lang.String |
getHistoryItemType()
The type of alarm histories to retrieve.
|
java.lang.Integer |
getMaxRecords()
The maximum number of alarm history records to retrieve.
|
java.lang.String |
getNextToken()
The token returned by a previous call to indicate that there is more data
available.
|
java.util.Date |
getStartDate()
The starting date to retrieve alarm history.
|
int |
hashCode() |
void |
setAlarmName(java.lang.String alarmName)
The name of the alarm.
|
void |
setEndDate(java.util.Date endDate)
The ending date to retrieve alarm history.
|
void |
setHistoryItemType(HistoryItemType historyItemType)
The type of alarm histories to retrieve.
|
void |
setHistoryItemType(java.lang.String historyItemType)
The type of alarm histories to retrieve.
|
void |
setMaxRecords(java.lang.Integer maxRecords)
The maximum number of alarm history records to retrieve.
|
void |
setNextToken(java.lang.String nextToken)
The token returned by a previous call to indicate that there is more data
available.
|
void |
setStartDate(java.util.Date startDate)
The starting date to retrieve alarm history.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeAlarmHistoryRequest |
withAlarmName(java.lang.String alarmName)
The name of the alarm.
|
DescribeAlarmHistoryRequest |
withEndDate(java.util.Date endDate)
The ending date to retrieve alarm history.
|
DescribeAlarmHistoryRequest |
withHistoryItemType(HistoryItemType historyItemType)
The type of alarm histories to retrieve.
|
DescribeAlarmHistoryRequest |
withHistoryItemType(java.lang.String historyItemType)
The type of alarm histories to retrieve.
|
DescribeAlarmHistoryRequest |
withMaxRecords(java.lang.Integer maxRecords)
The maximum number of alarm history records to retrieve.
|
DescribeAlarmHistoryRequest |
withNextToken(java.lang.String nextToken)
The token returned by a previous call to indicate that there is more data
available.
|
DescribeAlarmHistoryRequest |
withStartDate(java.util.Date startDate)
The starting date to retrieve alarm history.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getAlarmName()
The name of the alarm.
Constraints:
Length: 1 - 255
The name of the alarm.
public void setAlarmName(java.lang.String alarmName)
The name of the alarm.
Constraints:
Length: 1 - 255
alarmName
- The name of the alarm.
public DescribeAlarmHistoryRequest withAlarmName(java.lang.String alarmName)
The name of the alarm.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
alarmName
- The name of the alarm.
public java.lang.String getHistoryItemType()
The type of alarm histories to retrieve.
Constraints:
Allowed Values: ConfigurationUpdate, StateUpdate, Action
The type of alarm histories to retrieve.
HistoryItemType
public void setHistoryItemType(java.lang.String historyItemType)
The type of alarm histories to retrieve.
Constraints:
Allowed Values: ConfigurationUpdate, StateUpdate, Action
historyItemType
- The type of alarm histories to retrieve.
HistoryItemType
public DescribeAlarmHistoryRequest withHistoryItemType(java.lang.String historyItemType)
The type of alarm histories to retrieve.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ConfigurationUpdate, StateUpdate, Action
historyItemType
- The type of alarm histories to retrieve.
HistoryItemType
public void setHistoryItemType(HistoryItemType historyItemType)
The type of alarm histories to retrieve.
Constraints:
Allowed Values: ConfigurationUpdate, StateUpdate, Action
historyItemType
- The type of alarm histories to retrieve.
HistoryItemType
public DescribeAlarmHistoryRequest withHistoryItemType(HistoryItemType historyItemType)
The type of alarm histories to retrieve.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ConfigurationUpdate, StateUpdate, Action
historyItemType
- The type of alarm histories to retrieve.
HistoryItemType
public java.util.Date getStartDate()
The starting date to retrieve alarm history.
The starting date to retrieve alarm history.
public void setStartDate(java.util.Date startDate)
The starting date to retrieve alarm history.
startDate
- The starting date to retrieve alarm history.
public DescribeAlarmHistoryRequest withStartDate(java.util.Date startDate)
The starting date to retrieve alarm history.
Returns a reference to this object so that method calls can be chained together.
startDate
- The starting date to retrieve alarm history.
public java.util.Date getEndDate()
The ending date to retrieve alarm history.
The ending date to retrieve alarm history.
public void setEndDate(java.util.Date endDate)
The ending date to retrieve alarm history.
endDate
- The ending date to retrieve alarm history.
public DescribeAlarmHistoryRequest withEndDate(java.util.Date endDate)
The ending date to retrieve alarm history.
Returns a reference to this object so that method calls can be chained together.
endDate
- The ending date to retrieve alarm history.
public java.lang.Integer getMaxRecords()
The maximum number of alarm history records to retrieve.
Constraints:
Range: 1 - 100
The maximum number of alarm history records to retrieve.
public void setMaxRecords(java.lang.Integer maxRecords)
The maximum number of alarm history records to retrieve.
Constraints:
Range: 1 - 100
maxRecords
- The maximum number of alarm history records to retrieve.
public DescribeAlarmHistoryRequest withMaxRecords(java.lang.Integer maxRecords)
The maximum number of alarm history records to retrieve.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 - 100
maxRecords
- The maximum number of alarm history records to retrieve.
public java.lang.String getNextToken()
The token returned by a previous call to indicate that there is more data available.
Constraints:
Length: 0 - 1024
The token returned by a previous call to indicate that there is more data available.
public void setNextToken(java.lang.String nextToken)
The token returned by a previous call to indicate that there is more data available.
Constraints:
Length: 0 - 1024
nextToken
- The token returned by a previous call to indicate that there is more data available.
public DescribeAlarmHistoryRequest withNextToken(java.lang.String nextToken)
The token returned by a previous call to indicate that there is more data available.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 1024
nextToken
- The token returned by a previous call to indicate that there is more data available.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.