Class Tag.Builder
java.lang.Object
software.amazon.awscdk.cloud_assembly_schema.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- Tag key. This parameter is required. (In the actual file on disk this will be cased as "Key", and the structure is patched to match this structure upon loading: https://github.com/aws/aws-cdk/blob/4aadaa779b48f35838cccd4e25107b2338f05547/packages/%40aws-cdk/cloud-assembly-schema/lib/manifest.ts#L137)- Returns:
this
-
value
Sets the value ofTag.getValue()- Parameters:
value- Tag value. This parameter is required. (In the actual file on disk this will be cased as "Value", and the structure is patched to match this structure upon loading: https://github.com/aws/aws-cdk/blob/4aadaa779b48f35838cccd4e25107b2338f05547/packages/%40aws-cdk/cloud-assembly-schema/lib/manifest.ts#L137)- 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
-