Class CfnOrganizationCentralizationRuleProps.Builder
java.lang.Object
software.amazon.awscdk.services.observabilityadmin.CfnOrganizationCentralizationRuleProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnOrganizationCentralizationRuleProps>
- Enclosing interface:
CfnOrganizationCentralizationRuleProps
@Stability(Stable)
public static final class CfnOrganizationCentralizationRuleProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnOrganizationCentralizationRuleProps>
A builder for
CfnOrganizationCentralizationRuleProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.rule
(IResolvable rule) Sets the value ofCfnOrganizationCentralizationRuleProps.getRule()
Sets the value ofCfnOrganizationCentralizationRuleProps.getRule()
Sets the value ofCfnOrganizationCentralizationRuleProps.getRuleName()
Sets the value ofCfnOrganizationCentralizationRuleProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
rule
Sets the value ofCfnOrganizationCentralizationRuleProps.getRule()
- Parameters:
rule
- the value to be set. This parameter is required.- Returns:
this
-
rule
@Stability(Stable) public CfnOrganizationCentralizationRuleProps.Builder rule(CfnOrganizationCentralizationRule.CentralizationRuleProperty rule) Sets the value ofCfnOrganizationCentralizationRuleProps.getRule()
- Parameters:
rule
- the value to be set. This parameter is required.- Returns:
this
-
ruleName
Sets the value ofCfnOrganizationCentralizationRuleProps.getRuleName()
- Parameters:
ruleName
- the value to be set. This parameter is required.- Returns:
this
-
tags
@Stability(Stable) public CfnOrganizationCentralizationRuleProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnOrganizationCentralizationRuleProps.getTags()
- Parameters:
tags
- An array of key-value pairs to apply to this resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnOrganizationCentralizationRuleProps>
- Returns:
- a new instance of
CfnOrganizationCentralizationRuleProps
- Throws:
NullPointerException
- if any required attribute was not provided
-