Interface SavingsPlan.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<SavingsPlan.Builder,SavingsPlan>,SdkBuilder<SavingsPlan.Builder,SavingsPlan>,SdkPojo
- Enclosing class:
- SavingsPlan
public static interface SavingsPlan.Builder extends SdkPojo, CopyableBuilder<SavingsPlan.Builder,SavingsPlan>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SavingsPlan.Buildercommitment(String commitment)The hourly commitment amount in the specified currency.SavingsPlan.Buildercurrency(String currency)The currency.SavingsPlan.Buildercurrency(CurrencyCode currency)The currency.SavingsPlan.Builderdescription(String description)The description.SavingsPlan.Builderec2InstanceFamily(String ec2InstanceFamily)The EC2 instance family.SavingsPlan.Builderend(String end)The end time.SavingsPlan.BuilderofferingId(String offeringId)The ID of the offering.SavingsPlan.BuilderpaymentOption(String paymentOption)The payment option.SavingsPlan.BuilderpaymentOption(SavingsPlanPaymentOption paymentOption)The payment option.SavingsPlan.BuilderproductTypes(Collection<SavingsPlanProductType> productTypes)The product types.SavingsPlan.BuilderproductTypes(SavingsPlanProductType... productTypes)The product types.SavingsPlan.BuilderproductTypesWithStrings(String... productTypes)The product types.SavingsPlan.BuilderproductTypesWithStrings(Collection<String> productTypes)The product types.SavingsPlan.BuilderrecurringPaymentAmount(String recurringPaymentAmount)The recurring payment amount.SavingsPlan.Builderregion(String region)The Amazon Web Services Region.SavingsPlan.BuilderreturnableUntil(String returnableUntil)The time until when a return for the Savings Plan can be requested.SavingsPlan.BuildersavingsPlanArn(String savingsPlanArn)The Amazon Resource Name (ARN) of the Savings Plan.SavingsPlan.BuildersavingsPlanId(String savingsPlanId)The ID of the Savings Plan.SavingsPlan.BuildersavingsPlanType(String savingsPlanType)The plan type.SavingsPlan.BuildersavingsPlanType(SavingsPlanType savingsPlanType)The plan type.SavingsPlan.Builderstart(String start)The start time.SavingsPlan.Builderstate(String state)The current state.SavingsPlan.Builderstate(SavingsPlanState state)The current state.SavingsPlan.Buildertags(Map<String,String> tags)One or more tags.SavingsPlan.BuildertermDurationInSeconds(Long termDurationInSeconds)The duration of the term, in seconds.SavingsPlan.BuilderupfrontPaymentAmount(String upfrontPaymentAmount)The up-front payment amount.-
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
-
offeringId
SavingsPlan.Builder offeringId(String offeringId)
The ID of the offering.
- Parameters:
offeringId- The ID of the offering.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
savingsPlanId
SavingsPlan.Builder savingsPlanId(String savingsPlanId)
The ID of the Savings Plan.
- Parameters:
savingsPlanId- The ID of the Savings Plan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
savingsPlanArn
SavingsPlan.Builder savingsPlanArn(String savingsPlanArn)
The Amazon Resource Name (ARN) of the Savings Plan.
- Parameters:
savingsPlanArn- The Amazon Resource Name (ARN) of the Savings Plan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
SavingsPlan.Builder description(String description)
The description.
- Parameters:
description- The description.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
start
SavingsPlan.Builder start(String start)
The start time.
- Parameters:
start- The start time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
end
SavingsPlan.Builder end(String end)
The end time.
- Parameters:
end- The end time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
SavingsPlan.Builder state(String state)
The current state.
- Parameters:
state- The current state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SavingsPlanState,SavingsPlanState
-
state
SavingsPlan.Builder state(SavingsPlanState state)
The current state.
- Parameters:
state- The current state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SavingsPlanState,SavingsPlanState
-
region
SavingsPlan.Builder region(String region)
The Amazon Web Services Region.
- Parameters:
region- The Amazon Web Services Region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ec2InstanceFamily
SavingsPlan.Builder ec2InstanceFamily(String ec2InstanceFamily)
The EC2 instance family.
- Parameters:
ec2InstanceFamily- The EC2 instance family.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
savingsPlanType
SavingsPlan.Builder savingsPlanType(String savingsPlanType)
The plan type.
- Parameters:
savingsPlanType- The plan type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SavingsPlanType,SavingsPlanType
-
savingsPlanType
SavingsPlan.Builder savingsPlanType(SavingsPlanType savingsPlanType)
The plan type.
- Parameters:
savingsPlanType- The plan type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SavingsPlanType,SavingsPlanType
-
paymentOption
SavingsPlan.Builder paymentOption(String paymentOption)
The payment option.
- Parameters:
paymentOption- The payment option.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SavingsPlanPaymentOption,SavingsPlanPaymentOption
-
paymentOption
SavingsPlan.Builder paymentOption(SavingsPlanPaymentOption paymentOption)
The payment option.
- Parameters:
paymentOption- The payment option.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SavingsPlanPaymentOption,SavingsPlanPaymentOption
-
productTypesWithStrings
SavingsPlan.Builder productTypesWithStrings(Collection<String> productTypes)
The product types.
- Parameters:
productTypes- The product types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
productTypesWithStrings
SavingsPlan.Builder productTypesWithStrings(String... productTypes)
The product types.
- Parameters:
productTypes- The product types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
productTypes
SavingsPlan.Builder productTypes(Collection<SavingsPlanProductType> productTypes)
The product types.
- Parameters:
productTypes- The product types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
productTypes
SavingsPlan.Builder productTypes(SavingsPlanProductType... productTypes)
The product types.
- Parameters:
productTypes- The product types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currency
SavingsPlan.Builder currency(String currency)
The currency.
- Parameters:
currency- The currency.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CurrencyCode,CurrencyCode
-
currency
SavingsPlan.Builder currency(CurrencyCode currency)
The currency.
- Parameters:
currency- The currency.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CurrencyCode,CurrencyCode
-
commitment
SavingsPlan.Builder commitment(String commitment)
The hourly commitment amount in the specified currency.
- Parameters:
commitment- The hourly commitment amount in the specified currency.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
upfrontPaymentAmount
SavingsPlan.Builder upfrontPaymentAmount(String upfrontPaymentAmount)
The up-front payment amount.
- Parameters:
upfrontPaymentAmount- The up-front payment amount.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recurringPaymentAmount
SavingsPlan.Builder recurringPaymentAmount(String recurringPaymentAmount)
The recurring payment amount.
- Parameters:
recurringPaymentAmount- The recurring payment amount.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
termDurationInSeconds
SavingsPlan.Builder termDurationInSeconds(Long termDurationInSeconds)
The duration of the term, in seconds.
- Parameters:
termDurationInSeconds- The duration of the term, in seconds.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
SavingsPlan.Builder tags(Map<String,String> tags)
One or more tags.
- Parameters:
tags- One or more tags.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
returnableUntil
SavingsPlan.Builder returnableUntil(String returnableUntil)
The time until when a return for the Savings Plan can be requested. If the Savings Plan is not returnable, the field reflects the Savings Plan start time.
- Parameters:
returnableUntil- The time until when a return for the Savings Plan can be requested. If the Savings Plan is not returnable, the field reflects the Savings Plan start time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-