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 Details

    • Builder

      public Builder()
  • Method Details

    • key

      @Stability(Stable) public Tag.Builder key(String key)
      Sets the value of Tag.getKey()
      Parameters:
      key - key to e tagged. This parameter is required.
      Returns:
      this
    • value

      @Stability(Stable) public Tag.Builder value(String value)
      Sets the value of Tag.getValue()
      Parameters:
      value - additional value. This parameter is required.
      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