Class CfnBillingGroup.AccountGroupingProperty.Builder
java.lang.Object
software.amazon.awscdk.services.billingconductor.CfnBillingGroup.AccountGroupingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBillingGroup.AccountGroupingProperty>
- Enclosing interface:
CfnBillingGroup.AccountGroupingProperty
@Stability(Stable)
public static final class CfnBillingGroup.AccountGroupingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBillingGroup.AccountGroupingProperty>
A builder for
CfnBillingGroup.AccountGroupingProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionautoAssociate
(Boolean autoAssociate) Sets the value ofCfnBillingGroup.AccountGroupingProperty.getAutoAssociate()
autoAssociate
(IResolvable autoAssociate) Sets the value ofCfnBillingGroup.AccountGroupingProperty.getAutoAssociate()
build()
Builds the configured instance.linkedAccountIds
(List<String> linkedAccountIds) Sets the value ofCfnBillingGroup.AccountGroupingProperty.getLinkedAccountIds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
linkedAccountIds
@Stability(Stable) public CfnBillingGroup.AccountGroupingProperty.Builder linkedAccountIds(List<String> linkedAccountIds) Sets the value ofCfnBillingGroup.AccountGroupingProperty.getLinkedAccountIds()
- Parameters:
linkedAccountIds
- The account IDs that make up the billing group. This parameter is required. Account IDs must be a part of the consolidated billing family, and not associated with another billing group.- Returns:
this
-
autoAssociate
@Stability(Stable) public CfnBillingGroup.AccountGroupingProperty.Builder autoAssociate(Boolean autoAssociate) Sets the value ofCfnBillingGroup.AccountGroupingProperty.getAutoAssociate()
- Parameters:
autoAssociate
- Specifies if this billing group will automatically associate newly added AWS accounts that join your consolidated billing family.- Returns:
this
-
autoAssociate
@Stability(Stable) public CfnBillingGroup.AccountGroupingProperty.Builder autoAssociate(IResolvable autoAssociate) Sets the value ofCfnBillingGroup.AccountGroupingProperty.getAutoAssociate()
- Parameters:
autoAssociate
- Specifies if this billing group will automatically associate newly added AWS accounts that join your consolidated billing family.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBillingGroup.AccountGroupingProperty>
- Returns:
- a new instance of
CfnBillingGroup.AccountGroupingProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-