com.amazonaws.services.autoscaling.model

## クラス CreateOrUpdateTagsRequest

- java.lang.Object
- - com.amazonaws.AmazonWebServiceRequest
  - - com.amazonaws.services.autoscaling.model.CreateOrUpdateTagsRequest

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

      public class CreateOrUpdateTagsRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `CreateOrUpdateTags operation`.

  Creates new tags or updates existing tags for an Auto Scaling group.

  NOTE: A tag's definition is composed of a resource ID, resource type, key and value, and the propagate flag. Value and the propagate flag are optional parameters. See the Request Parameters for more information.

  関連項目:
    `AmazonAutoScaling.createOrUpdateTags(CreateOrUpdateTagsRequest)`, 直列化された形式

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.util.List<Tag>` | `getTags()` The tag to be created or updated.
    `int` | `hashCode()`
    `void` | `setTags(java.util.Collection<Tag> tags)` The tag to be created or updated.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `CreateOrUpdateTagsRequest` | `withTags(java.util.Collection<Tag> tags)` The tag to be created or updated.
    `CreateOrUpdateTagsRequest` | `withTags(Tag... tags)` The tag to be created or updated.

    - ### クラスから継承されたメソッド com.amazonaws.AmazonWebServiceRequest

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### CreateOrUpdateTagsRequest

          public CreateOrUpdateTagsRequest()

  - ### メソッドの詳細

    - #### getTags

          public java.util.List<Tag> getTags()

      The tag to be created or updated. Each tag should be defined by its resource type, resource ID, key, value, and a propagate flag. The resource type and resource ID identify the type and name of resource for which the tag is created. Currently, `auto-scaling-group` is the only supported resource type. The valid value for the resource ID is groupname.

      The `PropagateAtLaunch` flag defines whether the new tag will be applied to instances launched by the Auto Scaling group. Valid values are `true` or `false`. However, instances that are already running will not get the new or updated tag. Likewise, when you modify a tag, the updated version will be applied only to new instances launched by the Auto Scaling group after the change. Running instances that had the previous version of the tag will continue to have the older tag.

      When you create a tag and a tag of the same name already exists, the operation overwrites the previous tag definition, but you will not get an error message.

      戻り値:
        The tag to be created or updated. Each tag should be defined by its resource type, resource ID, key, value, and a propagate flag. The resource type and resource ID identify the type and name of resource for which the tag is created. Currently, `auto-scaling-group` is the only supported resource type. The valid value for the resource ID is groupname.

        The `PropagateAtLaunch` flag defines whether the new tag will be applied to instances launched by the Auto Scaling group. Valid values are `true` or `false`. However, instances that are already running will not get the new or updated tag. Likewise, when you modify a tag, the updated version will be applied only to new instances launched by the Auto Scaling group after the change. Running instances that had the previous version of the tag will continue to have the older tag.

        When you create a tag and a tag of the same name already exists, the operation overwrites the previous tag definition, but you will not get an error message.

    - #### setTags

          public void setTags(java.util.Collection<Tag> tags)

      The tag to be created or updated. Each tag should be defined by its resource type, resource ID, key, value, and a propagate flag. The resource type and resource ID identify the type and name of resource for which the tag is created. Currently, `auto-scaling-group` is the only supported resource type. The valid value for the resource ID is groupname.

      The `PropagateAtLaunch` flag defines whether the new tag will be applied to instances launched by the Auto Scaling group. Valid values are `true` or `false`. However, instances that are already running will not get the new or updated tag. Likewise, when you modify a tag, the updated version will be applied only to new instances launched by the Auto Scaling group after the change. Running instances that had the previous version of the tag will continue to have the older tag.

      When you create a tag and a tag of the same name already exists, the operation overwrites the previous tag definition, but you will not get an error message.

      パラメータ:
        `tags` - The tag to be created or updated. Each tag should be defined by its resource type, resource ID, key, value, and a propagate flag. The resource type and resource ID identify the type and name of resource for which the tag is created. Currently, `auto-scaling-group` is the only supported resource type. The valid value for the resource ID is groupname.

        The `PropagateAtLaunch` flag defines whether the new tag will be applied to instances launched by the Auto Scaling group. Valid values are `true` or `false`. However, instances that are already running will not get the new or updated tag. Likewise, when you modify a tag, the updated version will be applied only to new instances launched by the Auto Scaling group after the change. Running instances that had the previous version of the tag will continue to have the older tag.

        When you create a tag and a tag of the same name already exists, the operation overwrites the previous tag definition, but you will not get an error message.

    - #### withTags

          public CreateOrUpdateTagsRequest withTags(Tag... tags)

      The tag to be created or updated. Each tag should be defined by its resource type, resource ID, key, value, and a propagate flag. The resource type and resource ID identify the type and name of resource for which the tag is created. Currently, `auto-scaling-group` is the only supported resource type. The valid value for the resource ID is groupname.

      The `PropagateAtLaunch` flag defines whether the new tag will be applied to instances launched by the Auto Scaling group. Valid values are `true` or `false`. However, instances that are already running will not get the new or updated tag. Likewise, when you modify a tag, the updated version will be applied only to new instances launched by the Auto Scaling group after the change. Running instances that had the previous version of the tag will continue to have the older tag.

      When you create a tag and a tag of the same name already exists, the operation overwrites the previous tag definition, but you will not get an error message.

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

      パラメータ:
        `tags` - The tag to be created or updated. Each tag should be defined by its resource type, resource ID, key, value, and a propagate flag. The resource type and resource ID identify the type and name of resource for which the tag is created. Currently, `auto-scaling-group` is the only supported resource type. The valid value for the resource ID is groupname.

        The `PropagateAtLaunch` flag defines whether the new tag will be applied to instances launched by the Auto Scaling group. Valid values are `true` or `false`. However, instances that are already running will not get the new or updated tag. Likewise, when you modify a tag, the updated version will be applied only to new instances launched by the Auto Scaling group after the change. Running instances that had the previous version of the tag will continue to have the older tag.

        When you create a tag and a tag of the same name already exists, the operation overwrites the previous tag definition, but you will not get an error message.

    - #### withTags

          public CreateOrUpdateTagsRequest withTags(java.util.Collection<Tag> tags)

      The tag to be created or updated. Each tag should be defined by its resource type, resource ID, key, value, and a propagate flag. The resource type and resource ID identify the type and name of resource for which the tag is created. Currently, `auto-scaling-group` is the only supported resource type. The valid value for the resource ID is groupname.

      The `PropagateAtLaunch` flag defines whether the new tag will be applied to instances launched by the Auto Scaling group. Valid values are `true` or `false`. However, instances that are already running will not get the new or updated tag. Likewise, when you modify a tag, the updated version will be applied only to new instances launched by the Auto Scaling group after the change. Running instances that had the previous version of the tag will continue to have the older tag.

      When you create a tag and a tag of the same name already exists, the operation overwrites the previous tag definition, but you will not get an error message.

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

      パラメータ:
        `tags` - The tag to be created or updated. Each tag should be defined by its resource type, resource ID, key, value, and a propagate flag. The resource type and resource ID identify the type and name of resource for which the tag is created. Currently, `auto-scaling-group` is the only supported resource type. The valid value for the resource ID is groupname.

        The `PropagateAtLaunch` flag defines whether the new tag will be applied to instances launched by the Auto Scaling group. Valid values are `true` or `false`. However, instances that are already running will not get the new or updated tag. Likewise, when you modify a tag, the updated version will be applied only to new instances launched by the Auto Scaling group after the change. Running instances that had the previous version of the tag will continue to have the older tag.

        When you create a tag and a tag of the same name already exists, the operation overwrites the previous tag definition, but you will not get an error message.

    - #### 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`