Class CfnCostCategory.Builder

java.lang.Object
software.amazon.awscdk.services.ce.CfnCostCategory.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCostCategory>
Enclosing class:
CfnCostCategory

@Stability(Stable) public static final class CfnCostCategory.Builder extends Object implements software.amazon.jsii.Builder<CfnCostCategory>
A fluent builder for CfnCostCategory.
  • Method Details

    • create

      @Stability(Stable) public static CfnCostCategory.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 CfnCostCategory.Builder.
    • name

      @Stability(Stable) public CfnCostCategory.Builder name(String name)
      The unique name of the Cost Category.

      Parameters:
      name - The unique name of the Cost Category. This parameter is required.
      Returns:
      this
    • rules

      @Stability(Stable) public CfnCostCategory.Builder rules(String rules)
      The array of CostCategoryRule in JSON array format.

      Rules are processed in order. If there are multiple rules that match the line item, then the first rule to match is used to determine that Cost Category value.

      Parameters:
      rules - The array of CostCategoryRule in JSON array format. This parameter is required.
      Returns:
      this
    • ruleVersion

      @Stability(Stable) public CfnCostCategory.Builder ruleVersion(String ruleVersion)
      The rule schema version in this particular Cost Category.

      Parameters:
      ruleVersion - The rule schema version in this particular Cost Category. This parameter is required.
      Returns:
      this
    • defaultValue

      @Stability(Stable) public CfnCostCategory.Builder defaultValue(String defaultValue)
      The default value for the cost category.

      Parameters:
      defaultValue - The default value for the cost category. This parameter is required.
      Returns:
      this
    • splitChargeRules

      @Stability(Stable) public CfnCostCategory.Builder splitChargeRules(String splitChargeRules)
      The split charge rules that are used to allocate your charges between your Cost Category values.

      Parameters:
      splitChargeRules - The split charge rules that are used to allocate your charges between your Cost Category values. This parameter is required.
      Returns:
      this
    • build

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