Class CfnPolicy.PolicyTagProperty.Builder
java.lang.Object
software.amazon.awscdk.services.fms.CfnPolicy.PolicyTagProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPolicy.PolicyTagProperty>
- Enclosing interface:
CfnPolicy.PolicyTagProperty
@Stability(Stable)
public static final class CfnPolicy.PolicyTagProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPolicy.PolicyTagProperty>
A builder for
CfnPolicy.PolicyTagProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnPolicy.PolicyTagProperty.getKey()
Sets the value ofCfnPolicy.PolicyTagProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
key
Sets the value ofCfnPolicy.PolicyTagProperty.getKey()
- Parameters:
key
- Part of the key:value pair that defines a tag. This parameter is required. You can use a tag key to describe a category of information, such as "customer." Tag keys are case-sensitive.- Returns:
this
-
value
Sets the value ofCfnPolicy.PolicyTagProperty.getValue()
- Parameters:
value
- Part of the key:value pair that defines a tag. This parameter is required. You can use a tag value to describe a specific value within a category, such as "companyA" or "companyB." Tag values are case-sensitive.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPolicy.PolicyTagProperty>
- Returns:
- a new instance of
CfnPolicy.PolicyTagProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-