Class Tag.Builder

java.lang.Object
software.amazon.awscdk.cloudassembly.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 Details

    • Builder

      public Builder()
  • Method Details

    • key

      @Stability(Stable) public Tag.Builder key(String key)
      Sets the value of Tag.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

      @Stability(Stable) public Tag.Builder value(String value)
      Sets the value of Tag.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

      @Stability(Stable) public Tag build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<Tag>
      Returns:
      a new instance of Tag
      Throws:
      NullPointerException - if any required attribute was not provided