com.amazonaws.services.ec2.model

## クラス CreateTagsRequest

- java.lang.Object
- - com.amazonaws.AmazonWebServiceRequest
  - - com.amazonaws.services.ec2.model.CreateTagsRequest

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

      public class CreateTagsRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `CreateTags operation`.

  Adds or overwrites tags for the specified resources. Each resource can have a maximum of 10 tags. Each tag consists of a key-value pair. Tag keys must be unique per resource.

  関連項目:
    `AmazonEC2.createTags(CreateTagsRequest)`, 直列化された形式

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

    コンストラクタ
    コンストラクタと説明
    `CreateTagsRequest()` Default constructor for a new CreateTagsRequest object.
    `CreateTagsRequest(java.util.List<java.lang.String> resources, java.util.List<Tag> tags)` Constructs a new CreateTagsRequest object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.util.List<java.lang.String>` | `getResources()` One or more IDs of resources to tag.
    `java.util.List<Tag>` | `getTags()` The tags to add or overwrite for the specified resources.
    `int` | `hashCode()`
    `void` | `setResources(java.util.Collection<java.lang.String> resources)` One or more IDs of resources to tag.
    `void` | `setTags(java.util.Collection<Tag> tags)` The tags to add or overwrite for the specified resources.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `CreateTagsRequest` | `withResources(java.util.Collection<java.lang.String> resources)` One or more IDs of resources to tag.
    `CreateTagsRequest` | `withResources(java.lang.String... resources)` One or more IDs of resources to tag.
    `CreateTagsRequest` | `withTags(java.util.Collection<Tag> tags)` The tags to add or overwrite for the specified resources.
    `CreateTagsRequest` | `withTags(Tag... tags)` The tags to add or overwrite for the specified resources.

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### CreateTagsRequest

          public CreateTagsRequest()

      Default constructor for a new CreateTagsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.

    - #### CreateTagsRequest

          public CreateTagsRequest(java.util.List<java.lang.String> resources,
                           java.util.List<Tag> tags)

      Constructs a new CreateTagsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `resources` - One or more IDs of resources to tag. This could be the ID of an AMI, an instance, an EBS volume, or snapshot, etc.
        `tags` - The tags to add or overwrite for the specified resources. Each tag item consists of a key-value pair.

  - ### メソッドの詳細

    - #### getResources

          public java.util.List<java.lang.String> getResources()

      One or more IDs of resources to tag. This could be the ID of an AMI, an instance, an EBS volume, or snapshot, etc.
      戻り値:
        One or more IDs of resources to tag. This could be the ID of an AMI, an instance, an EBS volume, or snapshot, etc.

    - #### setResources

          public void setResources(java.util.Collection<java.lang.String> resources)

      One or more IDs of resources to tag. This could be the ID of an AMI, an instance, an EBS volume, or snapshot, etc.
      パラメータ:
        `resources` - One or more IDs of resources to tag. This could be the ID of an AMI, an instance, an EBS volume, or snapshot, etc.

    - #### withResources

          public CreateTagsRequest withResources(java.lang.String... resources)

      One or more IDs of resources to tag. This could be the ID of an AMI, an instance, an EBS volume, or snapshot, etc.

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

      パラメータ:
        `resources` - One or more IDs of resources to tag. This could be the ID of an AMI, an instance, an EBS volume, or snapshot, etc.

    - #### withResources

          public CreateTagsRequest withResources(java.util.Collection<java.lang.String> resources)

      One or more IDs of resources to tag. This could be the ID of an AMI, an instance, an EBS volume, or snapshot, etc.

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

      パラメータ:
        `resources` - One or more IDs of resources to tag. This could be the ID of an AMI, an instance, an EBS volume, or snapshot, etc.

    - #### getTags

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

      The tags to add or overwrite for the specified resources. Each tag item consists of a key-value pair.
      戻り値:
        The tags to add or overwrite for the specified resources. Each tag item consists of a key-value pair.

    - #### setTags

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

      The tags to add or overwrite for the specified resources. Each tag item consists of a key-value pair.
      パラメータ:
        `tags` - The tags to add or overwrite for the specified resources. Each tag item consists of a key-value pair.

    - #### withTags

          public CreateTagsRequest withTags(Tag... tags)

      The tags to add or overwrite for the specified resources. Each tag item consists of a key-value pair.

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

      パラメータ:
        `tags` - The tags to add or overwrite for the specified resources. Each tag item consists of a key-value pair.

    - #### withTags

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

      The tags to add or overwrite for the specified resources. Each tag item consists of a key-value pair.

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

      パラメータ:
        `tags` - The tags to add or overwrite for the specified resources. Each tag item consists of a key-value pair.

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