Interface ReservedInstancesOffering.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<ReservedInstancesOffering.Builder,ReservedInstancesOffering>
,SdkBuilder<ReservedInstancesOffering.Builder,ReservedInstancesOffering>
,SdkPojo
- Enclosing class:
- ReservedInstancesOffering
public static interface ReservedInstancesOffering.Builder extends SdkPojo, CopyableBuilder<ReservedInstancesOffering.Builder,ReservedInstancesOffering>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ReservedInstancesOffering.Builder
availabilityZone(String availabilityZone)
The Availability Zone in which the Reserved Instance can be used.ReservedInstancesOffering.Builder
currencyCode(String currencyCode)
The currency of the Reserved Instance offering you are purchasing.ReservedInstancesOffering.Builder
currencyCode(CurrencyCodeValues currencyCode)
The currency of the Reserved Instance offering you are purchasing.ReservedInstancesOffering.Builder
duration(Long duration)
The duration of the Reserved Instance, in seconds.ReservedInstancesOffering.Builder
fixedPrice(Float fixedPrice)
The purchase price of the Reserved Instance.ReservedInstancesOffering.Builder
instanceTenancy(String instanceTenancy)
The tenancy of the instance.ReservedInstancesOffering.Builder
instanceTenancy(Tenancy instanceTenancy)
The tenancy of the instance.ReservedInstancesOffering.Builder
instanceType(String instanceType)
The instance type on which the Reserved Instance can be used.ReservedInstancesOffering.Builder
instanceType(InstanceType instanceType)
The instance type on which the Reserved Instance can be used.ReservedInstancesOffering.Builder
marketplace(Boolean marketplace)
Indicates whether the offering is available through the Reserved Instance Marketplace (resale) or Amazon Web Services.ReservedInstancesOffering.Builder
offeringClass(String offeringClass)
Ifconvertible
it can be exchanged for Reserved Instances of the same or higher monetary value, with different configurations.ReservedInstancesOffering.Builder
offeringClass(OfferingClassType offeringClass)
Ifconvertible
it can be exchanged for Reserved Instances of the same or higher monetary value, with different configurations.ReservedInstancesOffering.Builder
offeringType(String offeringType)
The Reserved Instance offering type.ReservedInstancesOffering.Builder
offeringType(OfferingTypeValues offeringType)
The Reserved Instance offering type.ReservedInstancesOffering.Builder
pricingDetails(Collection<PricingDetail> pricingDetails)
The pricing details of the Reserved Instance offering.ReservedInstancesOffering.Builder
pricingDetails(Consumer<PricingDetail.Builder>... pricingDetails)
The pricing details of the Reserved Instance offering.ReservedInstancesOffering.Builder
pricingDetails(PricingDetail... pricingDetails)
The pricing details of the Reserved Instance offering.ReservedInstancesOffering.Builder
productDescription(String productDescription)
The Reserved Instance product platform description.ReservedInstancesOffering.Builder
productDescription(RIProductDescription productDescription)
The Reserved Instance product platform description.ReservedInstancesOffering.Builder
recurringCharges(Collection<RecurringCharge> recurringCharges)
The recurring charge tag assigned to the resource.ReservedInstancesOffering.Builder
recurringCharges(Consumer<RecurringCharge.Builder>... recurringCharges)
The recurring charge tag assigned to the resource.ReservedInstancesOffering.Builder
recurringCharges(RecurringCharge... recurringCharges)
The recurring charge tag assigned to the resource.ReservedInstancesOffering.Builder
reservedInstancesOfferingId(String reservedInstancesOfferingId)
The ID of the Reserved Instance offering.ReservedInstancesOffering.Builder
scope(String scope)
Whether the Reserved Instance is applied to instances in a Region or an Availability Zone.ReservedInstancesOffering.Builder
scope(Scope scope)
Whether the Reserved Instance is applied to instances in a Region or an Availability Zone.ReservedInstancesOffering.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
ReservedInstancesOffering.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
ReservedInstancesOffering.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.
-
fixedPrice
ReservedInstancesOffering.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.
-
instanceType
ReservedInstancesOffering.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
ReservedInstancesOffering.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
ReservedInstancesOffering.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
ReservedInstancesOffering.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
-
reservedInstancesOfferingId
ReservedInstancesOffering.Builder reservedInstancesOfferingId(String reservedInstancesOfferingId)
The ID of the Reserved Instance offering. This is the offering ID used in GetReservedInstancesExchangeQuote to confirm that an exchange can be made.
- Parameters:
reservedInstancesOfferingId
- The ID of the Reserved Instance offering. This is the offering ID used in GetReservedInstancesExchangeQuote to confirm that an exchange can be made.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usagePrice
ReservedInstancesOffering.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
ReservedInstancesOffering.Builder currencyCode(String currencyCode)
The currency of the Reserved Instance offering you are purchasing. 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 offering you are purchasing. 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
ReservedInstancesOffering.Builder currencyCode(CurrencyCodeValues currencyCode)
The currency of the Reserved Instance offering you are purchasing. 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 offering you are purchasing. 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
ReservedInstancesOffering.Builder instanceTenancy(String instanceTenancy)
The tenancy of the instance.
-
instanceTenancy
ReservedInstancesOffering.Builder instanceTenancy(Tenancy instanceTenancy)
The tenancy of the instance.
-
marketplace
ReservedInstancesOffering.Builder marketplace(Boolean marketplace)
Indicates whether the offering is available through the Reserved Instance Marketplace (resale) or Amazon Web Services. If it's a Reserved Instance Marketplace offering, this is
true
.- Parameters:
marketplace
- Indicates whether the offering is available through the Reserved Instance Marketplace (resale) or Amazon Web Services. If it's a Reserved Instance Marketplace offering, this istrue
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
offeringClass
ReservedInstancesOffering.Builder offeringClass(String offeringClass)
If
convertible
it can be exchanged for Reserved Instances of the same or higher monetary value, with different configurations. Ifstandard
, it is not possible to perform an exchange.- Parameters:
offeringClass
- Ifconvertible
it can be exchanged for Reserved Instances of the same or higher monetary value, with different configurations. Ifstandard
, it is not possible to perform an exchange.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
OfferingClassType
,OfferingClassType
-
offeringClass
ReservedInstancesOffering.Builder offeringClass(OfferingClassType offeringClass)
If
convertible
it can be exchanged for Reserved Instances of the same or higher monetary value, with different configurations. Ifstandard
, it is not possible to perform an exchange.- Parameters:
offeringClass
- Ifconvertible
it can be exchanged for Reserved Instances of the same or higher monetary value, with different configurations. Ifstandard
, it is not possible to perform an exchange.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
OfferingClassType
,OfferingClassType
-
offeringType
ReservedInstancesOffering.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
ReservedInstancesOffering.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
-
pricingDetails
ReservedInstancesOffering.Builder pricingDetails(Collection<PricingDetail> pricingDetails)
The pricing details of the Reserved Instance offering.
- Parameters:
pricingDetails
- The pricing details of the Reserved Instance offering.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pricingDetails
ReservedInstancesOffering.Builder pricingDetails(PricingDetail... pricingDetails)
The pricing details of the Reserved Instance offering.
- Parameters:
pricingDetails
- The pricing details of the Reserved Instance offering.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pricingDetails
ReservedInstancesOffering.Builder pricingDetails(Consumer<PricingDetail.Builder>... pricingDetails)
The pricing details of the Reserved Instance offering.
This is a convenience method that creates an instance of thePricingDetail.Builder
avoiding the need to create one manually viaPricingDetail.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#pricingDetails(List
.) - Parameters:
pricingDetails
- a consumer that will call methods onPricingDetail.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#pricingDetails(java.util.Collection
)
-
recurringCharges
ReservedInstancesOffering.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
ReservedInstancesOffering.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
ReservedInstancesOffering.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
ReservedInstancesOffering.Builder scope(String scope)
Whether the Reserved Instance is applied to instances in a Region or an Availability Zone.
-
scope
ReservedInstancesOffering.Builder scope(Scope scope)
Whether the Reserved Instance is applied to instances in a Region or an Availability Zone.
-
-