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