Class CfnTag.Builder

java.lang.Object
software.amazon.awscdk.CfnTag.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTag>
Enclosing interface:
CfnTag

@Stability(Stable) public static final class CfnTag.Builder extends Object implements software.amazon.jsii.Builder<CfnTag>
A builder for CfnTag
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • key

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

      @Stability(Stable) public CfnTag.Builder value(String value)
      Sets the value of CfnTag.getValue()
      Parameters:
      value - the value to be set. This parameter is required.
      Returns:
      this
    • build

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