@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.
|
overrideConfiguration
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public String alarmName()
The name of the alarm.
public 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 boolean hasAlarmTypes()
public 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 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()
.
HistoryItemType
public 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()
.
HistoryItemType
public Instant startDate()
The starting date to retrieve alarm history.
public Instant endDate()
The ending date to retrieve alarm history.
public Integer maxRecords()
The maximum number of alarm history records to retrieve.
public String nextToken()
The token returned by a previous call to indicate that there is more data available.
public 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.ScanBy
public 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.ScanBy
public DescribeAlarmHistoryRequest.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<DescribeAlarmHistoryRequest.Builder,DescribeAlarmHistoryRequest>
toBuilder
in class CloudWatchRequest
public static DescribeAlarmHistoryRequest.Builder builder()
public static Class<? extends DescribeAlarmHistoryRequest.Builder> serializableBuilderClass()
public int hashCode()
hashCode
in class AwsRequest
public boolean equals(Object obj)
equals
in class AwsRequest
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField
in class SdkRequest
Copyright © 2020. All rights reserved.