public class DescribeAlarmHistoryRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
DescribeAlarmHistory operation
.
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.
NOTE: Amazon CloudWatch retains the history of an alarm for two weeks, whether or not you delete the alarm.
NOOP
Constructor and Description |
---|
DescribeAlarmHistoryRequest() |
Modifier and Type | Method and Description |
---|---|
DescribeAlarmHistoryRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getAlarmName()
The name of the alarm.
|
Date |
getEndDate()
The ending date to retrieve alarm history.
|
String |
getHistoryItemType()
The type of alarm histories to retrieve.
|
Integer |
getMaxRecords()
The maximum number of alarm history records to retrieve.
|
String |
getNextToken()
The token returned by a previous call to indicate that there is more
data available.
|
Date |
getStartDate()
The starting date to retrieve alarm history.
|
int |
hashCode() |
void |
setAlarmName(String alarmName)
The name of the alarm.
|
void |
setEndDate(Date endDate)
The ending date to retrieve alarm history.
|
void |
setHistoryItemType(HistoryItemType historyItemType)
The type of alarm histories to retrieve.
|
void |
setHistoryItemType(String historyItemType)
The type of alarm histories to retrieve.
|
void |
setMaxRecords(Integer maxRecords)
The maximum number of alarm history records to retrieve.
|
void |
setNextToken(String nextToken)
The token returned by a previous call to indicate that there is more
data available.
|
void |
setStartDate(Date startDate)
The starting date to retrieve alarm history.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeAlarmHistoryRequest |
withAlarmName(String alarmName)
The name of the alarm.
|
DescribeAlarmHistoryRequest |
withEndDate(Date endDate)
The ending date to retrieve alarm history.
|
DescribeAlarmHistoryRequest |
withHistoryItemType(HistoryItemType historyItemType)
The type of alarm histories to retrieve.
|
DescribeAlarmHistoryRequest |
withHistoryItemType(String historyItemType)
The type of alarm histories to retrieve.
|
DescribeAlarmHistoryRequest |
withMaxRecords(Integer maxRecords)
The maximum number of alarm history records to retrieve.
|
DescribeAlarmHistoryRequest |
withNextToken(String nextToken)
The token returned by a previous call to indicate that there is more
data available.
|
DescribeAlarmHistoryRequest |
withStartDate(Date startDate)
The starting date to retrieve alarm history.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getAlarmName()
Constraints:
Length: 1 - 255
public void setAlarmName(String alarmName)
Constraints:
Length: 1 - 255
alarmName
- The name of the alarm.public DescribeAlarmHistoryRequest withAlarmName(String alarmName)
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 String getHistoryItemType()
Constraints:
Allowed Values: ConfigurationUpdate, StateUpdate, Action
HistoryItemType
public void setHistoryItemType(String historyItemType)
Constraints:
Allowed Values: ConfigurationUpdate, StateUpdate, Action
historyItemType
- The type of alarm histories to retrieve.HistoryItemType
public DescribeAlarmHistoryRequest withHistoryItemType(String historyItemType)
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)
Constraints:
Allowed Values: ConfigurationUpdate, StateUpdate, Action
historyItemType
- The type of alarm histories to retrieve.HistoryItemType
public DescribeAlarmHistoryRequest withHistoryItemType(HistoryItemType historyItemType)
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 Date getStartDate()
public void setStartDate(Date startDate)
startDate
- The starting date to retrieve alarm history.public DescribeAlarmHistoryRequest withStartDate(Date startDate)
Returns a reference to this object so that method calls can be chained together.
startDate
- The starting date to retrieve alarm history.public Date getEndDate()
public void setEndDate(Date endDate)
endDate
- The ending date to retrieve alarm history.public DescribeAlarmHistoryRequest withEndDate(Date endDate)
Returns a reference to this object so that method calls can be chained together.
endDate
- The ending date to retrieve alarm history.public Integer getMaxRecords()
Constraints:
Range: 1 - 100
public void setMaxRecords(Integer maxRecords)
Constraints:
Range: 1 - 100
maxRecords
- The maximum number of alarm history records to retrieve.public DescribeAlarmHistoryRequest withMaxRecords(Integer maxRecords)
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 String getNextToken()
public void setNextToken(String nextToken)
nextToken
- The token returned by a previous call to indicate that there is more
data available.public DescribeAlarmHistoryRequest withNextToken(String nextToken)
Returns a reference to this object so that method calls can be chained together.
nextToken
- The token returned by a previous call to indicate that there is more
data available.public String toString()
toString
in class Object
Object.toString()
public DescribeAlarmHistoryRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.