@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeAlarmHistoryRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
DescribeAlarmHistoryRequest() |
Modifier and Type | Method and Description |
---|---|
DescribeAlarmHistoryRequest |
clone() |
boolean |
equals(Object obj) |
String |
getAlarmName()
The name of the alarm.
|
List<String> |
getAlarmTypes()
Use this parameter to specify whether you want the operation to return metric alarms or composite alarms.
|
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.
|
String |
getScanBy()
Specified whether to return the newest or oldest alarm history first.
|
Date |
getStartDate()
The starting date to retrieve alarm history.
|
int |
hashCode() |
void |
setAlarmName(String alarmName)
The name of the alarm.
|
void |
setAlarmTypes(Collection<String> alarmTypes)
Use this parameter to specify whether you want the operation to return metric alarms or composite alarms.
|
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 |
setScanBy(ScanBy scanBy)
Specified whether to return the newest or oldest alarm history first.
|
void |
setScanBy(String scanBy)
Specified whether to return the newest or oldest alarm history first.
|
void |
setStartDate(Date startDate)
The starting date to retrieve alarm history.
|
String |
toString()
Returns a string representation of this object.
|
DescribeAlarmHistoryRequest |
withAlarmName(String alarmName)
The name of the alarm.
|
DescribeAlarmHistoryRequest |
withAlarmTypes(AlarmType... alarmTypes)
Use this parameter to specify whether you want the operation to return metric alarms or composite alarms.
|
DescribeAlarmHistoryRequest |
withAlarmTypes(Collection<String> alarmTypes)
Use this parameter to specify whether you want the operation to return metric alarms or composite alarms.
|
DescribeAlarmHistoryRequest |
withAlarmTypes(String... alarmTypes)
Use this parameter to specify whether you want the operation to return metric alarms or composite alarms.
|
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 |
withScanBy(ScanBy scanBy)
Specified whether to return the newest or oldest alarm history first.
|
DescribeAlarmHistoryRequest |
withScanBy(String scanBy)
Specified whether to return the newest or oldest alarm history first.
|
DescribeAlarmHistoryRequest |
withStartDate(Date startDate)
The starting date to retrieve alarm history.
|
addHandlerContext, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setAlarmName(String alarmName)
The name of the alarm.
alarmName
- The name of the alarm.public String getAlarmName()
The name of the alarm.
public DescribeAlarmHistoryRequest withAlarmName(String alarmName)
The name of the alarm.
alarmName
- The name of the alarm.public List<String> getAlarmTypes()
Use this parameter to specify whether you want the operation to return metric alarms or composite alarms. If you omit this parameter, only metric alarms are returned.
AlarmType
public void setAlarmTypes(Collection<String> alarmTypes)
Use this parameter to specify whether you want the operation to return metric alarms or composite alarms. If you omit this parameter, only metric alarms are returned.
alarmTypes
- Use this parameter to specify whether you want the operation to return metric alarms or composite alarms.
If you omit this parameter, only metric alarms are returned.AlarmType
public DescribeAlarmHistoryRequest withAlarmTypes(String... alarmTypes)
Use this parameter to specify whether you want the operation to return metric alarms or composite alarms. If you omit this parameter, only metric alarms are returned.
NOTE: This method appends the values to the existing list (if any). Use
setAlarmTypes(java.util.Collection)
or withAlarmTypes(java.util.Collection)
if you want to
override the existing values.
alarmTypes
- Use this parameter to specify whether you want the operation to return metric alarms or composite alarms.
If you omit this parameter, only metric alarms are returned.AlarmType
public DescribeAlarmHistoryRequest withAlarmTypes(Collection<String> alarmTypes)
Use this parameter to specify whether you want the operation to return metric alarms or composite alarms. If you omit this parameter, only metric alarms are returned.
alarmTypes
- Use this parameter to specify whether you want the operation to return metric alarms or composite alarms.
If you omit this parameter, only metric alarms are returned.AlarmType
public DescribeAlarmHistoryRequest withAlarmTypes(AlarmType... alarmTypes)
Use this parameter to specify whether you want the operation to return metric alarms or composite alarms. If you omit this parameter, only metric alarms are returned.
alarmTypes
- Use this parameter to specify whether you want the operation to return metric alarms or composite alarms.
If you omit this parameter, only metric alarms are returned.AlarmType
public void setHistoryItemType(String historyItemType)
The type of alarm histories to retrieve.
historyItemType
- The type of alarm histories to retrieve.HistoryItemType
public String getHistoryItemType()
The type of alarm histories to retrieve.
HistoryItemType
public DescribeAlarmHistoryRequest withHistoryItemType(String historyItemType)
The type of alarm histories to retrieve.
historyItemType
- The type of alarm histories to retrieve.HistoryItemType
public void setHistoryItemType(HistoryItemType historyItemType)
The type of alarm histories to retrieve.
historyItemType
- The type of alarm histories to retrieve.HistoryItemType
public DescribeAlarmHistoryRequest withHistoryItemType(HistoryItemType historyItemType)
The type of alarm histories to retrieve.
historyItemType
- The type of alarm histories to retrieve.HistoryItemType
public void setStartDate(Date startDate)
The starting date to retrieve alarm history.
startDate
- The starting date to retrieve alarm history.public Date getStartDate()
The starting date to retrieve alarm history.
public DescribeAlarmHistoryRequest withStartDate(Date startDate)
The starting date to retrieve alarm history.
startDate
- The starting date to retrieve alarm history.public void setEndDate(Date endDate)
The ending date to retrieve alarm history.
endDate
- The ending date to retrieve alarm history.public Date getEndDate()
The ending date to retrieve alarm history.
public DescribeAlarmHistoryRequest withEndDate(Date endDate)
The ending date to retrieve alarm history.
endDate
- The ending date to retrieve alarm history.public void setMaxRecords(Integer maxRecords)
The maximum number of alarm history records to retrieve.
maxRecords
- The maximum number of alarm history records to retrieve.public Integer getMaxRecords()
The maximum number of alarm history records to retrieve.
public DescribeAlarmHistoryRequest withMaxRecords(Integer maxRecords)
The maximum number of alarm history records to retrieve.
maxRecords
- The maximum number of alarm history records to retrieve.public void setNextToken(String nextToken)
The token returned by a previous call to indicate that there is more data available.
nextToken
- The token returned by a previous call to indicate that there is more data available.public String getNextToken()
The token returned by a previous call to indicate that there is more data available.
public DescribeAlarmHistoryRequest withNextToken(String nextToken)
The token returned by a previous call to indicate that there is more data available.
nextToken
- The token returned by a previous call to indicate that there is more data available.public void setScanBy(String scanBy)
Specified whether to return the newest or oldest alarm history first. Specify TimestampDescending
to
have the newest event history returned first, and specify TimestampAscending
to have the oldest
history returned first.
scanBy
- Specified whether to return the newest or oldest alarm history first. Specify
TimestampDescending
to have the newest event history returned first, and specify
TimestampAscending
to have the oldest history returned first.ScanBy
public String getScanBy()
Specified whether to return the newest or oldest alarm history first. Specify TimestampDescending
to
have the newest event history returned first, and specify TimestampAscending
to have the oldest
history returned first.
TimestampDescending
to have the newest event history returned first, and specify
TimestampAscending
to have the oldest history returned first.ScanBy
public DescribeAlarmHistoryRequest withScanBy(String scanBy)
Specified whether to return the newest or oldest alarm history first. Specify TimestampDescending
to
have the newest event history returned first, and specify TimestampAscending
to have the oldest
history returned first.
scanBy
- Specified whether to return the newest or oldest alarm history first. Specify
TimestampDescending
to have the newest event history returned first, and specify
TimestampAscending
to have the oldest history returned first.ScanBy
public void setScanBy(ScanBy scanBy)
Specified whether to return the newest or oldest alarm history first. Specify TimestampDescending
to
have the newest event history returned first, and specify TimestampAscending
to have the oldest
history returned first.
scanBy
- Specified whether to return the newest or oldest alarm history first. Specify
TimestampDescending
to have the newest event history returned first, and specify
TimestampAscending
to have the oldest history returned first.ScanBy
public DescribeAlarmHistoryRequest withScanBy(ScanBy scanBy)
Specified whether to return the newest or oldest alarm history first. Specify TimestampDescending
to
have the newest event history returned first, and specify TimestampAscending
to have the oldest
history returned first.
scanBy
- Specified whether to return the newest or oldest alarm history first. Specify
TimestampDescending
to have the newest event history returned first, and specify
TimestampAscending
to have the oldest history returned first.ScanBy
public String toString()
toString
in class Object
Object.toString()
public DescribeAlarmHistoryRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2023. All rights reserved.