Interface ListCustomLineItemChargeDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ListCustomLineItemChargeDetails.Builder,
,ListCustomLineItemChargeDetails> SdkBuilder<ListCustomLineItemChargeDetails.Builder,
,ListCustomLineItemChargeDetails> SdkPojo
- Enclosing class:
ListCustomLineItemChargeDetails
-
Method Summary
Modifier and TypeMethodDescriptionAListCustomLineItemFlatChargeDetails
that describes the charge details of a flat custom line item.AListCustomLineItemFlatChargeDetails
that describes the charge details of a flat custom line item.lineItemFilters
(Collection<LineItemFilter> lineItemFilters) A representation of the line item filter.lineItemFilters
(Consumer<LineItemFilter.Builder>... lineItemFilters) A representation of the line item filter.lineItemFilters
(LineItemFilter... lineItemFilters) A representation of the line item filter.AListCustomLineItemPercentageChargeDetails
that describes the charge details of a percentage custom line item.percentage
(ListCustomLineItemPercentageChargeDetails percentage) AListCustomLineItemPercentageChargeDetails
that describes the charge details of a percentage custom line item.The type of the custom line item that indicates whether the charge is afee
orcredit
.type
(CustomLineItemType type) The type of the custom line item that indicates whether the charge is afee
orcredit
.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 Details
-
flat
A
ListCustomLineItemFlatChargeDetails
that describes the charge details of a flat custom line item.- Parameters:
flat
- AListCustomLineItemFlatChargeDetails
that describes the charge details of a flat custom line item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
flat
default ListCustomLineItemChargeDetails.Builder flat(Consumer<ListCustomLineItemFlatChargeDetails.Builder> flat) A
This is a convenience method that creates an instance of theListCustomLineItemFlatChargeDetails
that describes the charge details of a flat custom line item.ListCustomLineItemFlatChargeDetails.Builder
avoiding the need to create one manually viaListCustomLineItemFlatChargeDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toflat(ListCustomLineItemFlatChargeDetails)
.- Parameters:
flat
- a consumer that will call methods onListCustomLineItemFlatChargeDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
percentage
ListCustomLineItemChargeDetails.Builder percentage(ListCustomLineItemPercentageChargeDetails percentage) A
ListCustomLineItemPercentageChargeDetails
that describes the charge details of a percentage custom line item.- Parameters:
percentage
- AListCustomLineItemPercentageChargeDetails
that describes the charge details of a percentage custom line item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
percentage
default ListCustomLineItemChargeDetails.Builder percentage(Consumer<ListCustomLineItemPercentageChargeDetails.Builder> percentage) A
This is a convenience method that creates an instance of theListCustomLineItemPercentageChargeDetails
that describes the charge details of a percentage custom line item.ListCustomLineItemPercentageChargeDetails.Builder
avoiding the need to create one manually viaListCustomLineItemPercentageChargeDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topercentage(ListCustomLineItemPercentageChargeDetails)
.- Parameters:
percentage
- a consumer that will call methods onListCustomLineItemPercentageChargeDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of the custom line item that indicates whether the charge is a
fee
orcredit
.- Parameters:
type
- The type of the custom line item that indicates whether the charge is afee
orcredit
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of the custom line item that indicates whether the charge is a
fee
orcredit
.- Parameters:
type
- The type of the custom line item that indicates whether the charge is afee
orcredit
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lineItemFilters
A representation of the line item filter.
- Parameters:
lineItemFilters
- A representation of the line item filter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lineItemFilters
A representation of the line item filter.
- Parameters:
lineItemFilters
- A representation of the line item filter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lineItemFilters
ListCustomLineItemChargeDetails.Builder lineItemFilters(Consumer<LineItemFilter.Builder>... lineItemFilters) A representation of the line item filter.
This is a convenience method that creates an instance of theLineItemFilter.Builder
avoiding the need to create one manually viaLineItemFilter.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolineItemFilters(List<LineItemFilter>)
.- Parameters:
lineItemFilters
- a consumer that will call methods onLineItemFilter.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-