Interface CustomLineItemChargeDetails.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CustomLineItemChargeDetails.Builder,,CustomLineItemChargeDetails> SdkBuilder<CustomLineItemChargeDetails.Builder,,CustomLineItemChargeDetails> SdkPojo
- Enclosing class:
CustomLineItemChargeDetails
-
Method Summary
Modifier and TypeMethodDescriptionACustomLineItemFlatChargeDetailsthat describes the charge details of a flat custom line item.ACustomLineItemFlatChargeDetailsthat 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.ACustomLineItemPercentageChargeDetailsthat describes the charge details of a percentage custom line item.percentage(CustomLineItemPercentageChargeDetails percentage) ACustomLineItemPercentageChargeDetailsthat 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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
flat
A
CustomLineItemFlatChargeDetailsthat describes the charge details of a flat custom line item.- Parameters:
flat- ACustomLineItemFlatChargeDetailsthat 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 theCustomLineItemFlatChargeDetailsthat describes the charge details of a flat custom line item.CustomLineItemFlatChargeDetails.Builderavoiding the need to create one manually viaCustomLineItemFlatChargeDetails.builder().When the
Consumercompletes,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
CustomLineItemPercentageChargeDetailsthat describes the charge details of a percentage custom line item.- Parameters:
percentage- ACustomLineItemPercentageChargeDetailsthat 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 theCustomLineItemPercentageChargeDetailsthat describes the charge details of a percentage custom line item.CustomLineItemPercentageChargeDetails.Builderavoiding the need to create one manually viaCustomLineItemPercentageChargeDetails.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaLineItemFilter.builder().When the
Consumercompletes,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:
-