com.amazonaws.services.ec2.model
Class DeleteTagsRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.DeleteTagsRequest

public class DeleteTagsRequest
extends AmazonWebServiceRequest

Container for the parameters to the DeleteTags operation.

Deletes tags from the specified Amazon EC2 resources.

See Also:
AmazonEC2.deleteTags(DeleteTagsRequest)

Constructor Summary
DeleteTagsRequest()
          Default constructor for a new DeleteTagsRequest object.
DeleteTagsRequest(List<String> resources)
          Constructs a new DeleteTagsRequest object.
 
Method Summary
 List<String> getResources()
          A list of one or more resource IDs.
 List<Tag> getTags()
          The tags to delete from the specified resources.
 void setResources(Collection<String> resources)
          A list of one or more resource IDs.
 void setTags(Collection<Tag> tags)
          The tags to delete from the specified resources.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DeleteTagsRequest withResources(Collection<String> resources)
          A list of one or more resource IDs.
 DeleteTagsRequest withResources(String... resources)
          A list of one or more resource IDs.
 DeleteTagsRequest withTags(Collection<Tag> tags)
          The tags to delete from the specified resources.
 DeleteTagsRequest withTags(Tag... tags)
          The tags to delete from the specified resources.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, 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(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 - A list of one or more resource IDs. This could be the ID of an AMI, an instance, an EBS volume, or snapshot, etc.
Method Detail

getResources

public List<String> getResources()
A list of one or more resource IDs. This could be the ID of an AMI, an instance, an EBS volume, or snapshot, etc.

Returns:
A list of one or more resource IDs. This could be the ID of an AMI, an instance, an EBS volume, or snapshot, etc.

setResources

public void setResources(Collection<String> resources)
A list of one or more resource IDs. This could be the ID of an AMI, an instance, an EBS volume, or snapshot, etc.

Parameters:
resources - A list of one or more resource IDs. This could be the ID of an AMI, an instance, an EBS volume, or snapshot, etc.

withResources

public DeleteTagsRequest withResources(String... resources)
A list of one or more resource IDs. This could be the ID of an AMI, an instance, an EBS volume, or snapshot, etc.

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

Parameters:
resources - A list of one or more resource IDs. This could be the ID of an AMI, an instance, an EBS volume, or snapshot, etc.
Returns:
A reference to this updated object so that method calls can be chained together.

withResources

public DeleteTagsRequest withResources(Collection<String> resources)
A list of one or more resource IDs. This could be the ID of an AMI, an instance, an EBS volume, or snapshot, etc.

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

Parameters:
resources - A list of one or more resource IDs. This could be the ID of an AMI, an instance, an EBS volume, or snapshot, etc.
Returns:
A reference to this updated object so that method calls can be chained together.

getTags

public List<Tag> getTags()
The tags to delete from the specified resources. Each tag item consists of a key-value pair.

If a tag is specified without a value, the tag and all of its values are deleted.

Returns:
The tags to delete from the specified resources. Each tag item consists of a key-value pair.

If a tag is specified without a value, the tag and all of its values are deleted.


setTags

public void setTags(Collection<Tag> tags)
The tags to delete from the specified resources. Each tag item consists of a key-value pair.

If a tag is specified without a value, the tag and all of its values are deleted.

Parameters:
tags - The tags to delete from the specified resources. Each tag item consists of a key-value pair.

If a tag is specified without a value, the tag and all of its values are deleted.


withTags

public DeleteTagsRequest withTags(Tag... tags)
The tags to delete from the specified resources. Each tag item consists of a key-value pair.

If a tag is specified without a value, the tag and all of its values are deleted.

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

Parameters:
tags - The tags to delete from the specified resources. Each tag item consists of a key-value pair.

If a tag is specified without a value, the tag and all of its values are deleted.

Returns:
A reference to this updated object so that method calls can be chained together.

withTags

public DeleteTagsRequest withTags(Collection<Tag> tags)
The tags to delete from the specified resources. Each tag item consists of a key-value pair.

If a tag is specified without a value, the tag and all of its values are deleted.

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

Parameters:
tags - The tags to delete from the specified resources. Each tag item consists of a key-value pair.

If a tag is specified without a value, the tag and all of its values are deleted.

Returns:
A reference to this updated 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 class Object
Returns:
A string representation of this object.
See Also:
Object.toString()


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