Interface RecurringCharge.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RecurringCharge.Builder,,RecurringCharge> SdkBuilder<RecurringCharge.Builder,,RecurringCharge> SdkPojo
- Enclosing class:
RecurringCharge
public static interface RecurringCharge.Builder
extends SdkPojo, CopyableBuilder<RecurringCharge.Builder,RecurringCharge>
-
Method Summary
Modifier and TypeMethodDescriptiondefault RecurringCharge.Buildercost(Consumer<MonetaryAmount.Builder> cost) The cost of the recurring charge.cost(MonetaryAmount cost) The cost of the recurring charge.The frequency in which charges recur.frequency(RecurringChargeFrequency frequency) The frequency in which charges recur.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, sdkFields
-
Method Details
-
cost
The cost of the recurring charge.
- Parameters:
cost- The cost of the recurring charge.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cost
The cost of the recurring charge.
This is a convenience method that creates an instance of theMonetaryAmount.Builderavoiding the need to create one manually viaMonetaryAmount.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocost(MonetaryAmount).- Parameters:
cost- a consumer that will call methods onMonetaryAmount.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
frequency
The frequency in which charges recur.
- Parameters:
frequency- The frequency in which charges recur.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
frequency
The frequency in which charges recur.
- Parameters:
frequency- The frequency in which charges recur.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-