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 Details

    • create

      @Stability(Stable) public static CfnCustomLineItem.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnCustomLineItem.Builder.
    • billingGroupArn

      @Stability(Stable) public CfnCustomLineItem.Builder billingGroupArn(String 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
    • name

      @Stability(Stable) public CfnCustomLineItem.Builder name(String name)
      The custom line item's name.

      Parameters:
      name - The custom line item's name. This parameter is required.
      Returns:
      this
    • 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
    • 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
    • customLineItemChargeDetails

      @Stability(Stable) public CfnCustomLineItem.Builder customLineItemChargeDetails(IResolvable customLineItemChargeDetails)
      The charge details of a custom line item.

      It should contain only one of Flat or Percentage .

      Parameters:
      customLineItemChargeDetails - The charge details of a custom line item. This parameter is required.
      Returns:
      this
    • 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 or Percentage .

      Parameters:
      customLineItemChargeDetails - The charge details of a custom line item. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public CfnCustomLineItem.Builder description(String 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
    • tags

      @Stability(Stable) public CfnCustomLineItem.Builder tags(List<? extends CfnTag> 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
    • build

      @Stability(Stable) public CfnCustomLineItem build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnCustomLineItem>
      Returns:
      a newly built instance of CfnCustomLineItem.