Interface PlanPrice.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PlanPrice.Builder,,PlanPrice> SdkBuilder<PlanPrice.Builder,,PlanPrice> SdkPojo
- Enclosing class:
PlanPrice
@Mutable
@NotThreadSafe
public static interface PlanPrice.Builder
extends SdkPojo, CopyableBuilder<PlanPrice.Builder,PlanPrice>
-
Method Summary
Modifier and TypeMethodDescriptionactionName(String actionName) Withpay_as_you_goonly: the action this rate is for, one ofactions[].name; the other actions keep their recommended rates.Plan code as returned inplans, for examplepro.default PlanPrice.Builderprice(Consumer<Price.Builder> price) Price per billing cycle, or per use forpay_as_you_go(at least 0.01).Price per billing cycle, or per use forpay_as_you_go(at least 0.01).Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
planCode
Plan code as returned in
plans, for examplepro. Each plan code appears once.- Parameters:
planCode- Plan code as returned inplans, for examplepro. Each plan code appears once.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actionName
With
pay_as_you_goonly: the action this rate is for, one ofactions[].name; the other actions keep their recommended rates. Absent onpay_as_you_go: one rate for every charged action, accepted only whenpricingModelis PER_USE.- Parameters:
actionName- Withpay_as_you_goonly: the action this rate is for, one ofactions[].name; the other actions keep their recommended rates. Absent onpay_as_you_go: one rate for every charged action, accepted only whenpricingModelis PER_USE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
price
Price per billing cycle, or per use for
pay_as_you_go(at least 0.01). A whole number of cents. USD only: another currencyCode is rejected.- Parameters:
price- Price per billing cycle, or per use forpay_as_you_go(at least 0.01). A whole number of cents. USD only: another currencyCode is rejected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
price
Price per billing cycle, or per use for
This is a convenience method that creates an instance of thepay_as_you_go(at least 0.01). A whole number of cents. USD only: another currencyCode is rejected.Price.Builderavoiding the need to create one manually viaPrice.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprice(Price).- Parameters:
price- a consumer that will call methods onPrice.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-