@Generated(value="software.amazon.awssdk:codegen") public final class DescribeAlarmHistoryRequest extends CloudWatchRequest implements ToCopyableBuilder<DescribeAlarmHistoryRequest.Builder,DescribeAlarmHistoryRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
DescribeAlarmHistoryRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
alarmName()
The name of the alarm.
|
List<AlarmType> |
alarmTypes()
Use this parameter to specify whether you want the operation to return metric alarms or composite alarms.
|
List<String> |
alarmTypesAsStrings()
Use this parameter to specify whether you want the operation to return metric alarms or composite alarms.
|
static DescribeAlarmHistoryRequest.Builder |
builder() |
Instant |
endDate()
The ending date to retrieve alarm history.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAlarmTypes()
Returns true if the AlarmTypes property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
int |
hashCode() |
HistoryItemType |
historyItemType()
The type of alarm histories to retrieve.
|
String |
historyItemTypeAsString()
The type of alarm histories to retrieve.
|
Integer |
maxRecords()
The maximum number of alarm history records to retrieve.
|
String |
nextToken()
The token returned by a previous call to indicate that there is more data available.
|
ScanBy |
scanBy()
Specified whether to return the newest or oldest alarm history first.
|
String |
scanByAsString()
Specified whether to return the newest or oldest alarm history first.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends DescribeAlarmHistoryRequest.Builder> |
serializableBuilderClass() |
Instant |
startDate()
The starting date to retrieve alarm history.
|
DescribeAlarmHistoryRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String alarmName()
The name of the alarm.
public final List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasAlarmTypes() to see if a value was sent in this field.
public final boolean hasAlarmTypes()
public final List<String> alarmTypesAsStrings()
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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasAlarmTypes() to see if a value was sent in this field.
public final HistoryItemType historyItemType()
The type of alarm histories to retrieve.
If the service returns an enum value that is not available in the current SDK version, historyItemType
will return HistoryItemType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from historyItemTypeAsString().
HistoryItemTypepublic final String historyItemTypeAsString()
The type of alarm histories to retrieve.
If the service returns an enum value that is not available in the current SDK version, historyItemType
will return HistoryItemType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from historyItemTypeAsString().
HistoryItemTypepublic final Instant startDate()
The starting date to retrieve alarm history.
public final Instant endDate()
The ending date to retrieve alarm history.
public final Integer maxRecords()
The maximum number of alarm history records to retrieve.
public final String nextToken()
The token returned by a previous call to indicate that there is more data available.
public final 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.
If the service returns an enum value that is not available in the current SDK version, scanBy will
return ScanBy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
scanByAsString().
TimestampDescending to have the newest event history returned first, and specify
TimestampAscending to have the oldest history returned first.ScanBypublic final String scanByAsString()
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.
If the service returns an enum value that is not available in the current SDK version, scanBy will
return ScanBy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
scanByAsString().
TimestampDescending to have the newest event history returned first, and specify
TimestampAscending to have the oldest history returned first.ScanBypublic DescribeAlarmHistoryRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<DescribeAlarmHistoryRequest.Builder,DescribeAlarmHistoryRequest>toBuilder in class CloudWatchRequestpublic static DescribeAlarmHistoryRequest.Builder builder()
public static Class<? extends DescribeAlarmHistoryRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2021. All rights reserved.