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.BuilderavailabilityZone(String availabilityZone)The Availability Zone in which the Reserved Instance can be used.ReservedInstances.BuildercurrencyCode(String currencyCode)The currency of the Reserved Instance.ReservedInstances.BuildercurrencyCode(CurrencyCodeValues currencyCode)The currency of the Reserved Instance.ReservedInstances.Builderduration(Long duration)The duration of the Reserved Instance, in seconds.ReservedInstances.Builderend(Instant end)The time when the Reserved Instance expires.ReservedInstances.BuilderfixedPrice(Float fixedPrice)The purchase price of the Reserved Instance.ReservedInstances.BuilderinstanceCount(Integer instanceCount)The number of reservations purchased.ReservedInstances.BuilderinstanceTenancy(String instanceTenancy)The tenancy of the instance.ReservedInstances.BuilderinstanceTenancy(Tenancy instanceTenancy)The tenancy of the instance.ReservedInstances.BuilderinstanceType(String instanceType)The instance type on which the Reserved Instance can be used.ReservedInstances.BuilderinstanceType(InstanceType instanceType)The instance type on which the Reserved Instance can be used.ReservedInstances.BuilderofferingClass(String offeringClass)The offering class of the Reserved Instance.ReservedInstances.BuilderofferingClass(OfferingClassType offeringClass)The offering class of the Reserved Instance.ReservedInstances.BuilderofferingType(String offeringType)The Reserved Instance offering type.ReservedInstances.BuilderofferingType(OfferingTypeValues offeringType)The Reserved Instance offering type.ReservedInstances.BuilderproductDescription(String productDescription)The Reserved Instance product platform description.ReservedInstances.BuilderproductDescription(RIProductDescription productDescription)The Reserved Instance product platform description.ReservedInstances.BuilderrecurringCharges(Collection<RecurringCharge> recurringCharges)The recurring charge tag assigned to the resource.ReservedInstances.BuilderrecurringCharges(Consumer<RecurringCharge.Builder>... recurringCharges)The recurring charge tag assigned to the resource.ReservedInstances.BuilderrecurringCharges(RecurringCharge... recurringCharges)The recurring charge tag assigned to the resource.ReservedInstances.BuilderreservedInstancesId(String reservedInstancesId)The ID of the Reserved Instance.ReservedInstances.Builderscope(String scope)The scope of the Reserved Instance.ReservedInstances.Builderscope(Scope scope)The scope of the Reserved Instance.ReservedInstances.Builderstart(Instant start)The date and time the Reserved Instance started.ReservedInstances.Builderstate(String state)The state of the Reserved Instance purchase.ReservedInstances.Builderstate(ReservedInstanceState state)The state of the Reserved Instance purchase.ReservedInstances.Buildertags(Collection<Tag> tags)Any tags assigned to the resource.ReservedInstances.Buildertags(Consumer<Tag.Builder>... tags)Any tags assigned to the resource.ReservedInstances.Buildertags(Tag... tags)Any tags assigned to the resource.ReservedInstances.BuilderusagePrice(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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
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.Builderavoiding the need to create one manually viaRecurringCharge.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,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)
-
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.
-
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
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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
-
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
-
-