Class CfnCustomLineItem.Builder
java.lang.Object
software.amazon.awscdk.services.billingconductor.CfnCustomLineItem.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCustomLineItem>
- Enclosing class:
CfnCustomLineItem
@Stability(Stable)
public static final class CfnCustomLineItem.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCustomLineItem>
A fluent builder for
CfnCustomLineItem
.-
Method Summary
Modifier and TypeMethodDescriptionThe AWS account in which this custom line item will be applied to.billingGroupArn
(String billingGroupArn) The Amazon Resource Name (ARN) that references the billing group where the custom line item applies to.billingPeriodRange
(IResolvable billingPeriodRange) A time range for which the custom line item is effective.billingPeriodRange
(CfnCustomLineItem.BillingPeriodRangeProperty billingPeriodRange) A time range for which the custom line item is effective.build()
static CfnCustomLineItem.Builder
customLineItemChargeDetails
(IResolvable customLineItemChargeDetails) The charge details of a custom line item.customLineItemChargeDetails
(CfnCustomLineItem.CustomLineItemChargeDetailsProperty customLineItemChargeDetails) The charge details of a custom line item.description
(String description) The custom line item's description.The custom line item's name.A map that contains tag keys and tag values that are attached to a custom line item.
-
Method Details
-
create
@Stability(Stable) public static CfnCustomLineItem.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnCustomLineItem.Builder
.
-
billingGroupArn
The Amazon Resource Name (ARN) that references the billing group where the custom line item applies to.- 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
- See Also:
-
name
The custom line item's name.- Parameters:
name
- The custom line item's name. This parameter is required.- Returns:
this
- See Also:
-
accountId
The AWS account in which this custom line item will be applied to.- Parameters:
accountId
- The AWS account in which this custom line item will be applied to. This parameter is required.- Returns:
this
- See Also:
-
billingPeriodRange
@Stability(Stable) public CfnCustomLineItem.Builder billingPeriodRange(IResolvable billingPeriodRange) A time range for which the custom line item is effective.- Parameters:
billingPeriodRange
- A time range for which the custom line item is effective. This parameter is required.- Returns:
this
- See Also:
-
billingPeriodRange
@Stability(Stable) public CfnCustomLineItem.Builder billingPeriodRange(CfnCustomLineItem.BillingPeriodRangeProperty billingPeriodRange) A time range for which the custom line item is effective.- Parameters:
billingPeriodRange
- A time range for which the custom line item is effective. This parameter is required.- Returns:
this
- See Also:
-
customLineItemChargeDetails
@Stability(Stable) public CfnCustomLineItem.Builder customLineItemChargeDetails(IResolvable customLineItemChargeDetails) The charge details of a custom line item.It should contain only one of
Flat
orPercentage
.- Parameters:
customLineItemChargeDetails
- The charge details of a custom line item. This parameter is required.- Returns:
this
- See Also:
-
customLineItemChargeDetails
@Stability(Stable) public CfnCustomLineItem.Builder customLineItemChargeDetails(CfnCustomLineItem.CustomLineItemChargeDetailsProperty customLineItemChargeDetails) The charge details of a custom line item.It should contain only one of
Flat
orPercentage
.- Parameters:
customLineItemChargeDetails
- The charge details of a custom line item. This parameter is required.- Returns:
this
- See Also:
-
description
The custom line item's description.This is shown on the Bills page in association with the charge value.
- Parameters:
description
- The custom line item's description. This parameter is required.- Returns:
this
- See Also:
-
tags
A map that contains tag keys and tag values that are attached to a custom line item.- Parameters:
tags
- A map that contains tag keys and tag values that are attached to a custom line item. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCustomLineItem>
- Returns:
- a newly built instance of
CfnCustomLineItem
.
-