@Generated(value="software.amazon.awssdk:codegen") public final class ModifyCapacityReservationRequest extends Ec2Request implements ToCopyableBuilder<ModifyCapacityReservationRequest.Builder,ModifyCapacityReservationRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
ModifyCapacityReservationRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ModifyCapacityReservationRequest.Builder |
builder() |
String |
capacityReservationId()
The ID of the Capacity Reservation.
|
Instant |
endDate()
The date and time at which the Capacity Reservation expires.
|
EndDateType |
endDateType()
Indicates the way in which the Capacity Reservation ends.
|
String |
endDateTypeAsString()
Indicates the way in which the Capacity Reservation ends.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
instanceCount()
The number of instances for which to reserve capacity.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ModifyCapacityReservationRequest.Builder> |
serializableBuilderClass() |
ModifyCapacityReservationRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String capacityReservationId()
The ID of the Capacity Reservation.
public final Integer instanceCount()
The number of instances for which to reserve capacity.
public final Instant endDate()
The date and time at which the Capacity Reservation expires. When a Capacity Reservation expires, the reserved
capacity is released and you can no longer launch instances into it. The Capacity Reservation's state changes to
expired when it reaches its end date and time.
The Capacity Reservation is cancelled within an hour from the specified time. For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation is guaranteed to end between 13:30:55 and 14:30:55 on 5/31/2019.
You must provide an EndDate value if EndDateType is limited. Omit
EndDate if EndDateType is unlimited.
expired when it reaches its end date and time.
The Capacity Reservation is cancelled within an hour from the specified time. For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation is guaranteed to end between 13:30:55 and 14:30:55 on 5/31/2019.
You must provide an EndDate value if EndDateType is limited. Omit
EndDate if EndDateType is unlimited.
public final EndDateType endDateType()
Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the following end types:
unlimited - The Capacity Reservation remains active until you explicitly cancel it. Do not provide
an EndDate value if EndDateType is unlimited.
limited - The Capacity Reservation expires automatically at a specified date and time. You must
provide an EndDate value if EndDateType is limited.
If the service returns an enum value that is not available in the current SDK version, endDateType will
return EndDateType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
endDateTypeAsString().
unlimited - The Capacity Reservation remains active until you explicitly cancel it. Do not
provide an EndDate value if EndDateType is unlimited.
limited - The Capacity Reservation expires automatically at a specified date and time. You
must provide an EndDate value if EndDateType is limited.
EndDateTypepublic final String endDateTypeAsString()
Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the following end types:
unlimited - The Capacity Reservation remains active until you explicitly cancel it. Do not provide
an EndDate value if EndDateType is unlimited.
limited - The Capacity Reservation expires automatically at a specified date and time. You must
provide an EndDate value if EndDateType is limited.
If the service returns an enum value that is not available in the current SDK version, endDateType will
return EndDateType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
endDateTypeAsString().
unlimited - The Capacity Reservation remains active until you explicitly cancel it. Do not
provide an EndDate value if EndDateType is unlimited.
limited - The Capacity Reservation expires automatically at a specified date and time. You
must provide an EndDate value if EndDateType is limited.
EndDateTypepublic ModifyCapacityReservationRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ModifyCapacityReservationRequest.Builder,ModifyCapacityReservationRequest>toBuilder in class Ec2Requestpublic static ModifyCapacityReservationRequest.Builder builder()
public static Class<? extends ModifyCapacityReservationRequest.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.