Class CfnRuleGroupsNamespaceMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.aps.CfnRuleGroupsNamespaceMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuleGroupsNamespaceMixinProps>
- Enclosing interface:
CfnRuleGroupsNamespaceMixinProps
@Stability(Stable)
public static final class CfnRuleGroupsNamespaceMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRuleGroupsNamespaceMixinProps>
A builder for
CfnRuleGroupsNamespaceMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnRuleGroupsNamespaceMixinProps.getData()Sets the value ofCfnRuleGroupsNamespaceMixinProps.getName()Sets the value ofCfnRuleGroupsNamespaceMixinProps.getTags()Sets the value ofCfnRuleGroupsNamespaceMixinProps.getWorkspace()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
data
Sets the value ofCfnRuleGroupsNamespaceMixinProps.getData()- Parameters:
data- The rules file used in the namespace. For more details about the rules file, see Creating a rules file in the Amazon Managed Service for Prometheus User Guide .- Returns:
this
-
name
Sets the value ofCfnRuleGroupsNamespaceMixinProps.getName()- Parameters:
name- The name of the rule groups namespace.- Returns:
this
-
tags
@Stability(Stable) public CfnRuleGroupsNamespaceMixinProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnRuleGroupsNamespaceMixinProps.getTags()- Parameters:
tags- The list of tag keys and values that are associated with the rule groups namespace.- Returns:
this
-
workspace
Sets the value ofCfnRuleGroupsNamespaceMixinProps.getWorkspace()- Parameters:
workspace- The ID of the workspace to add the rule groups namespace.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRuleGroupsNamespaceMixinProps>- Returns:
- a new instance of
CfnRuleGroupsNamespaceMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-