public class DeleteTagsRequest extends AmazonWebServiceRequest implements java.io.Serializable, 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 .
Constructor and Description |
---|
DeleteTagsRequest()
Default constructor for a new DeleteTagsRequest object.
|
DeleteTagsRequest(java.util.List<java.lang.String> resources)
Constructs a new DeleteTagsRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Request<DeleteTagsRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.util.List<java.lang.String> |
getResources()
The ID of the resource.
|
java.util.List<Tag> |
getTags()
One or more tags to delete.
|
int |
hashCode() |
void |
setResources(java.util.Collection<java.lang.String> resources)
The ID of the resource.
|
void |
setTags(java.util.Collection<Tag> tags)
One or more tags to delete.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeleteTagsRequest |
withResources(java.util.Collection<java.lang.String> resources)
The ID of the resource.
|
DeleteTagsRequest |
withResources(java.lang.String... resources)
The ID of the resource.
|
DeleteTagsRequest |
withTags(java.util.Collection<Tag> tags)
One or more tags to delete.
|
DeleteTagsRequest |
withTags(Tag... tags)
One or more tags to delete.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public DeleteTagsRequest()
public DeleteTagsRequest(java.util.List<java.lang.String> resources)
resources
- The ID of the resource. For example, ami-1a2b3c4d.
You can specify more than one resource ID.public java.util.List<java.lang.String> getResources()
public void setResources(java.util.Collection<java.lang.String> resources)
resources
- The ID of the resource. For example, ami-1a2b3c4d. You can specify
more than one resource ID.public DeleteTagsRequest withResources(java.lang.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 DeleteTagsRequest withResources(java.util.Collection<java.lang.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 java.util.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(java.util.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.
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(java.util.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.