public class CreateTagsRequest extends AmazonWebServiceRequest implements java.io.Serializable
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.
| コンストラクタと説明 |
|---|
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.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic CreateTagsRequest()
public CreateTagsRequest(java.util.List<java.lang.String> resources,
java.util.List<Tag> tags)
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.public java.util.List<java.lang.String> getResources()
public void setResources(java.util.Collection<java.lang.String> resources)
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.public CreateTagsRequest withResources(java.lang.String... resources)
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.public CreateTagsRequest withResources(java.util.Collection<java.lang.String> resources)
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.public java.util.List<Tag> getTags()
public void setTags(java.util.Collection<Tag> tags)
tags - The tags to add or overwrite for the specified resources. Each tag
item consists of a key-value pair.public CreateTagsRequest withTags(Tag... tags)
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.public CreateTagsRequest withTags(java.util.Collection<Tag> tags)
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.public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object