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