Class DescribeAlarmHistoryRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.cloudwatch.model.DescribeAlarmHistoryRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class DescribeAlarmHistoryRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description DescribeAlarmHistoryRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setAlarmName
public void setAlarmName(String alarmName)
The name of the alarm.
- Parameters:
alarmName
- The name of the alarm.
-
getAlarmName
public String getAlarmName()
The name of the alarm.
- Returns:
- The name of the alarm.
-
withAlarmName
public DescribeAlarmHistoryRequest withAlarmName(String alarmName)
The name of the alarm.
- Parameters:
alarmName
- The name of the alarm.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHistoryItemType
public void setHistoryItemType(String historyItemType)
The type of alarm histories to retrieve.
- Parameters:
historyItemType
- The type of alarm histories to retrieve.- See Also:
HistoryItemType
-
getHistoryItemType
public String getHistoryItemType()
The type of alarm histories to retrieve.
- Returns:
- The type of alarm histories to retrieve.
- See Also:
HistoryItemType
-
withHistoryItemType
public DescribeAlarmHistoryRequest withHistoryItemType(String historyItemType)
The type of alarm histories to retrieve.
- Parameters:
historyItemType
- The type of alarm histories to retrieve.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
HistoryItemType
-
setHistoryItemType
public void setHistoryItemType(HistoryItemType historyItemType)
The type of alarm histories to retrieve.
- Parameters:
historyItemType
- The type of alarm histories to retrieve.- See Also:
HistoryItemType
-
withHistoryItemType
public DescribeAlarmHistoryRequest withHistoryItemType(HistoryItemType historyItemType)
The type of alarm histories to retrieve.
- Parameters:
historyItemType
- The type of alarm histories to retrieve.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
HistoryItemType
-
setStartDate
public void setStartDate(Date startDate)
The starting date to retrieve alarm history.
- Parameters:
startDate
- The starting date to retrieve alarm history.
-
getStartDate
public Date getStartDate()
The starting date to retrieve alarm history.
- Returns:
- The starting date to retrieve alarm history.
-
withStartDate
public DescribeAlarmHistoryRequest withStartDate(Date startDate)
The starting date to retrieve alarm history.
- Parameters:
startDate
- The starting date to retrieve alarm history.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEndDate
public void setEndDate(Date endDate)
The ending date to retrieve alarm history.
- Parameters:
endDate
- The ending date to retrieve alarm history.
-
getEndDate
public Date getEndDate()
The ending date to retrieve alarm history.
- Returns:
- The ending date to retrieve alarm history.
-
withEndDate
public DescribeAlarmHistoryRequest withEndDate(Date endDate)
The ending date to retrieve alarm history.
- Parameters:
endDate
- The ending date to retrieve alarm history.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMaxRecords
public void setMaxRecords(Integer maxRecords)
The maximum number of alarm history records to retrieve.
- Parameters:
maxRecords
- The maximum number of alarm history records to retrieve.
-
getMaxRecords
public Integer getMaxRecords()
The maximum number of alarm history records to retrieve.
- Returns:
- The maximum number of alarm history records to retrieve.
-
withMaxRecords
public DescribeAlarmHistoryRequest withMaxRecords(Integer maxRecords)
The maximum number of alarm history records to retrieve.
- Parameters:
maxRecords
- The maximum number of alarm history records to retrieve.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextToken
public void setNextToken(String nextToken)
The token returned by a previous call to indicate that there is more data available.
- Parameters:
nextToken
- The token returned by a previous call to indicate that there is more data available.
-
getNextToken
public String getNextToken()
The token returned by a previous call to indicate that there is more data available.
- Returns:
- The token returned by a previous call to indicate that there is more data available.
-
withNextToken
public DescribeAlarmHistoryRequest withNextToken(String nextToken)
The token returned by a previous call to indicate that there is more data available.
- Parameters:
nextToken
- The token returned by a previous call to indicate that there is more data available.- 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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DescribeAlarmHistoryRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-