Interface ReservedInstances.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ReservedInstances.Builder,
,ReservedInstances> SdkBuilder<ReservedInstances.Builder,
,ReservedInstances> SdkPojo
- Enclosing class:
ReservedInstances
-
Method Summary
Modifier and TypeMethodDescriptionavailabilityZone
(String availabilityZone) The Availability Zone in which the Reserved Instance can be used.currencyCode
(String currencyCode) The currency of the Reserved Instance.currencyCode
(CurrencyCodeValues currencyCode) The currency of the Reserved Instance.The duration of the Reserved Instance, in seconds.The time when the Reserved Instance expires.fixedPrice
(Float fixedPrice) The purchase price of the Reserved Instance.instanceCount
(Integer instanceCount) The number of reservations purchased.instanceTenancy
(String instanceTenancy) The tenancy of the instance.instanceTenancy
(Tenancy instanceTenancy) The tenancy of the instance.instanceType
(String instanceType) The instance type on which the Reserved Instance can be used.instanceType
(InstanceType instanceType) The instance type on which the Reserved Instance can be used.offeringClass
(String offeringClass) The offering class of the Reserved Instance.offeringClass
(OfferingClassType offeringClass) The offering class of the Reserved Instance.offeringType
(String offeringType) The Reserved Instance offering type.offeringType
(OfferingTypeValues offeringType) The Reserved Instance offering type.productDescription
(String productDescription) The Reserved Instance product platform description.productDescription
(RIProductDescription productDescription) The Reserved Instance product platform description.recurringCharges
(Collection<RecurringCharge> recurringCharges) The recurring charge tag assigned to the resource.recurringCharges
(Consumer<RecurringCharge.Builder>... recurringCharges) The recurring charge tag assigned to the resource.recurringCharges
(RecurringCharge... recurringCharges) The recurring charge tag assigned to the resource.reservedInstancesId
(String reservedInstancesId) The ID of the Reserved Instance.The scope of the Reserved Instance.The scope of the Reserved Instance.The date and time the Reserved Instance started.The state of the Reserved Instance purchase.state
(ReservedInstanceState state) The state of the Reserved Instance purchase.tags
(Collection<Tag> tags) Any tags assigned to the resource.tags
(Consumer<Tag.Builder>... tags) Any tags assigned to the resource.Any tags assigned to the resource.usagePrice
(Float usagePrice) The usage price of the Reserved Instance, per hour.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, sdkFields
-
Method Details
-
availabilityZone
The Availability Zone in which the Reserved Instance can be used.
- Parameters:
availabilityZone
- The Availability Zone in which the Reserved Instance can be used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
duration
The duration of the Reserved Instance, in seconds.
- Parameters:
duration
- The duration of the Reserved Instance, in seconds.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
end
The time when the Reserved Instance expires.
- Parameters:
end
- The time when the Reserved Instance expires.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fixedPrice
The purchase price of the Reserved Instance.
- Parameters:
fixedPrice
- The purchase price of the Reserved Instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceCount
The number of reservations purchased.
- Parameters:
instanceCount
- The number of reservations purchased.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceType
The instance type on which the Reserved Instance can be used.
- Parameters:
instanceType
- The instance type on which the Reserved Instance can be used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceType
The instance type on which the Reserved Instance can be used.
- Parameters:
instanceType
- The instance type on which the Reserved Instance can be used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
productDescription
The Reserved Instance product platform description.
- Parameters:
productDescription
- The Reserved Instance product platform description.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
productDescription
The Reserved Instance product platform description.
- Parameters:
productDescription
- The Reserved Instance product platform description.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
reservedInstancesId
The ID of the Reserved Instance.
- Parameters:
reservedInstancesId
- The ID of the Reserved Instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
start
The date and time the Reserved Instance started.
- Parameters:
start
- The date and time the Reserved Instance started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The state of the Reserved Instance purchase.
- Parameters:
state
- The state of the Reserved Instance purchase.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The state of the Reserved Instance purchase.
- Parameters:
state
- The state of the Reserved Instance purchase.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
usagePrice
The usage price of the Reserved Instance, per hour.
- Parameters:
usagePrice
- The usage price of the Reserved Instance, per hour.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currencyCode
The currency of the Reserved Instance. It's specified using ISO 4217 standard currency codes. At this time, the only supported currency is
USD
.- Parameters:
currencyCode
- The currency of the Reserved Instance. It's specified using ISO 4217 standard currency codes. At this time, the only supported currency isUSD
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
currencyCode
The currency of the Reserved Instance. It's specified using ISO 4217 standard currency codes. At this time, the only supported currency is
USD
.- Parameters:
currencyCode
- The currency of the Reserved Instance. It's specified using ISO 4217 standard currency codes. At this time, the only supported currency isUSD
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceTenancy
The tenancy of the instance.
- Parameters:
instanceTenancy
- The tenancy of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceTenancy
The tenancy of the instance.
- Parameters:
instanceTenancy
- The tenancy of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
offeringClass
The offering class of the Reserved Instance.
- Parameters:
offeringClass
- The offering class of the Reserved Instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
offeringClass
The offering class of the Reserved Instance.
- Parameters:
offeringClass
- The offering class of the Reserved Instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
offeringType
The Reserved Instance offering type.
- Parameters:
offeringType
- The Reserved Instance offering type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
offeringType
The Reserved Instance offering type.
- Parameters:
offeringType
- The Reserved Instance offering type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
recurringCharges
The recurring charge tag assigned to the resource.
- Parameters:
recurringCharges
- The recurring charge tag assigned to the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recurringCharges
The recurring charge tag assigned to the resource.
- Parameters:
recurringCharges
- The recurring charge tag assigned to the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recurringCharges
The recurring charge tag assigned to the resource.
This is a convenience method that creates an instance of theRecurringCharge.Builder
avoiding the need to create one manually viaRecurringCharge.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torecurringCharges(List<RecurringCharge>)
.- Parameters:
recurringCharges
- a consumer that will call methods onRecurringCharge.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scope
The scope of the Reserved Instance.
- Parameters:
scope
- The scope of the Reserved Instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scope
The scope of the Reserved Instance.
- Parameters:
scope
- The scope of the Reserved Instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
Any tags assigned to the resource.
- Parameters:
tags
- Any tags assigned to the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Any tags assigned to the resource.
- Parameters:
tags
- Any tags assigned to the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Any tags assigned to the resource.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-