Class CfnRuleGroupsNamespaceProps.Builder
java.lang.Object
software.amazon.awscdk.services.aps.CfnRuleGroupsNamespaceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuleGroupsNamespaceProps>
- Enclosing interface:
CfnRuleGroupsNamespaceProps
@Stability(Stable)
public static final class CfnRuleGroupsNamespaceProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRuleGroupsNamespaceProps>
A builder for
CfnRuleGroupsNamespaceProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnRuleGroupsNamespaceProps.getData()Sets the value ofCfnRuleGroupsNamespaceProps.getName()Sets the value ofCfnRuleGroupsNamespaceProps.getTags()Sets the value ofCfnRuleGroupsNamespaceProps.getWorkspace()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
data
Sets the value ofCfnRuleGroupsNamespaceProps.getData()- Parameters:
data- The rules file used in the namespace. This parameter is required. 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 ofCfnRuleGroupsNamespaceProps.getName()- Parameters:
name- The name of the rule groups namespace. This parameter is required.- Returns:
this
-
workspace
Sets the value ofCfnRuleGroupsNamespaceProps.getWorkspace()- Parameters:
workspace- The ID of the workspace to add the rule groups namespace. This parameter is required.- Returns:
this
-
tags
Sets the value ofCfnRuleGroupsNamespaceProps.getTags()- Parameters:
tags- The list of tag keys and values that are associated with the rule groups namespace.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRuleGroupsNamespaceProps>- Returns:
- a new instance of
CfnRuleGroupsNamespaceProps - Throws:
NullPointerException- if any required attribute was not provided
-