java.lang.Object
software.amazon.awscdk.services.events.targets.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 is the name of the tag. This parameter is required.
      Returns:
      this
    • value

      @Stability(Stable) public Tag.Builder value(String value)
      Sets the value of Tag.getValue()
      Parameters:
      value - Value is the metadata contents of the tag. 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