Interface ReservedInstancesOffering.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ReservedInstancesOffering.Builder,
,ReservedInstancesOffering> SdkBuilder<ReservedInstancesOffering.Builder,
,ReservedInstancesOffering> SdkPojo
- Enclosing class:
ReservedInstancesOffering
-
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 offering you are purchasing.currencyCode
(CurrencyCodeValues currencyCode) The currency of the Reserved Instance offering you are purchasing.The duration of the Reserved Instance, in seconds.fixedPrice
(Float fixedPrice) The purchase price of the Reserved Instance.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.marketplace
(Boolean marketplace) Indicates whether the offering is available through the Reserved Instance Marketplace (resale) or Amazon Web Services.offeringClass
(String offeringClass) Ifconvertible
it can be exchanged for Reserved Instances of the same or higher monetary value, with different configurations.offeringClass
(OfferingClassType offeringClass) Ifconvertible
it can be exchanged for Reserved Instances of the same or higher monetary value, with different configurations.offeringType
(String offeringType) The Reserved Instance offering type.offeringType
(OfferingTypeValues offeringType) The Reserved Instance offering type.pricingDetails
(Collection<PricingDetail> pricingDetails) The pricing details of the Reserved Instance offering.pricingDetails
(Consumer<PricingDetail.Builder>... pricingDetails) The pricing details of the Reserved Instance offering.pricingDetails
(PricingDetail... pricingDetails) The pricing details of the Reserved Instance offering.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.reservedInstancesOfferingId
(String reservedInstancesOfferingId) The ID of the Reserved Instance offering.Whether the Reserved Instance is applied to instances in a Region or an Availability Zone.Whether the Reserved Instance is applied to instances in a Region or an Availability Zone.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.
-
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
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:
-
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
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 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:
-
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:
-
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:
-
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
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:
-
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:
-
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:
-
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
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
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 topricingDetails(List<PricingDetail>)
.- 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:
-
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
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 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
Whether the Reserved Instance is applied to instances in a Region or an Availability Zone.
- Parameters:
scope
- Whether the Reserved Instance is applied to instances in a Region or an Availability Zone.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scope
Whether the Reserved Instance is applied to instances in a Region or an Availability Zone.
- Parameters:
scope
- Whether the Reserved Instance is applied to instances in a Region or an Availability Zone.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-