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
-
Method Summary
Modifier and TypeMethodDescriptionbillingGroupArn
(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.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()
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
-
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
-
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 ofFlat
orPercentage
.- 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 ofFlat
orPercentage
.- 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
-
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:
build
in interfacesoftware.amazon.jsii.Builder<CfnCustomLineItemProps>
- Returns:
- a new instance of
CfnCustomLineItemProps
- Throws:
NullPointerException
- if any required attribute was not provided
-