Class DeleteTagsRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.ec2.model.DeleteTagsRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<DeleteTagsRequest>
,Serializable
,Cloneable
public class DeleteTagsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<DeleteTagsRequest>
Contains the parameters for DeleteTags.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description DeleteTagsRequest()
Default constructor for DeleteTagsRequest object.DeleteTagsRequest(List<String> resources)
Constructs a new DeleteTagsRequest object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(String... resources)
The ID of the resource.DeleteTagsRequest
withResources(Collection<String> resources)
The ID of the resource.DeleteTagsRequest
withTags(Tag... tags)
One or more tags to delete.DeleteTagsRequest
withTags(Collection<Tag> tags)
One or more tags to delete.-
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
-
DeleteTagsRequest
public DeleteTagsRequest()
Default constructor for DeleteTagsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
-
DeleteTagsRequest
public DeleteTagsRequest(List<String> resources)
Constructs a new DeleteTagsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
resources
- The ID of the resource. For example, ami-1a2b3c4d. You can specify more than one resource ID.
-
-
Method Detail
-
getResources
public List<String> getResources()
The ID of the resource. For example, ami-1a2b3c4d. You can specify more than one resource ID.
- Returns:
- The ID of the resource. For example, ami-1a2b3c4d. You can specify more than one resource ID.
-
setResources
public void setResources(Collection<String> resources)
The ID of the resource. For example, ami-1a2b3c4d. You can specify more than one resource ID.
- Parameters:
resources
- The ID of the resource. For example, ami-1a2b3c4d. You can specify more than one resource ID.
-
withResources
public DeleteTagsRequest withResources(String... resources)
The ID of the resource. For example, ami-1a2b3c4d. You can specify more than one resource ID.
NOTE: This method appends the values to the existing list (if any). Use
setResources(java.util.Collection)
orwithResources(java.util.Collection)
if you want to override the existing values.- Parameters:
resources
- The ID of the resource. For example, ami-1a2b3c4d. You can specify more than one resource ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withResources
public DeleteTagsRequest withResources(Collection<String> resources)
The ID of the resource. For example, ami-1a2b3c4d. You can specify more than one resource ID.
- Parameters:
resources
- The ID of the resource. For example, ami-1a2b3c4d. You can specify more than one resource ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTags
public List<Tag> getTags()
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.- Returns:
- 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.
-
setTags
public void setTags(Collection<Tag> 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.- Parameters:
tags
- One or more tags to delete. If you omit thevalue
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.
-
withTags
public DeleteTagsRequest withTags(Tag... 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.NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
orwithTags(java.util.Collection)
if you want to override the existing values.- Parameters:
tags
- One or more tags to delete. If you omit thevalue
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:
- Returns a reference to this object so that method calls can be chained together.
-
withTags
public DeleteTagsRequest withTags(Collection<Tag> 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.- Parameters:
tags
- One or more tags to delete. If you omit thevalue
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:
- Returns a reference to this object so that method calls can be chained together.
-
getDryRunRequest
public Request<DeleteTagsRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.- Specified by:
getDryRunRequest
in interfaceDryRunSupportedRequest<DeleteTagsRequest>
-
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 DeleteTagsRequest 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()
-
-