Interface ReservedInstances.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<ReservedInstances.Builder,ReservedInstances>
,SdkBuilder<ReservedInstances.Builder,ReservedInstances>
,SdkPojo
- Enclosing class:
- ReservedInstances
public static interface ReservedInstances.Builder extends SdkPojo, CopyableBuilder<ReservedInstances.Builder,ReservedInstances>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ReservedInstances.Builder
availabilityZone(String availabilityZone)
The Availability Zone in which the Reserved Instance can be used.ReservedInstances.Builder
currencyCode(String currencyCode)
The currency of the Reserved Instance.ReservedInstances.Builder
currencyCode(CurrencyCodeValues currencyCode)
The currency of the Reserved Instance.ReservedInstances.Builder
duration(Long duration)
The duration of the Reserved Instance, in seconds.ReservedInstances.Builder
end(Instant end)
The time when the Reserved Instance expires.ReservedInstances.Builder
fixedPrice(Float fixedPrice)
The purchase price of the Reserved Instance.ReservedInstances.Builder
instanceCount(Integer instanceCount)
The number of reservations purchased.ReservedInstances.Builder
instanceTenancy(String instanceTenancy)
The tenancy of the instance.ReservedInstances.Builder
instanceTenancy(Tenancy instanceTenancy)
The tenancy of the instance.ReservedInstances.Builder
instanceType(String instanceType)
The instance type on which the Reserved Instance can be used.ReservedInstances.Builder
instanceType(InstanceType instanceType)
The instance type on which the Reserved Instance can be used.ReservedInstances.Builder
offeringClass(String offeringClass)
The offering class of the Reserved Instance.ReservedInstances.Builder
offeringClass(OfferingClassType offeringClass)
The offering class of the Reserved Instance.ReservedInstances.Builder
offeringType(String offeringType)
The Reserved Instance offering type.ReservedInstances.Builder
offeringType(OfferingTypeValues offeringType)
The Reserved Instance offering type.ReservedInstances.Builder
productDescription(String productDescription)
The Reserved Instance product platform description.ReservedInstances.Builder
productDescription(RIProductDescription productDescription)
The Reserved Instance product platform description.ReservedInstances.Builder
recurringCharges(Collection<RecurringCharge> recurringCharges)
The recurring charge tag assigned to the resource.ReservedInstances.Builder
recurringCharges(Consumer<RecurringCharge.Builder>... recurringCharges)
The recurring charge tag assigned to the resource.ReservedInstances.Builder
recurringCharges(RecurringCharge... recurringCharges)
The recurring charge tag assigned to the resource.ReservedInstances.Builder
reservedInstancesId(String reservedInstancesId)
The ID of the Reserved Instance.ReservedInstances.Builder
scope(String scope)
The scope of the Reserved Instance.ReservedInstances.Builder
scope(Scope scope)
The scope of the Reserved Instance.ReservedInstances.Builder
start(Instant start)
The date and time the Reserved Instance started.ReservedInstances.Builder
state(String state)
The state of the Reserved Instance purchase.ReservedInstances.Builder
state(ReservedInstanceState state)
The state of the Reserved Instance purchase.ReservedInstances.Builder
tags(Collection<Tag> tags)
Any tags assigned to the resource.ReservedInstances.Builder
tags(Consumer<Tag.Builder>... tags)
Any tags assigned to the resource.ReservedInstances.Builder
tags(Tag... tags)
Any tags assigned to the resource.ReservedInstances.Builder
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 Detail
-
availabilityZone
ReservedInstances.Builder availabilityZone(String 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
ReservedInstances.Builder duration(Long 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
ReservedInstances.Builder end(Instant 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
ReservedInstances.Builder fixedPrice(Float 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
ReservedInstances.Builder instanceCount(Integer 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
ReservedInstances.Builder instanceType(String 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
,InstanceType
-
instanceType
ReservedInstances.Builder instanceType(InstanceType 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
,InstanceType
-
productDescription
ReservedInstances.Builder productDescription(String 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:
RIProductDescription
,RIProductDescription
-
productDescription
ReservedInstances.Builder productDescription(RIProductDescription 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:
RIProductDescription
,RIProductDescription
-
reservedInstancesId
ReservedInstances.Builder reservedInstancesId(String 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
ReservedInstances.Builder start(Instant 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
ReservedInstances.Builder state(String 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:
ReservedInstanceState
,ReservedInstanceState
-
state
ReservedInstances.Builder state(ReservedInstanceState 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:
ReservedInstanceState
,ReservedInstanceState
-
usagePrice
ReservedInstances.Builder usagePrice(Float 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
ReservedInstances.Builder currencyCode(String 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:
CurrencyCodeValues
,CurrencyCodeValues
-
currencyCode
ReservedInstances.Builder currencyCode(CurrencyCodeValues 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:
CurrencyCodeValues
,CurrencyCodeValues
-
instanceTenancy
ReservedInstances.Builder instanceTenancy(String instanceTenancy)
The tenancy of the instance.
-
instanceTenancy
ReservedInstances.Builder instanceTenancy(Tenancy instanceTenancy)
The tenancy of the instance.
-
offeringClass
ReservedInstances.Builder offeringClass(String 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:
OfferingClassType
,OfferingClassType
-
offeringClass
ReservedInstances.Builder offeringClass(OfferingClassType 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:
OfferingClassType
,OfferingClassType
-
offeringType
ReservedInstances.Builder offeringType(String 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:
OfferingTypeValues
,OfferingTypeValues
-
offeringType
ReservedInstances.Builder offeringType(OfferingTypeValues 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:
OfferingTypeValues
,OfferingTypeValues
-
recurringCharges
ReservedInstances.Builder recurringCharges(Collection<RecurringCharge> 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
ReservedInstances.Builder recurringCharges(RecurringCharge... 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
ReservedInstances.Builder recurringCharges(Consumer<RecurringCharge.Builder>... 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 to#recurringCharges(List
.) - 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:
#recurringCharges(java.util.Collection
)
-
scope
ReservedInstances.Builder scope(String scope)
The scope of the Reserved Instance.
-
scope
ReservedInstances.Builder scope(Scope scope)
The scope of the Reserved Instance.
-
tags
ReservedInstances.Builder tags(Collection<Tag> 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
ReservedInstances.Builder tags(Tag... 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
ReservedInstances.Builder tags(Consumer<Tag.Builder>... 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 to#tags(List
.) - 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:
#tags(java.util.Collection
)
-
-