Class RemoveTagsRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.elasticmapreduce.model.RemoveTagsRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class RemoveTagsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
This input identifies a cluster and a list of tags to remove.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description RemoveTagsRequest()
Default constructor for RemoveTagsRequest object.RemoveTagsRequest(String resourceId)
Constructs a new RemoveTagsRequest object.RemoveTagsRequest(String resourceId, List<String> tagKeys)
Constructs a new RemoveTagsRequest object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RemoveTagsRequest
clone()
Creates a shallow clone of this request.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(String... tagKeys)
A list of tag keys to remove from a resource.RemoveTagsRequest
withTagKeys(Collection<String> tagKeys)
A list of tag keys to remove from a resource.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Constructor Detail
-
RemoveTagsRequest
public RemoveTagsRequest()
Default constructor for RemoveTagsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
-
RemoveTagsRequest
public RemoveTagsRequest(String resourceId)
Constructs a new RemoveTagsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
resourceId
- The Amazon EMR resource identifier from which tags will be removed. This value must be a cluster identifier.
-
RemoveTagsRequest
public RemoveTagsRequest(String resourceId, List<String> tagKeys)
Constructs a new RemoveTagsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
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.
-
-
Method Detail
-
setResourceId
public void setResourceId(String resourceId)
The Amazon EMR resource identifier from which tags will be removed. This value must be a cluster identifier.
- Parameters:
resourceId
- The Amazon EMR resource identifier from which tags will be removed. This value must be a cluster identifier.
-
getResourceId
public String getResourceId()
The Amazon EMR resource identifier from which tags will be removed. This value must be a cluster identifier.
- Returns:
- The Amazon EMR resource identifier from which tags will be removed. This value must be a cluster identifier.
-
withResourceId
public RemoveTagsRequest withResourceId(String resourceId)
The Amazon EMR resource identifier from which tags will be removed. This value must be a cluster identifier.
- Parameters:
resourceId
- The Amazon EMR resource identifier from which tags will be removed. This value must be a cluster identifier.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTagKeys
public List<String> getTagKeys()
A list of tag keys to remove from a resource.
- Returns:
- A list of tag keys to remove from a resource.
-
setTagKeys
public void setTagKeys(Collection<String> tagKeys)
A list of tag keys to remove from a resource.
- Parameters:
tagKeys
- A list of tag keys to remove from a resource.
-
withTagKeys
public RemoveTagsRequest withTagKeys(String... tagKeys)
A list of tag keys to remove from a resource.
NOTE: This method appends the values to the existing list (if any). Use
setTagKeys(java.util.Collection)
orwithTagKeys(java.util.Collection)
if you want to override the existing values.- Parameters:
tagKeys
- A list of tag keys to remove from a resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTagKeys
public RemoveTagsRequest withTagKeys(Collection<String> tagKeys)
A list of tag keys to remove from a resource.
- Parameters:
tagKeys
- A list of tag keys to remove from a resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public RemoveTagsRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-