Class CfnPolicy.ResourceTagProperty.Builder
java.lang.Object
software.amazon.awscdk.services.fms.CfnPolicy.ResourceTagProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPolicy.ResourceTagProperty>
- Enclosing interface:
CfnPolicy.ResourceTagProperty
@Stability(Stable)
public static final class CfnPolicy.ResourceTagProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPolicy.ResourceTagProperty>
A builder for
CfnPolicy.ResourceTagProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnPolicy.ResourceTagProperty.getKey()
Sets the value ofCfnPolicy.ResourceTagProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
key
Sets the value ofCfnPolicy.ResourceTagProperty.getKey()
- Parameters:
key
- The resource tag key. This parameter is required.- Returns:
this
-
value
Sets the value ofCfnPolicy.ResourceTagProperty.getValue()
- Parameters:
value
- The resource tag value.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPolicy.ResourceTagProperty>
- Returns:
- a new instance of
CfnPolicy.ResourceTagProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-