Interface DiscountsBreakdown.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<DiscountsBreakdown.Builder,
,DiscountsBreakdown> SdkBuilder<DiscountsBreakdown.Builder,
,DiscountsBreakdown> SdkPojo
- Enclosing class:
DiscountsBreakdown
@Mutable
@NotThreadSafe
public static interface DiscountsBreakdown.Builder
extends SdkPojo, CopyableBuilder<DiscountsBreakdown.Builder,DiscountsBreakdown>
-
Method Summary
Modifier and TypeMethodDescriptionbreakdown
(Collection<DiscountsBreakdownAmount> breakdown) The list of discounts information.breakdown
(Consumer<DiscountsBreakdownAmount.Builder>... breakdown) The list of discounts information.breakdown
(DiscountsBreakdownAmount... breakdown) The list of discounts information.totalAmount
(String totalAmount) The discount's total 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
-
breakdown
The list of discounts information.
- Parameters:
breakdown
- The list of discounts information.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
breakdown
The list of discounts information.
- Parameters:
breakdown
- The list of discounts information.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
breakdown
The list of discounts information.
This is a convenience method that creates an instance of theDiscountsBreakdownAmount.Builder
avoiding the need to create one manually viaDiscountsBreakdownAmount.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobreakdown(List<DiscountsBreakdownAmount>)
.- Parameters:
breakdown
- a consumer that will call methods onDiscountsBreakdownAmount.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
totalAmount
The discount's total amount.
- Parameters:
totalAmount
- The discount's total amount.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-