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