Interface CreateSavingsPlanRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateSavingsPlanRequest.Builder,,CreateSavingsPlanRequest> SavingsplansRequest.Builder,SdkBuilder<CreateSavingsPlanRequest.Builder,,CreateSavingsPlanRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateSavingsPlanRequest
public static interface CreateSavingsPlanRequest.Builder
extends SavingsplansRequest.Builder, SdkPojo, CopyableBuilder<CreateSavingsPlanRequest.Builder,CreateSavingsPlanRequest>
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.commitment(String commitment) The hourly commitment, in the same currency of thesavingsPlanOfferingId.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.purchaseTime(Instant purchaseTime) The purchase time of the Savings Plan in UTC format (YYYY-MM-DDTHH:MM:SSZ).savingsPlanOfferingId(String savingsPlanOfferingId) The ID of the offering.One or more tags.upfrontPaymentAmount(String upfrontPaymentAmount) The up-front payment amount.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.savingsplans.model.SavingsplansRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
savingsPlanOfferingId
The ID of the offering.
- Parameters:
savingsPlanOfferingId- The ID of the offering.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
commitment
The hourly commitment, in the same currency of the
savingsPlanOfferingId. This is a value between 0.001 and 1 million. You cannot specify more than five digits after the decimal point.- Parameters:
commitment- The hourly commitment, in the same currency of thesavingsPlanOfferingId. This is a value between 0.001 and 1 million. You cannot specify more than five digits after the decimal point.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
upfrontPaymentAmount
The up-front payment amount. This is a whole number between 50 and 99 percent of the total value of the Savings Plan. This parameter is only supported if the payment option is
Partial Upfront.- Parameters:
upfrontPaymentAmount- The up-front payment amount. This is a whole number between 50 and 99 percent of the total value of the Savings Plan. This parameter is only supported if the payment option isPartial Upfront.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
purchaseTime
The purchase time of the Savings Plan in UTC format (YYYY-MM-DDTHH:MM:SSZ).
- Parameters:
purchaseTime- The purchase time of the Savings Plan in UTC format (YYYY-MM-DDTHH:MM:SSZ).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
- Parameters:
clientToken- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
overrideConfiguration
CreateSavingsPlanRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateSavingsPlanRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-