public class DescribeAlarmHistoryRequest extends AmazonWebServiceRequest implements java.io.Serializable
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.
| コンストラクタと説明 |
|---|
DescribeAlarmHistoryRequest() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic java.lang.String getAlarmName()
Constraints:
Length: 1 - 255
public void setAlarmName(java.lang.String alarmName)
Constraints:
Length: 1 - 255
alarmName - The name of the alarm.public DescribeAlarmHistoryRequest withAlarmName(java.lang.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 java.lang.String getHistoryItemType()
Constraints:
Allowed Values: ConfigurationUpdate, StateUpdate, Action
HistoryItemTypepublic void setHistoryItemType(java.lang.String historyItemType)
Constraints:
Allowed Values: ConfigurationUpdate, StateUpdate, Action
historyItemType - The type of alarm histories to retrieve.HistoryItemTypepublic DescribeAlarmHistoryRequest withHistoryItemType(java.lang.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.HistoryItemTypepublic void setHistoryItemType(HistoryItemType historyItemType)
Constraints:
Allowed Values: ConfigurationUpdate, StateUpdate, Action
historyItemType - The type of alarm histories to retrieve.HistoryItemTypepublic 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.HistoryItemTypepublic java.util.Date getStartDate()
public void setStartDate(java.util.Date startDate)
startDate - The starting date to retrieve alarm history.public DescribeAlarmHistoryRequest withStartDate(java.util.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 java.util.Date getEndDate()
public void setEndDate(java.util.Date endDate)
endDate - The ending date to retrieve alarm history.public DescribeAlarmHistoryRequest withEndDate(java.util.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 java.lang.Integer getMaxRecords()
Constraints:
Range: 1 - 100
public void setMaxRecords(java.lang.Integer maxRecords)
Constraints:
Range: 1 - 100
maxRecords - The maximum number of alarm history records to retrieve.public DescribeAlarmHistoryRequest withMaxRecords(java.lang.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 java.lang.String getNextToken()
public void setNextToken(java.lang.String nextToken)
nextToken - The token returned by a previous call to indicate that there is more
data available.public DescribeAlarmHistoryRequest withNextToken(java.lang.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 java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object