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:
  • Constructor Details

    • 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 Details

    • 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) or withResources(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 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.

      NOTE: This method appends the values to the existing list (if any). Use setTags(java.util.Collection) or withTags(java.util.Collection) if you want to override the existing values.

      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:
      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 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:
      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 interface DryRunSupportedRequest<DeleteTagsRequest>
    • 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:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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 class AmazonWebServiceRequest
      See Also: