com.amazonaws.services.cloudformation.model

## クラス Tag

- java.lang.Object
- - com.amazonaws.services.cloudformation.model.Tag

- すべての実装されたインタフェース:
    java.io.Serializable

      public class Tag
      extends java.lang.Object
      implements java.io.Serializable

  The Tag type is used by `CreateStack` in the `Tags` parameter. It allows you to specify a key/value pair that can be used to store information related to cost allocation for an AWS CloudFormation stack.

  関連項目:
    直列化された形式

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `Tag()`

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getKey()` Required.
    `java.lang.String` | `getValue()` Required.
    `int` | `hashCode()`
    `void` | `setKey(java.lang.String key)` Required.
    `void` | `setValue(java.lang.String value)` Required.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `Tag` | `withKey(java.lang.String key)` Required.
    `Tag` | `withValue(java.lang.String value)` Required.

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### Tag

          public Tag()

  - ### メソッドの詳細

    - #### getKey

          public java.lang.String getKey()

      Required. A string used to identify this tag. You can specify a maximum of 128 characters for a tag key. Tags owned by Amazon Web Services (AWS) have the reserved prefix: `aws:`.
      戻り値:
        Required. A string used to identify this tag. You can specify a maximum of 128 characters for a tag key. Tags owned by Amazon Web Services (AWS) have the reserved prefix: `aws:`.

    - #### setKey

          public void setKey(java.lang.String key)

      Required. A string used to identify this tag. You can specify a maximum of 128 characters for a tag key. Tags owned by Amazon Web Services (AWS) have the reserved prefix: `aws:`.
      パラメータ:
        `key` - Required. A string used to identify this tag. You can specify a maximum of 128 characters for a tag key. Tags owned by Amazon Web Services (AWS) have the reserved prefix: `aws:`.

    - #### withKey

          public Tag withKey(java.lang.String key)

      Required. A string used to identify this tag. You can specify a maximum of 128 characters for a tag key. Tags owned by Amazon Web Services (AWS) have the reserved prefix: `aws:`.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `key` - Required. A string used to identify this tag. You can specify a maximum of 128 characters for a tag key. Tags owned by Amazon Web Services (AWS) have the reserved prefix: `aws:`.

    - #### getValue

          public java.lang.String getValue()

      Required. A string containing the value for this tag. You can specify a maximum of 256 characters for a tag value.
      戻り値:
        Required. A string containing the value for this tag. You can specify a maximum of 256 characters for a tag value.

    - #### setValue

          public void setValue(java.lang.String value)

      Required. A string containing the value for this tag. You can specify a maximum of 256 characters for a tag value.
      パラメータ:
        `value` - Required. A string containing the value for this tag. You can specify a maximum of 256 characters for a tag value.

    - #### withValue

          public Tag withValue(java.lang.String value)

      Required. A string containing the value for this tag. You can specify a maximum of 256 characters for a tag value.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `value` - Required. A string containing the value for this tag. You can specify a maximum of 256 characters for a tag value.

    - #### toString

          public java.lang.String toString()

      Returns a string representation of this object; useful for testing and debugging.
      オーバーライド:
        `toString` クラス内 `java.lang.Object`
      戻り値:
        A string representation of this object.
      関連項目:
        `Object.toString()`

    - #### hashCode

          public int hashCode()

      オーバーライド:
        `hashCode` クラス内 `java.lang.Object`

    - #### equals

          public boolean equals(java.lang.Object obj)

      オーバーライド:
        `equals` クラス内 `java.lang.Object`