Class CfnCostCategoryProps.Builder
java.lang.Object
software.amazon.awscdk.services.ce.CfnCostCategoryProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCostCategoryProps>
- Enclosing interface:
CfnCostCategoryProps
@Stability(Stable)
public static final class CfnCostCategoryProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCostCategoryProps>
A builder for
CfnCostCategoryProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.defaultValue
(String defaultValue) Sets the value ofCfnCostCategoryProps.getDefaultValue()
Sets the value ofCfnCostCategoryProps.getName()
Sets the value ofCfnCostCategoryProps.getRules()
ruleVersion
(String ruleVersion) Sets the value ofCfnCostCategoryProps.getRuleVersion()
splitChargeRules
(String splitChargeRules) Sets the value ofCfnCostCategoryProps.getSplitChargeRules()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnCostCategoryProps.getName()
- Parameters:
name
- The unique name of the Cost Category. This parameter is required.- Returns:
this
-
rules
Sets the value ofCfnCostCategoryProps.getRules()
- Parameters:
rules
- The array of CostCategoryRule in JSON array format. This parameter is required.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.
- Returns:
this
-
ruleVersion
Sets the value ofCfnCostCategoryProps.getRuleVersion()
- Parameters:
ruleVersion
- The rule schema version in this particular Cost Category. This parameter is required.- Returns:
this
-
defaultValue
Sets the value ofCfnCostCategoryProps.getDefaultValue()
- Parameters:
defaultValue
- The default value for the cost category.- Returns:
this
-
splitChargeRules
Sets the value ofCfnCostCategoryProps.getSplitChargeRules()
- Parameters:
splitChargeRules
- The split charge rules that are used to allocate your charges between your Cost Category values.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCostCategoryProps>
- Returns:
- a new instance of
CfnCostCategoryProps
- Throws:
NullPointerException
- if any required attribute was not provided
-