Class CfnBillScenarioProps.Builder
java.lang.Object
software.amazon.awscdk.services.bcmpricingcalculator.CfnBillScenarioProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBillScenarioProps>
- Enclosing interface:
CfnBillScenarioProps
@Stability(Stable)
public static final class CfnBillScenarioProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBillScenarioProps>
A builder for
CfnBillScenarioProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.costCategoryGroupSharingPreferenceArn(String costCategoryGroupSharingPreferenceArn) Sets the value ofCfnBillScenarioProps.getCostCategoryGroupSharingPreferenceArn()Sets the value ofCfnBillScenarioProps.getExpiresAt()groupSharingPreference(String groupSharingPreference) Sets the value ofCfnBillScenarioProps.getGroupSharingPreference()Sets the value ofCfnBillScenarioProps.getName()Sets the value ofCfnBillScenarioProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
costCategoryGroupSharingPreferenceArn
@Stability(Stable) public CfnBillScenarioProps.Builder costCategoryGroupSharingPreferenceArn(String costCategoryGroupSharingPreferenceArn) Sets the value ofCfnBillScenarioProps.getCostCategoryGroupSharingPreferenceArn()- Parameters:
costCategoryGroupSharingPreferenceArn- The ARN of the cost category group sharing preference.- Returns:
this
-
expiresAt
Sets the value ofCfnBillScenarioProps.getExpiresAt()- Parameters:
expiresAt- The timestamp when the bill scenario expires.- Returns:
this
-
groupSharingPreference
@Stability(Stable) public CfnBillScenarioProps.Builder groupSharingPreference(String groupSharingPreference) Sets the value ofCfnBillScenarioProps.getGroupSharingPreference()- Parameters:
groupSharingPreference- the value to be set.- Returns:
this
-
name
Sets the value ofCfnBillScenarioProps.getName()- Parameters:
name- The name of the bill scenario.- Returns:
this
-
tags
Sets the value ofCfnBillScenarioProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBillScenarioProps>- Returns:
- a new instance of
CfnBillScenarioProps - Throws:
NullPointerException- if any required attribute was not provided
-