Class CfnCustomLineItem.CustomLineItemChargeDetailsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.billingconductor.CfnCustomLineItem.CustomLineItemChargeDetailsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCustomLineItem.CustomLineItemChargeDetailsProperty>
- Enclosing interface:
- CfnCustomLineItem.CustomLineItemChargeDetailsProperty
@Stability(Stable)
public static final class CfnCustomLineItem.CustomLineItemChargeDetailsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCustomLineItem.CustomLineItemChargeDetailsProperty>
A builder for
CfnCustomLineItem.CustomLineItemChargeDetailsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.flat(IResolvable flat) Sets the value ofCfnCustomLineItem.CustomLineItemChargeDetailsProperty.getFlat()Sets the value ofCfnCustomLineItem.CustomLineItemChargeDetailsProperty.getFlat()percentage(IResolvable percentage) Sets the value ofCfnCustomLineItem.CustomLineItemChargeDetailsProperty.getPercentage()Sets the value ofCfnCustomLineItem.CustomLineItemChargeDetailsProperty.getPercentage()Sets the value ofCfnCustomLineItem.CustomLineItemChargeDetailsProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
@Stability(Stable) public CfnCustomLineItem.CustomLineItemChargeDetailsProperty.Builder type(String type) Sets the value ofCfnCustomLineItem.CustomLineItemChargeDetailsProperty.getType()- Parameters:
type- The type of the custom line item that indicates whether the charge is a fee or credit. This parameter is required.- Returns:
this
-
flat
@Stability(Stable) public CfnCustomLineItem.CustomLineItemChargeDetailsProperty.Builder flat(IResolvable flat) Sets the value ofCfnCustomLineItem.CustomLineItemChargeDetailsProperty.getFlat()- Parameters:
flat- ACustomLineItemFlatChargeDetailsthat describes the charge details of a flat custom line item.- Returns:
this
-
flat
@Stability(Stable) public CfnCustomLineItem.CustomLineItemChargeDetailsProperty.Builder flat(CfnCustomLineItem.CustomLineItemFlatChargeDetailsProperty flat) Sets the value ofCfnCustomLineItem.CustomLineItemChargeDetailsProperty.getFlat()- Parameters:
flat- ACustomLineItemFlatChargeDetailsthat describes the charge details of a flat custom line item.- Returns:
this
-
percentage
@Stability(Stable) public CfnCustomLineItem.CustomLineItemChargeDetailsProperty.Builder percentage(IResolvable percentage) Sets the value ofCfnCustomLineItem.CustomLineItemChargeDetailsProperty.getPercentage()- Parameters:
percentage- ACustomLineItemPercentageChargeDetailsthat describes the charge details of a percentage custom line item.- Returns:
this
-
percentage
@Stability(Stable) public CfnCustomLineItem.CustomLineItemChargeDetailsProperty.Builder percentage(CfnCustomLineItem.CustomLineItemPercentageChargeDetailsProperty percentage) Sets the value ofCfnCustomLineItem.CustomLineItemChargeDetailsProperty.getPercentage()- Parameters:
percentage- ACustomLineItemPercentageChargeDetailsthat describes the charge details of a percentage custom line item.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCustomLineItem.CustomLineItemChargeDetailsProperty>- Returns:
- a new instance of
CfnCustomLineItem.CustomLineItemChargeDetailsProperty - Throws:
NullPointerException- if any required attribute was not provided
-