Class CfnOrganizationTelemetryRuleProps.Builder
java.lang.Object
software.amazon.awscdk.services.observabilityadmin.CfnOrganizationTelemetryRuleProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnOrganizationTelemetryRuleProps>
- Enclosing interface:
CfnOrganizationTelemetryRuleProps
@Stability(Stable)
public static final class CfnOrganizationTelemetryRuleProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnOrganizationTelemetryRuleProps>
A builder for
CfnOrganizationTelemetryRuleProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.rule
(IResolvable rule) Sets the value ofCfnOrganizationTelemetryRuleProps.getRule()
Sets the value ofCfnOrganizationTelemetryRuleProps.getRule()
Sets the value ofCfnOrganizationTelemetryRuleProps.getRuleName()
Sets the value ofCfnOrganizationTelemetryRuleProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
rule
Sets the value ofCfnOrganizationTelemetryRuleProps.getRule()
- Parameters:
rule
- The telemetry rule. This parameter is required.- Returns:
this
-
rule
@Stability(Stable) public CfnOrganizationTelemetryRuleProps.Builder rule(CfnOrganizationTelemetryRule.TelemetryRuleProperty rule) Sets the value ofCfnOrganizationTelemetryRuleProps.getRule()
- Parameters:
rule
- The telemetry rule. This parameter is required.- Returns:
this
-
ruleName
Sets the value ofCfnOrganizationTelemetryRuleProps.getRuleName()
- Parameters:
ruleName
- The name of the organization telemetry rule. This parameter is required.- Returns:
this
-
tags
@Stability(Stable) public CfnOrganizationTelemetryRuleProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnOrganizationTelemetryRuleProps.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<CfnOrganizationTelemetryRuleProps>
- Returns:
- a new instance of
CfnOrganizationTelemetryRuleProps
- Throws:
NullPointerException
- if any required attribute was not provided
-