com.amazonaws.services.ec2.model
Class DeleteTagsRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.DeleteTagsRequest
All Implemented Interfaces:
DryRunSupportedRequest<DeleteTagsRequest>, java.io.Serializable

public class DeleteTagsRequest
extends AmazonWebServiceRequest
implements java.io.Serializable, DryRunSupportedRequest<DeleteTagsRequest>

Container for the parameters to the 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 .

See Also:
AmazonEC2.deleteTags(DeleteTagsRequest), Serialized Form

Constructor Summary
DeleteTagsRequest()
          Default constructor for a new DeleteTagsRequest object.
DeleteTagsRequest(java.util.List<java.lang.String> resources)
          Constructs a new DeleteTagsRequest object.
 
Method Summary
 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.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeleteTagsRequest

public DeleteTagsRequest()
Default constructor for a new DeleteTagsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


DeleteTagsRequest

public DeleteTagsRequest(java.util.List<java.lang.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 java.util.List<java.lang.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(java.util.Collection<java.lang.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(java.lang.String... resources)
The ID of the resource. For example, ami-1a2b3c4d. You can specify more than one resource ID.

Returns a reference to this object so that method calls can be chained together.

Parameters:
resources - The ID of the resource. For example, ami-1a2b3c4d. You can specify more than one resource ID.
Returns:
A reference to this updated object so that method calls can be chained together.

withResources

public DeleteTagsRequest withResources(java.util.Collection<java.lang.String> resources)
The ID of the resource. For example, ami-1a2b3c4d. You can specify more than one resource ID.

Returns a reference to this object so that method calls can be chained together.

Parameters:
resources - The ID of the resource. For example, ami-1a2b3c4d. You can specify more than one resource ID.
Returns:
A reference to this updated object so that method calls can be chained together.

getTags

public java.util.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(java.util.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 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.

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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.

withTags

public DeleteTagsRequest withTags(java.util.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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated 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 interface DryRunSupportedRequest<DeleteTagsRequest>

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.