Interface CustomLineItemChargeDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CustomLineItemChargeDetails.Builder,
,CustomLineItemChargeDetails> SdkBuilder<CustomLineItemChargeDetails.Builder,
,CustomLineItemChargeDetails> SdkPojo
- Enclosing class:
CustomLineItemChargeDetails
-
Method Summary
Modifier and TypeMethodDescriptionACustomLineItemFlatChargeDetails
that describes the charge details of a flat custom line item.ACustomLineItemFlatChargeDetails
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.ACustomLineItemPercentageChargeDetails
that describes the charge details of a percentage custom line item.percentage
(CustomLineItemPercentageChargeDetails percentage) ACustomLineItemPercentageChargeDetails
that describes the charge details of a percentage custom line item.The type of the custom line item that indicates whether the charge is a fee or credit.type
(CustomLineItemType type) The type of the custom line item that indicates whether the charge is a fee or credit.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
-
flat
A
CustomLineItemFlatChargeDetails
that describes the charge details of a flat custom line item.- Parameters:
flat
- ACustomLineItemFlatChargeDetails
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 CustomLineItemChargeDetails.Builder flat(Consumer<CustomLineItemFlatChargeDetails.Builder> flat) A
This is a convenience method that creates an instance of theCustomLineItemFlatChargeDetails
that describes the charge details of a flat custom line item.CustomLineItemFlatChargeDetails.Builder
avoiding the need to create one manually viaCustomLineItemFlatChargeDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toflat(CustomLineItemFlatChargeDetails)
.- Parameters:
flat
- a consumer that will call methods onCustomLineItemFlatChargeDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
percentage
A
CustomLineItemPercentageChargeDetails
that describes the charge details of a percentage custom line item.- Parameters:
percentage
- ACustomLineItemPercentageChargeDetails
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 CustomLineItemChargeDetails.Builder percentage(Consumer<CustomLineItemPercentageChargeDetails.Builder> percentage) A
This is a convenience method that creates an instance of theCustomLineItemPercentageChargeDetails
that describes the charge details of a percentage custom line item.CustomLineItemPercentageChargeDetails.Builder
avoiding the need to create one manually viaCustomLineItemPercentageChargeDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topercentage(CustomLineItemPercentageChargeDetails)
.- Parameters:
percentage
- a consumer that will call methods onCustomLineItemPercentageChargeDetails.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 or credit.
- Parameters:
type
- The type of the custom line item that indicates whether the charge is a fee or credit.- 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 or credit.
- Parameters:
type
- The type of the custom line item that indicates whether the charge is a fee or credit.- 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
CustomLineItemChargeDetails.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:
-