public class RemoveTagsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
RemoveTags operation.
Removes tags from an Amazon EMR resource. Tags make it easier to associate clusters in various ways, such as grouping clusters to track your Amazon EMR resource allocation costs. For more information, see Tagging Amazon EMR Resources .
The following example removes the stack tag with value Prod from a cluster:
NOOP| Constructor and Description |
|---|
RemoveTagsRequest()
Default constructor for a new RemoveTagsRequest object.
|
RemoveTagsRequest(String resourceId)
Constructs a new RemoveTagsRequest object.
|
RemoveTagsRequest(String resourceId,
List<String> tagKeys)
Constructs a new RemoveTagsRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
RemoveTagsRequest |
clone() |
boolean |
equals(Object obj) |
String |
getResourceId()
The Amazon EMR resource identifier from which tags will be removed.
|
List<String> |
getTagKeys()
A list of tag keys to remove from a resource.
|
int |
hashCode() |
void |
setResourceId(String resourceId)
The Amazon EMR resource identifier from which tags will be removed.
|
void |
setTagKeys(Collection<String> tagKeys)
A list of tag keys to remove from a resource.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RemoveTagsRequest |
withResourceId(String resourceId)
The Amazon EMR resource identifier from which tags will be removed.
|
RemoveTagsRequest |
withTagKeys(Collection<String> tagKeys)
A list of tag keys to remove from a resource.
|
RemoveTagsRequest |
withTagKeys(String... tagKeys)
A list of tag keys to remove from a resource.
|
copyBaseTo, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic RemoveTagsRequest()
public RemoveTagsRequest(String resourceId)
resourceId - The Amazon EMR resource identifier from which tags
will be removed. This value must be a cluster identifier.public RemoveTagsRequest(String resourceId, List<String> tagKeys)
resourceId - The Amazon EMR resource identifier from which tags
will be removed. This value must be a cluster identifier.tagKeys - A list of tag keys to remove from a resource.public String getResourceId()
public void setResourceId(String resourceId)
resourceId - The Amazon EMR resource identifier from which tags will be removed.
This value must be a cluster identifier.public RemoveTagsRequest withResourceId(String resourceId)
Returns a reference to this object so that method calls can be chained together.
resourceId - The Amazon EMR resource identifier from which tags will be removed.
This value must be a cluster identifier.public List<String> getTagKeys()
public void setTagKeys(Collection<String> tagKeys)
tagKeys - A list of tag keys to remove from a resource.public RemoveTagsRequest withTagKeys(String... tagKeys)
NOTE: This method appends the values to the existing list (if
any). Use setTagKeys(java.util.Collection) or withTagKeys(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.
tagKeys - A list of tag keys to remove from a resource.public RemoveTagsRequest withTagKeys(Collection<String> tagKeys)
Returns a reference to this object so that method calls can be chained together.
tagKeys - A list of tag keys to remove from a resource.public String toString()
toString in class ObjectObject.toString()public RemoveTagsRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2015. All rights reserved.