Class CapacityBlockExtensionOffering
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.CapacityBlockExtensionOffering
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<CapacityBlockExtensionOffering.Builder,CapacityBlockExtensionOffering>
@Generated("software.amazon.awssdk:codegen") public final class CapacityBlockExtensionOffering extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CapacityBlockExtensionOffering.Builder,CapacityBlockExtensionOffering>
The recommended Capacity Block extension that fits your search requirements.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CapacityBlockExtensionOffering.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
availabilityZone()
The Availability Zone of the Capacity Block that will be extended.String
availabilityZoneId()
The Availability Zone ID of the Capacity Block that will be extended.static CapacityBlockExtensionOffering.Builder
builder()
Integer
capacityBlockExtensionDurationHours()
The amount of time of the Capacity Block extension offering in hours.Instant
capacityBlockExtensionEndDate()
The date and time at which the Capacity Block extension expires.String
capacityBlockExtensionOfferingId()
The ID of the Capacity Block extension offering.Instant
capacityBlockExtensionStartDate()
The date and time at which the Capacity Block extension will start.String
currencyCode()
The currency of the payment for the Capacity Block extension offering.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 in the Capacity Block extension offering.String
instanceType()
The instance type of the Capacity Block that will be extended.Map<String,SdkField<?>>
sdkFieldNameToField()
List<SdkField<?>>
sdkFields()
static Class<? extends CapacityBlockExtensionOffering.Builder>
serializableBuilderClass()
Instant
startDate()
The start date of the Capacity Block that will be extended.CapacityReservationTenancy
tenancy()
Indicates the tenancy of the Capacity Block extension offering.String
tenancyAsString()
Indicates the tenancy of the Capacity Block extension offering.CapacityBlockExtensionOffering.Builder
toBuilder()
String
toString()
Returns a string representation of this object.String
upfrontFee()
The total price of the Capacity Block extension offering, to be paid up front.-
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
-
capacityBlockExtensionOfferingId
public final String capacityBlockExtensionOfferingId()
The ID of the Capacity Block extension offering.
- Returns:
- The ID of the Capacity Block extension offering.
-
instanceType
public final String instanceType()
The instance type of the Capacity Block that will be extended.
- Returns:
- The instance type of the Capacity Block that will be extended.
-
instanceCount
public final Integer instanceCount()
The number of instances in the Capacity Block extension offering.
- Returns:
- The number of instances in the Capacity Block extension offering.
-
availabilityZone
public final String availabilityZone()
The Availability Zone of the Capacity Block that will be extended.
- Returns:
- The Availability Zone of the Capacity Block that will be extended.
-
availabilityZoneId
public final String availabilityZoneId()
The Availability Zone ID of the Capacity Block that will be extended.
- Returns:
- The Availability Zone ID of the Capacity Block that will be extended.
-
startDate
public final Instant startDate()
The start date of the Capacity Block that will be extended.
- Returns:
- The start date of the Capacity Block that will be extended.
-
capacityBlockExtensionStartDate
public final Instant capacityBlockExtensionStartDate()
The date and time at which the Capacity Block extension will start. This date is also the same as the end date of the Capacity Block that will be extended.
- Returns:
- The date and time at which the Capacity Block extension will start. This date is also the same as the end date of the Capacity Block that will be extended.
-
capacityBlockExtensionEndDate
public final Instant capacityBlockExtensionEndDate()
The date and time at which the Capacity Block extension expires. When a Capacity Block expires, the reserved capacity is released and you can no longer launch instances into it. The Capacity Block's state changes to
expired
when it reaches its end date- Returns:
- The date and time at which the Capacity Block extension expires. When a Capacity Block expires, the
reserved capacity is released and you can no longer launch instances into it. The Capacity Block's state
changes to
expired
when it reaches its end date
-
capacityBlockExtensionDurationHours
public final Integer capacityBlockExtensionDurationHours()
The amount of time of the Capacity Block extension offering in hours.
- Returns:
- The amount of time of the Capacity Block extension offering in hours.
-
upfrontFee
public final String upfrontFee()
The total price of the Capacity Block extension offering, to be paid up front.
- Returns:
- The total price of the Capacity Block extension offering, to be paid up front.
-
currencyCode
public final String currencyCode()
The currency of the payment for the Capacity Block extension offering.
- Returns:
- The currency of the payment for the Capacity Block extension offering.
-
tenancy
public final CapacityReservationTenancy tenancy()
Indicates the tenancy of the Capacity Block extension offering. A Capacity Block can have one of the following tenancy settings:
-
default
- The Capacity Block is created on hardware that is shared with other Amazon Web Services accounts. -
dedicated
- The Capacity Block is created on single-tenant hardware that is dedicated to a single Amazon Web Services account.
If the service returns an enum value that is not available in the current SDK version,
tenancy
will returnCapacityReservationTenancy.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtenancyAsString()
.- Returns:
- Indicates the tenancy of the Capacity Block extension offering. A Capacity Block can have one of the
following tenancy settings:
-
default
- The Capacity Block is created on hardware that is shared with other Amazon Web Services accounts. -
dedicated
- The Capacity Block is created on single-tenant hardware that is dedicated to a single Amazon Web Services account.
-
- See Also:
CapacityReservationTenancy
-
-
tenancyAsString
public final String tenancyAsString()
Indicates the tenancy of the Capacity Block extension offering. A Capacity Block can have one of the following tenancy settings:
-
default
- The Capacity Block is created on hardware that is shared with other Amazon Web Services accounts. -
dedicated
- The Capacity Block is created on single-tenant hardware that is dedicated to a single Amazon Web Services account.
If the service returns an enum value that is not available in the current SDK version,
tenancy
will returnCapacityReservationTenancy.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtenancyAsString()
.- Returns:
- Indicates the tenancy of the Capacity Block extension offering. A Capacity Block can have one of the
following tenancy settings:
-
default
- The Capacity Block is created on hardware that is shared with other Amazon Web Services accounts. -
dedicated
- The Capacity Block is created on single-tenant hardware that is dedicated to a single Amazon Web Services account.
-
- See Also:
CapacityReservationTenancy
-
-
toBuilder
public CapacityBlockExtensionOffering.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<CapacityBlockExtensionOffering.Builder,CapacityBlockExtensionOffering>
-
builder
public static CapacityBlockExtensionOffering.Builder builder()
-
serializableBuilderClass
public static Class<? extends CapacityBlockExtensionOffering.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
-
-