Class CfnCustomLineItemMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.billingconductor.CfnCustomLineItemMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCustomLineItemMixinProps>
- Enclosing interface:
CfnCustomLineItemMixinProps
@Stability(Stable)
public static final class CfnCustomLineItemMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCustomLineItemMixinProps>
A builder for
CfnCustomLineItemMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnCustomLineItemMixinProps.getAccountId()billingGroupArn(String billingGroupArn) Sets the value ofCfnCustomLineItemMixinProps.getBillingGroupArn()billingPeriodRange(CfnCustomLineItemPropsMixin.BillingPeriodRangeProperty billingPeriodRange) Sets the value ofCfnCustomLineItemMixinProps.getBillingPeriodRange()billingPeriodRange(IResolvable billingPeriodRange) Sets the value ofCfnCustomLineItemMixinProps.getBillingPeriodRange()build()Builds the configured instance.computationRule(String computationRule) Sets the value ofCfnCustomLineItemMixinProps.getComputationRule()customLineItemChargeDetails(CfnCustomLineItemPropsMixin.CustomLineItemChargeDetailsProperty customLineItemChargeDetails) Sets the value ofCfnCustomLineItemMixinProps.getCustomLineItemChargeDetails()customLineItemChargeDetails(IResolvable customLineItemChargeDetails) Sets the value ofCfnCustomLineItemMixinProps.getCustomLineItemChargeDetails()description(String description) Sets the value ofCfnCustomLineItemMixinProps.getDescription()Sets the value ofCfnCustomLineItemMixinProps.getName()presentationDetails(CfnCustomLineItemPropsMixin.PresentationDetailsProperty presentationDetails) Sets the value ofCfnCustomLineItemMixinProps.getPresentationDetails()presentationDetails(IResolvable presentationDetails) Sets the value ofCfnCustomLineItemMixinProps.getPresentationDetails()Sets the value ofCfnCustomLineItemMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accountId
Sets the value ofCfnCustomLineItemMixinProps.getAccountId()- Parameters:
accountId- The AWS account in which this custom line item will be applied to.- Returns:
this
-
billingGroupArn
@Stability(Stable) public CfnCustomLineItemMixinProps.Builder billingGroupArn(String billingGroupArn) Sets the value ofCfnCustomLineItemMixinProps.getBillingGroupArn()- Parameters:
billingGroupArn- The Amazon Resource Name (ARN) that references the billing group where the custom line item applies to.- Returns:
this
-
billingPeriodRange
@Stability(Stable) public CfnCustomLineItemMixinProps.Builder billingPeriodRange(IResolvable billingPeriodRange) Sets the value ofCfnCustomLineItemMixinProps.getBillingPeriodRange()- Parameters:
billingPeriodRange- A time range for which the custom line item is effective.- Returns:
this
-
billingPeriodRange
@Stability(Stable) public CfnCustomLineItemMixinProps.Builder billingPeriodRange(CfnCustomLineItemPropsMixin.BillingPeriodRangeProperty billingPeriodRange) Sets the value ofCfnCustomLineItemMixinProps.getBillingPeriodRange()- Parameters:
billingPeriodRange- A time range for which the custom line item is effective.- Returns:
this
-
computationRule
@Stability(Stable) public CfnCustomLineItemMixinProps.Builder computationRule(String computationRule) Sets the value ofCfnCustomLineItemMixinProps.getComputationRule()- Parameters:
computationRule- The computation rule that determines how the custom line item charges are computed and reflected in the bill.- Returns:
this
-
customLineItemChargeDetails
@Stability(Stable) public CfnCustomLineItemMixinProps.Builder customLineItemChargeDetails(IResolvable customLineItemChargeDetails) Sets the value ofCfnCustomLineItemMixinProps.getCustomLineItemChargeDetails()- Parameters:
customLineItemChargeDetails- The charge details of a custom line item. It should contain only one ofFlatorPercentage.- Returns:
this
-
customLineItemChargeDetails
@Stability(Stable) public CfnCustomLineItemMixinProps.Builder customLineItemChargeDetails(CfnCustomLineItemPropsMixin.CustomLineItemChargeDetailsProperty customLineItemChargeDetails) Sets the value ofCfnCustomLineItemMixinProps.getCustomLineItemChargeDetails()- Parameters:
customLineItemChargeDetails- The charge details of a custom line item. It should contain only one ofFlatorPercentage.- Returns:
this
-
description
Sets the value ofCfnCustomLineItemMixinProps.getDescription()- Parameters:
description- The custom line item's description. This is shown on the Bills page in association with the charge value.- Returns:
this
-
name
Sets the value ofCfnCustomLineItemMixinProps.getName()- Parameters:
name- The custom line item's name.- Returns:
this
-
presentationDetails
@Stability(Stable) public CfnCustomLineItemMixinProps.Builder presentationDetails(IResolvable presentationDetails) Sets the value ofCfnCustomLineItemMixinProps.getPresentationDetails()- Parameters:
presentationDetails- Configuration details specifying how the custom line item charges are presented, including which service the charges are shown under.- Returns:
this
-
presentationDetails
@Stability(Stable) public CfnCustomLineItemMixinProps.Builder presentationDetails(CfnCustomLineItemPropsMixin.PresentationDetailsProperty presentationDetails) Sets the value ofCfnCustomLineItemMixinProps.getPresentationDetails()- Parameters:
presentationDetails- Configuration details specifying how the custom line item charges are presented, including which service the charges are shown under.- Returns:
this
-
tags
Sets the value ofCfnCustomLineItemMixinProps.getTags()- Parameters:
tags- A map that contains tag keys and tag values that are attached to a custom line item.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCustomLineItemMixinProps>- Returns:
- a new instance of
CfnCustomLineItemMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-