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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default RecurringCharge.Buildercost(Consumer<MonetaryAmount.Builder> cost)The cost of the recurring charge.RecurringCharge.Buildercost(MonetaryAmount cost)The cost of the recurring charge.RecurringCharge.Builderfrequency(String frequency)The frequency in which charges recur.RecurringCharge.Builderfrequency(RecurringChargeFrequency frequency)The frequency in which charges recur.-
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
-
cost
RecurringCharge.Builder cost(MonetaryAmount 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
default RecurringCharge.Builder cost(Consumer<MonetaryAmount.Builder> 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:
cost(MonetaryAmount)
-
frequency
RecurringCharge.Builder frequency(String 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:
RecurringChargeFrequency,RecurringChargeFrequency
-
frequency
RecurringCharge.Builder frequency(RecurringChargeFrequency 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:
RecurringChargeFrequency,RecurringChargeFrequency
-
-