public class DeleteTagsRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<DeleteTagsRequest>
DeleteTags operation.
Deletes tags from the specified Amazon EC2 resources.
| Constructor and Description |
|---|
DeleteTagsRequest()
Default constructor for a new DeleteTagsRequest object.
|
DeleteTagsRequest(List<String> resources)
Constructs a new DeleteTagsRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Request<DeleteTagsRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
List<String> |
getResources()
A list of one or more resource IDs.
|
List<Tag> |
getTags()
The tags to delete from the specified resources.
|
int |
hashCode() |
void |
setResources(Collection<String> resources)
A list of one or more resource IDs.
|
void |
setTags(Collection<Tag> tags)
The tags to delete from the specified resources.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeleteTagsRequest |
withResources(Collection<String> resources)
A list of one or more resource IDs.
|
DeleteTagsRequest |
withResources(String... resources)
A list of one or more resource IDs.
|
DeleteTagsRequest |
withTags(Collection<Tag> tags)
The tags to delete from the specified resources.
|
DeleteTagsRequest |
withTags(Tag... tags)
The tags to delete from the specified resources.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollectorpublic DeleteTagsRequest()
public DeleteTagsRequest(List<String> resources)
resources - A list of one or more resource IDs. This could be the
ID of an AMI, an instance, an EBS volume, or snapshot, etc.public List<String> getResources()
public void setResources(Collection<String> resources)
resources - A list of one or more resource IDs. This could be the ID of an AMI, an
instance, an EBS volume, or snapshot, etc.public DeleteTagsRequest withResources(String... resources)
Returns a reference to this object so that method calls can be chained together.
resources - A list of one or more resource IDs. This could be the ID of an AMI, an
instance, an EBS volume, or snapshot, etc.public DeleteTagsRequest withResources(Collection<String> resources)
Returns a reference to this object so that method calls can be chained together.
resources - A list of one or more resource IDs. This could be the ID of an AMI, an
instance, an EBS volume, or snapshot, etc.public List<Tag> getTags()
If a tag is specified without a value, the tag and all of its values are deleted.
If a tag is specified without a value, the tag and all of its values are deleted.
public void setTags(Collection<Tag> tags)
If a tag is specified without a value, the tag and all of its values are deleted.
tags - The tags to delete from the specified resources. Each tag item
consists of a key-value pair. If a tag is specified without a value, the tag and all of its values are deleted.
public DeleteTagsRequest withTags(Tag... tags)
If a tag is specified without a value, the tag and all of its values are deleted.
Returns a reference to this object so that method calls can be chained together.
tags - The tags to delete from the specified resources. Each tag item
consists of a key-value pair. If a tag is specified without a value, the tag and all of its values are deleted.
public DeleteTagsRequest withTags(Collection<Tag> tags)
If a tag is specified without a value, the tag and all of its values are deleted.
Returns a reference to this object so that method calls can be chained together.
tags - The tags to delete from the specified resources. Each tag item
consists of a key-value pair. If a tag is specified without a value, the tag and all of its values are deleted.
public Request<DeleteTagsRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<DeleteTagsRequest>public String toString()
toString in class ObjectObject.toString()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.