Class CfnRule.TagProperty.Builder
java.lang.Object
software.amazon.awscdk.services.events.CfnRule.TagProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRule.TagProperty>
- Enclosing interface:
CfnRule.TagProperty
@Stability(Stable)
public static final class CfnRule.TagProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRule.TagProperty>
A builder for
CfnRule.TagProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnRule.TagProperty.getKey()
Sets the value ofCfnRule.TagProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
key
Sets the value ofCfnRule.TagProperty.getKey()
- Parameters:
key
- A string you can use to assign a value. The combination of tag keys and values can help you organize and categorize your resources.- Returns:
this
-
value
Sets the value ofCfnRule.TagProperty.getValue()
- Parameters:
value
- The value for the specified tag key.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRule.TagProperty>
- Returns:
- a new instance of
CfnRule.TagProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-