public static interface RecurringCharge.Builder extends SdkPojo, CopyableBuilder<RecurringCharge.Builder,RecurringCharge>
Modifier and Type | Method and Description |
---|---|
default RecurringCharge.Builder |
cost(Consumer<MonetaryAmount.Builder> cost)
The cost of the recurring charge.
|
RecurringCharge.Builder |
cost(MonetaryAmount cost)
The cost of the recurring charge.
|
RecurringCharge.Builder |
frequency(RecurringChargeFrequency frequency)
The frequency in which charges will recur.
|
RecurringCharge.Builder |
frequency(String frequency)
The frequency in which charges will recur.
|
copy
applyMutation, build
RecurringCharge.Builder cost(MonetaryAmount cost)
The cost of the recurring charge.
cost
- The cost of the recurring charge.default RecurringCharge.Builder cost(Consumer<MonetaryAmount.Builder> cost)
The cost of the recurring charge.
This is a convenience that creates an instance of theMonetaryAmount.Builder
avoiding the need to
create one manually via MonetaryAmount.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to cost(MonetaryAmount)
.cost
- a consumer that will call methods on MonetaryAmount.Builder
cost(MonetaryAmount)
RecurringCharge.Builder frequency(String frequency)
The frequency in which charges will recur.
frequency
- The frequency in which charges will recur.RecurringChargeFrequency
,
RecurringChargeFrequency
RecurringCharge.Builder frequency(RecurringChargeFrequency frequency)
The frequency in which charges will recur.
frequency
- The frequency in which charges will recur.RecurringChargeFrequency
,
RecurringChargeFrequency
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.