Class CfnCustomLineItemProps.Builder
java.lang.Object
software.amazon.awscdk.services.billingconductor.CfnCustomLineItemProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCustomLineItemProps>
- Enclosing interface:
CfnCustomLineItemProps
@Stability(Stable)
public static final class CfnCustomLineItemProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCustomLineItemProps>
A builder for
CfnCustomLineItemProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnCustomLineItemProps.getAccountId()billingGroupArn(String billingGroupArn) Sets the value ofCfnCustomLineItemProps.getBillingGroupArn()billingPeriodRange(IResolvable billingPeriodRange) Sets the value ofCfnCustomLineItemProps.getBillingPeriodRange()billingPeriodRange(CfnCustomLineItem.BillingPeriodRangeProperty billingPeriodRange) Sets the value ofCfnCustomLineItemProps.getBillingPeriodRange()build()Builds the configured instance.computationRule(String computationRule) Sets the value ofCfnCustomLineItemProps.getComputationRule()customLineItemChargeDetails(IResolvable customLineItemChargeDetails) Sets the value ofCfnCustomLineItemProps.getCustomLineItemChargeDetails()customLineItemChargeDetails(CfnCustomLineItem.CustomLineItemChargeDetailsProperty customLineItemChargeDetails) Sets the value ofCfnCustomLineItemProps.getCustomLineItemChargeDetails()description(String description) Sets the value ofCfnCustomLineItemProps.getDescription()Sets the value ofCfnCustomLineItemProps.getName()presentationDetails(IResolvable presentationDetails) Sets the value ofCfnCustomLineItemProps.getPresentationDetails()presentationDetails(CfnCustomLineItem.PresentationDetailsProperty presentationDetails) Sets the value ofCfnCustomLineItemProps.getPresentationDetails()Sets the value ofCfnCustomLineItemProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
billingGroupArn
Sets the value ofCfnCustomLineItemProps.getBillingGroupArn()- Parameters:
billingGroupArn- The Amazon Resource Name (ARN) that references the billing group where the custom line item applies to. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnCustomLineItemProps.getName()- Parameters:
name- The custom line item's name. This parameter is required.- Returns:
this
-
accountId
Sets the value ofCfnCustomLineItemProps.getAccountId()- Parameters:
accountId- The AWS account in which this custom line item will be applied to.- Returns:
this
-
billingPeriodRange
@Stability(Stable) public CfnCustomLineItemProps.Builder billingPeriodRange(IResolvable billingPeriodRange) Sets the value ofCfnCustomLineItemProps.getBillingPeriodRange()- Parameters:
billingPeriodRange- A time range for which the custom line item is effective.- Returns:
this
-
billingPeriodRange
@Stability(Stable) public CfnCustomLineItemProps.Builder billingPeriodRange(CfnCustomLineItem.BillingPeriodRangeProperty billingPeriodRange) Sets the value ofCfnCustomLineItemProps.getBillingPeriodRange()- Parameters:
billingPeriodRange- A time range for which the custom line item is effective.- Returns:
this
-
computationRule
Sets the value ofCfnCustomLineItemProps.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 CfnCustomLineItemProps.Builder customLineItemChargeDetails(IResolvable customLineItemChargeDetails) Sets the value ofCfnCustomLineItemProps.getCustomLineItemChargeDetails()- Parameters:
customLineItemChargeDetails- The charge details of a custom line item. It should contain only one ofFlatorPercentage.- Returns:
this
-
customLineItemChargeDetails
@Stability(Stable) public CfnCustomLineItemProps.Builder customLineItemChargeDetails(CfnCustomLineItem.CustomLineItemChargeDetailsProperty customLineItemChargeDetails) Sets the value ofCfnCustomLineItemProps.getCustomLineItemChargeDetails()- Parameters:
customLineItemChargeDetails- The charge details of a custom line item. It should contain only one ofFlatorPercentage.- Returns:
this
-
description
Sets the value ofCfnCustomLineItemProps.getDescription()- Parameters:
description- The custom line item's description. This is shown on the Bills page in association with the charge value.- Returns:
this
-
presentationDetails
@Stability(Stable) public CfnCustomLineItemProps.Builder presentationDetails(IResolvable presentationDetails) Sets the value ofCfnCustomLineItemProps.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 CfnCustomLineItemProps.Builder presentationDetails(CfnCustomLineItem.PresentationDetailsProperty presentationDetails) Sets the value ofCfnCustomLineItemProps.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 ofCfnCustomLineItemProps.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<CfnCustomLineItemProps>- Returns:
- a new instance of
CfnCustomLineItemProps - Throws:
NullPointerException- if any required attribute was not provided
-