|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.CreateTagsRequest
public class CreateTagsRequest
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)
Constructor Summary | |
---|---|
CreateTagsRequest()
Default constructor for a new CreateTagsRequest object. |
|
CreateTagsRequest(List<String> resources,
List<Tag> tags)
Constructs a new CreateTagsRequest object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
List<String> |
getResources()
One or more IDs of resources to tag. |
List<Tag> |
getTags()
The tags to add or overwrite for the specified resources. |
int |
hashCode()
|
void |
setResources(Collection<String> resources)
One or more IDs of resources to tag. |
void |
setTags(Collection<Tag> tags)
The tags to add or overwrite for the specified resources. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
CreateTagsRequest |
withResources(Collection<String> resources)
One or more IDs of resources to tag. |
CreateTagsRequest |
withResources(String... resources)
One or more IDs of resources to tag. |
CreateTagsRequest |
withTags(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. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CreateTagsRequest()
public CreateTagsRequest(List<String> resources, 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.Method Detail |
---|
public List<String> getResources()
public void setResources(Collection<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(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(Collection<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 List<Tag> getTags()
public void setTags(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(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 String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |