Interface CapacityBlockExtensionOffering.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CapacityBlockExtensionOffering.Builder,CapacityBlockExtensionOffering>,SdkBuilder<CapacityBlockExtensionOffering.Builder,CapacityBlockExtensionOffering>,SdkPojo
- Enclosing class:
- CapacityBlockExtensionOffering
@Mutable @NotThreadSafe public static interface CapacityBlockExtensionOffering.Builder extends SdkPojo, CopyableBuilder<CapacityBlockExtensionOffering.Builder,CapacityBlockExtensionOffering>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CapacityBlockExtensionOffering.BuilderavailabilityZone(String availabilityZone)The Availability Zone of the Capacity Block that will be extended.CapacityBlockExtensionOffering.BuilderavailabilityZoneId(String availabilityZoneId)The Availability Zone ID of the Capacity Block that will be extended.CapacityBlockExtensionOffering.BuildercapacityBlockExtensionDurationHours(Integer capacityBlockExtensionDurationHours)The amount of time of the Capacity Block extension offering in hours.CapacityBlockExtensionOffering.BuildercapacityBlockExtensionEndDate(Instant capacityBlockExtensionEndDate)The date and time at which the Capacity Block extension expires.CapacityBlockExtensionOffering.BuildercapacityBlockExtensionOfferingId(String capacityBlockExtensionOfferingId)The ID of the Capacity Block extension offering.CapacityBlockExtensionOffering.BuildercapacityBlockExtensionStartDate(Instant capacityBlockExtensionStartDate)The date and time at which the Capacity Block extension will start.CapacityBlockExtensionOffering.BuildercurrencyCode(String currencyCode)The currency of the payment for the Capacity Block extension offering.CapacityBlockExtensionOffering.BuilderinstanceCount(Integer instanceCount)The number of instances in the Capacity Block extension offering.CapacityBlockExtensionOffering.BuilderinstanceType(String instanceType)The instance type of the Capacity Block that will be extended.CapacityBlockExtensionOffering.BuilderstartDate(Instant startDate)The start date of the Capacity Block that will be extended.CapacityBlockExtensionOffering.Buildertenancy(String tenancy)Indicates the tenancy of the Capacity Block extension offering.CapacityBlockExtensionOffering.Buildertenancy(CapacityReservationTenancy tenancy)Indicates the tenancy of the Capacity Block extension offering.CapacityBlockExtensionOffering.BuilderupfrontFee(String upfrontFee)The total price of the Capacity Block extension offering, to be paid up front.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
capacityBlockExtensionOfferingId
CapacityBlockExtensionOffering.Builder capacityBlockExtensionOfferingId(String capacityBlockExtensionOfferingId)
The ID of the Capacity Block extension offering.
- Parameters:
capacityBlockExtensionOfferingId- The ID of the Capacity Block extension offering.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceType
CapacityBlockExtensionOffering.Builder instanceType(String instanceType)
The instance type of the Capacity Block that will be extended.
- Parameters:
instanceType- The instance type of the Capacity Block that will be extended.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceCount
CapacityBlockExtensionOffering.Builder instanceCount(Integer instanceCount)
The number of instances in the Capacity Block extension offering.
- Parameters:
instanceCount- The number of instances in the Capacity Block extension offering.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availabilityZone
CapacityBlockExtensionOffering.Builder availabilityZone(String availabilityZone)
The Availability Zone of the Capacity Block that will be extended.
- Parameters:
availabilityZone- The Availability Zone of the Capacity Block that will be extended.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availabilityZoneId
CapacityBlockExtensionOffering.Builder availabilityZoneId(String availabilityZoneId)
The Availability Zone ID of the Capacity Block that will be extended.
- Parameters:
availabilityZoneId- The Availability Zone ID of the Capacity Block that will be extended.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startDate
CapacityBlockExtensionOffering.Builder startDate(Instant startDate)
The start date of the Capacity Block that will be extended.
- Parameters:
startDate- The start date of the Capacity Block that will be extended.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityBlockExtensionStartDate
CapacityBlockExtensionOffering.Builder capacityBlockExtensionStartDate(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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
capacityBlockExtensionEndDate
CapacityBlockExtensionOffering.Builder capacityBlockExtensionEndDate(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
expiredwhen it reaches its end date- Parameters:
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 toexpiredwhen it reaches its end date- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityBlockExtensionDurationHours
CapacityBlockExtensionOffering.Builder capacityBlockExtensionDurationHours(Integer capacityBlockExtensionDurationHours)
The amount of time of the Capacity Block extension offering in hours.
- Parameters:
capacityBlockExtensionDurationHours- The amount of time of the Capacity Block extension offering in hours.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
upfrontFee
CapacityBlockExtensionOffering.Builder upfrontFee(String upfrontFee)
The total price of the Capacity Block extension offering, to be paid up front.
- Parameters:
upfrontFee- The total price of the Capacity Block extension offering, to be paid up front.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currencyCode
CapacityBlockExtensionOffering.Builder currencyCode(String currencyCode)
The currency of the payment for the Capacity Block extension offering.
- Parameters:
currencyCode- The currency of the payment for the Capacity Block extension offering.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tenancy
CapacityBlockExtensionOffering.Builder tenancy(String 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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CapacityReservationTenancy,CapacityReservationTenancy
-
-
tenancy
CapacityBlockExtensionOffering.Builder tenancy(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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CapacityReservationTenancy,CapacityReservationTenancy
-
-
-