Class CapacityBlockOffering
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.CapacityBlockOffering
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<CapacityBlockOffering.Builder,CapacityBlockOffering>
@Generated("software.amazon.awssdk:codegen") public final class CapacityBlockOffering extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CapacityBlockOffering.Builder,CapacityBlockOffering>
The recommended Capacity Block that fits your search requirements.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CapacityBlockOffering.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 offering.static CapacityBlockOffering.Builder
builder()
Integer
capacityBlockDurationHours()
The amount of time of the Capacity Block reservation in hours.String
capacityBlockOfferingId()
The ID of the Capacity Block offering.String
currencyCode()
The currency of the payment for the Capacity Block.Instant
endDate()
The end date of the Capacity Block 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 offering.String
instanceType()
The instance type of the Capacity Block offering.List<SdkField<?>>
sdkFields()
static Class<? extends CapacityBlockOffering.Builder>
serializableBuilderClass()
Instant
startDate()
The start date of the Capacity Block offering.CapacityReservationTenancy
tenancy()
The tenancy of the Capacity Block.String
tenancyAsString()
The tenancy of the Capacity Block.CapacityBlockOffering.Builder
toBuilder()
String
toString()
Returns a string representation of this object.String
upfrontFee()
The total price 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
-
capacityBlockOfferingId
public final String capacityBlockOfferingId()
The ID of the Capacity Block offering.
- Returns:
- The ID of the Capacity Block offering.
-
instanceType
public final String instanceType()
The instance type of the Capacity Block offering.
- Returns:
- The instance type of the Capacity Block offering.
-
availabilityZone
public final String availabilityZone()
The Availability Zone of the Capacity Block offering.
- Returns:
- The Availability Zone of the Capacity Block offering.
-
instanceCount
public final Integer instanceCount()
The number of instances in the Capacity Block offering.
- Returns:
- The number of instances in the Capacity Block offering.
-
startDate
public final Instant startDate()
The start date of the Capacity Block offering.
- Returns:
- The start date of the Capacity Block offering.
-
endDate
public final Instant endDate()
The end date of the Capacity Block offering.
- Returns:
- The end date of the Capacity Block offering.
-
capacityBlockDurationHours
public final Integer capacityBlockDurationHours()
The amount of time of the Capacity Block reservation in hours.
- Returns:
- The amount of time of the Capacity Block reservation in hours.
-
upfrontFee
public final String upfrontFee()
The total price to be paid up front.
- Returns:
- The total price to be paid up front.
-
currencyCode
public final String currencyCode()
The currency of the payment for the Capacity Block.
- Returns:
- The currency of the payment for the Capacity Block.
-
tenancy
public final CapacityReservationTenancy tenancy()
The tenancy of the Capacity Block.
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:
- The tenancy of the Capacity Block.
- See Also:
CapacityReservationTenancy
-
tenancyAsString
public final String tenancyAsString()
The tenancy of the Capacity Block.
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:
- The tenancy of the Capacity Block.
- See Also:
CapacityReservationTenancy
-
toBuilder
public CapacityBlockOffering.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<CapacityBlockOffering.Builder,CapacityBlockOffering>
-
builder
public static CapacityBlockOffering.Builder builder()
-
serializableBuilderClass
public static Class<? extends CapacityBlockOffering.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.
-
-