Interface AmountBreakdown.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AmountBreakdown.Builder,
,AmountBreakdown> SdkBuilder<AmountBreakdown.Builder,
,AmountBreakdown> SdkPojo
- Enclosing class:
AmountBreakdown
@Mutable
@NotThreadSafe
public static interface AmountBreakdown.Builder
extends SdkPojo, CopyableBuilder<AmountBreakdown.Builder,AmountBreakdown>
-
Method Summary
Modifier and TypeMethodDescriptiondefault AmountBreakdown.Builder
discounts
(Consumer<DiscountsBreakdown.Builder> discounts) The discounted amount.discounts
(DiscountsBreakdown discounts) The discounted amount.default AmountBreakdown.Builder
fees
(Consumer<FeesBreakdown.Builder> fees) The fee amount.fees
(FeesBreakdown fees) The fee amount.subTotalAmount
(String subTotalAmount) The total of a set of the breakdown.default AmountBreakdown.Builder
taxes
(Consumer<TaxesBreakdown.Builder> taxes) The tax amount.taxes
(TaxesBreakdown taxes) The tax amount.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, sdkFieldNameToField, sdkFields
-
Method Details
-
subTotalAmount
The total of a set of the breakdown.
- Parameters:
subTotalAmount
- The total of a set of the breakdown.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
discounts
The discounted amount.
- Parameters:
discounts
- The discounted amount.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
discounts
The discounted amount.
This is a convenience method that creates an instance of theDiscountsBreakdown.Builder
avoiding the need to create one manually viaDiscountsBreakdown.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todiscounts(DiscountsBreakdown)
.- Parameters:
discounts
- a consumer that will call methods onDiscountsBreakdown.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
taxes
The tax amount.
- Parameters:
taxes
- The tax amount.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taxes
The tax amount.
This is a convenience method that creates an instance of theTaxesBreakdown.Builder
avoiding the need to create one manually viaTaxesBreakdown.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totaxes(TaxesBreakdown)
.- Parameters:
taxes
- a consumer that will call methods onTaxesBreakdown.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
fees
The fee amount.
- Parameters:
fees
- The fee amount.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fees
The fee amount.
This is a convenience method that creates an instance of theFeesBreakdown.Builder
avoiding the need to create one manually viaFeesBreakdown.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofees(FeesBreakdown)
.- Parameters:
fees
- a consumer that will call methods onFeesBreakdown.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-