Class CapacityReservationCommitmentInfo
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.CapacityReservationCommitmentInfo
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<CapacityReservationCommitmentInfo.Builder,CapacityReservationCommitmentInfo>
@Generated("software.amazon.awssdk:codegen") public final class CapacityReservationCommitmentInfo extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CapacityReservationCommitmentInfo.Builder,CapacityReservationCommitmentInfo>
Information about your commitment for a future-dated Capacity Reservation.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CapacityReservationCommitmentInfo.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CapacityReservationCommitmentInfo.Builder
builder()
Instant
commitmentEndDate()
The date and time at which the commitment duration expires, in the ISO8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ
).Integer
committedInstanceCount()
The instance capacity that you committed to when you requested the future-dated Capacity Reservation.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
Map<String,SdkField<?>>
sdkFieldNameToField()
List<SdkField<?>>
sdkFields()
static Class<? extends CapacityReservationCommitmentInfo.Builder>
serializableBuilderClass()
CapacityReservationCommitmentInfo.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
committedInstanceCount
public final Integer committedInstanceCount()
The instance capacity that you committed to when you requested the future-dated Capacity Reservation.
- Returns:
- The instance capacity that you committed to when you requested the future-dated Capacity Reservation.
-
commitmentEndDate
public final Instant commitmentEndDate()
The date and time at which the commitment duration expires, in the ISO8601 format in the UTC time zone (
YYYY-MM-DDThh:mm:ss.sssZ
). You can't decrease the instance count or cancel the Capacity Reservation before this date and time.- Returns:
- The date and time at which the commitment duration expires, in the ISO8601 format in the UTC time zone (
YYYY-MM-DDThh:mm:ss.sssZ
). You can't decrease the instance count or cancel the Capacity Reservation before this date and time.
-
toBuilder
public CapacityReservationCommitmentInfo.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<CapacityReservationCommitmentInfo.Builder,CapacityReservationCommitmentInfo>
-
builder
public static CapacityReservationCommitmentInfo.Builder builder()
-
serializableBuilderClass
public static Class<? extends CapacityReservationCommitmentInfo.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
-
-