Class CfnIdentity.TagsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pinpointemail.CfnIdentity.TagsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIdentity.TagsProperty>
- Enclosing interface:
CfnIdentity.TagsProperty
@Stability(Stable)
public static final class CfnIdentity.TagsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnIdentity.TagsProperty>
A builder for
CfnIdentity.TagsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnIdentity.TagsProperty.getKey()Sets the value ofCfnIdentity.TagsProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
key
Sets the value ofCfnIdentity.TagsProperty.getKey()- Parameters:
key- One part of a key-value pair that defines a tag. The maximum length of a tag key is 128 characters. The minimum length is 1 character.If you specify tags for the identity, then this value is required.
- Returns:
this
-
value
Sets the value ofCfnIdentity.TagsProperty.getValue()- Parameters:
value- The optional part of a key-value pair that defines a tag. The maximum length of a tag value is 256 characters. The minimum length is 0 characters. If you don’t want a resource to have a specific tag value, don’t specify a value for this parameter. Amazon Pinpoint will set the value to an empty string.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnIdentity.TagsProperty>- Returns:
- a new instance of
CfnIdentity.TagsProperty - Throws:
NullPointerException- if any required attribute was not provided
-