Interface ReservedInstancesOffering.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ReservedInstancesOffering.Builder,ReservedInstancesOffering>,SdkBuilder<ReservedInstancesOffering.Builder,ReservedInstancesOffering>,SdkPojo
- Enclosing class:
- ReservedInstancesOffering
@Mutable @NotThreadSafe 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.BuilderavailabilityZone(String availabilityZone)The Availability Zone in which the Reserved Instance can be used.ReservedInstancesOffering.BuilderavailabilityZoneId(String availabilityZoneId)The ID of the Availability Zone.ReservedInstancesOffering.BuildercurrencyCode(String currencyCode)The currency of the Reserved Instance offering you are purchasing.ReservedInstancesOffering.BuildercurrencyCode(CurrencyCodeValues currencyCode)The currency of the Reserved Instance offering you are purchasing.ReservedInstancesOffering.Builderduration(Long duration)The duration of the Reserved Instance, in seconds.ReservedInstancesOffering.BuilderfixedPrice(Float fixedPrice)The purchase price of the Reserved Instance.ReservedInstancesOffering.BuilderinstanceTenancy(String instanceTenancy)The tenancy of the instance.ReservedInstancesOffering.BuilderinstanceTenancy(Tenancy instanceTenancy)The tenancy of the instance.ReservedInstancesOffering.BuilderinstanceType(String instanceType)The instance type on which the Reserved Instance can be used.ReservedInstancesOffering.BuilderinstanceType(InstanceType instanceType)The instance type on which the Reserved Instance can be used.ReservedInstancesOffering.Buildermarketplace(Boolean marketplace)Indicates whether the offering is available through the Reserved Instance Marketplace (resale) or Amazon Web Services.ReservedInstancesOffering.BuilderofferingClass(String offeringClass)Ifconvertibleit can be exchanged for Reserved Instances of the same or higher monetary value, with different configurations.ReservedInstancesOffering.BuilderofferingClass(OfferingClassType offeringClass)Ifconvertibleit can be exchanged for Reserved Instances of the same or higher monetary value, with different configurations.ReservedInstancesOffering.BuilderofferingType(String offeringType)The Reserved Instance offering type.ReservedInstancesOffering.BuilderofferingType(OfferingTypeValues offeringType)The Reserved Instance offering type.ReservedInstancesOffering.BuilderpricingDetails(Collection<PricingDetail> pricingDetails)The pricing details of the Reserved Instance offering.ReservedInstancesOffering.BuilderpricingDetails(Consumer<PricingDetail.Builder>... pricingDetails)The pricing details of the Reserved Instance offering.ReservedInstancesOffering.BuilderpricingDetails(PricingDetail... pricingDetails)The pricing details of the Reserved Instance offering.ReservedInstancesOffering.BuilderproductDescription(String productDescription)The Reserved Instance product platform description.ReservedInstancesOffering.BuilderproductDescription(RIProductDescription productDescription)The Reserved Instance product platform description.ReservedInstancesOffering.BuilderrecurringCharges(Collection<RecurringCharge> recurringCharges)The recurring charge tag assigned to the resource.ReservedInstancesOffering.BuilderrecurringCharges(Consumer<RecurringCharge.Builder>... recurringCharges)The recurring charge tag assigned to the resource.ReservedInstancesOffering.BuilderrecurringCharges(RecurringCharge... recurringCharges)The recurring charge tag assigned to the resource.ReservedInstancesOffering.BuilderreservedInstancesOfferingId(String reservedInstancesOfferingId)The ID of the Reserved Instance offering.ReservedInstancesOffering.Builderscope(String scope)Whether the Reserved Instance is applied to instances in a Region or an Availability Zone.ReservedInstancesOffering.Builderscope(Scope scope)Whether the Reserved Instance is applied to instances in a Region or an Availability Zone.ReservedInstancesOffering.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
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
convertibleit 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- Ifconvertibleit 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
convertibleit 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- Ifconvertibleit 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.Builderavoiding the need to create one manually viaPricingDetail.builder().When the
Consumercompletes,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.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
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.
-
availabilityZoneId
ReservedInstancesOffering.Builder availabilityZoneId(String availabilityZoneId)
The ID of the Availability Zone.
- Parameters:
availabilityZoneId- The ID of the Availability Zone.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
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
-
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.
-
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.
-
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.
-
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
-
-