public class DeleteTagsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<DeleteTagsRequest>
DeleteTags operation
.
Deletes the specified set of tags from the specified set of resources.
This call is designed to follow a DescribeTags
request.
For more information about tags, see Tagging Your Resources in the Amazon Elastic Compute Cloud User Guide .
NOOP
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 |
---|---|
DeleteTagsRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
Request<DeleteTagsRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
List<String> |
getResources()
The ID of the resource.
|
List<Tag> |
getTags()
One or more tags to delete.
|
int |
hashCode() |
void |
setResources(Collection<String> resources)
The ID of the resource.
|
void |
setTags(Collection<Tag> tags)
One or more tags to delete.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeleteTagsRequest |
withResources(Collection<String> resources)
The ID of the resource.
|
DeleteTagsRequest |
withResources(String... resources)
The ID of the resource.
|
DeleteTagsRequest |
withTags(Collection<Tag> tags)
One or more tags to delete.
|
DeleteTagsRequest |
withTags(Tag... tags)
One or more tags to delete.
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public DeleteTagsRequest()
public DeleteTagsRequest(List<String> resources)
resources
- The ID of the resource. For example, ami-1a2b3c4d.
You can specify more than one resource ID.public List<String> getResources()
public void setResources(Collection<String> resources)
resources
- The ID of the resource. For example, ami-1a2b3c4d. You can specify
more than one resource ID.public DeleteTagsRequest withResources(String... resources)
NOTE: This method appends the values to the existing list (if
any). Use setResources(java.util.Collection)
or withResources(java.util.Collection)
if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
resources
- The ID of the resource. For example, ami-1a2b3c4d. You can specify
more than one resource ID.public DeleteTagsRequest withResources(Collection<String> resources)
Returns a reference to this object so that method calls can be chained together.
resources
- The ID of the resource. For example, ami-1a2b3c4d. You can specify
more than one resource ID.public List<Tag> getTags()
value
parameter, we delete the tag regardless of its value. If you specify
this parameter with an empty string as the value, we delete the key
only if its value is an empty string.value
parameter, we delete the tag regardless of its value. If you specify
this parameter with an empty string as the value, we delete the key
only if its value is an empty string.public void setTags(Collection<Tag> tags)
value
parameter, we delete the tag regardless of its value. If you specify
this parameter with an empty string as the value, we delete the key
only if its value is an empty string.tags
- One or more tags to delete. If you omit the value
parameter, we delete the tag regardless of its value. If you specify
this parameter with an empty string as the value, we delete the key
only if its value is an empty string.public DeleteTagsRequest withTags(Tag... tags)
value
parameter, we delete the tag regardless of its value. If you specify
this parameter with an empty string as the value, we delete the key
only if its value is an empty string.
NOTE: This method appends the values to the existing list (if
any). Use setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the existing
values.
Returns a reference to this object so that method calls can be chained together.
tags
- One or more tags to delete. If you omit the value
parameter, we delete the tag regardless of its value. If you specify
this parameter with an empty string as the value, we delete the key
only if its value is an empty string.public DeleteTagsRequest withTags(Collection<Tag> tags)
value
parameter, we delete the tag regardless of its value. If you specify
this parameter with an empty string as the value, we delete the key
only if its value is an empty string.
Returns a reference to this object so that method calls can be chained together.
tags
- One or more tags to delete. If you omit the value
parameter, we delete the tag regardless of its value. If you specify
this parameter with an empty string as the value, we delete the key
only if its value is an empty string.public Request<DeleteTagsRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<DeleteTagsRequest>
public String toString()
toString
in class Object
Object.toString()
public DeleteTagsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.