Class ChangeTagsForResourceRequest

java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.route53.model.ChangeTagsForResourceRequest
All Implemented Interfaces:
ReadLimitInfo, Serializable, Cloneable

public class ChangeTagsForResourceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable

A complex type containing information about a request to add, change, or delete the tags that are associated with a resource.

See Also:
  • Constructor Details

    • ChangeTagsForResourceRequest

      public ChangeTagsForResourceRequest()
  • Method Details

    • setResourceType

      public void setResourceType(String resourceType)

      The type of the resource.

      - The resource type for health checks is healthcheck.

      - The resource type for hosted zones is hostedzone.

      Parameters:
      resourceType - The type of the resource.

      - The resource type for health checks is healthcheck.

      - The resource type for hosted zones is hostedzone.

      See Also:
    • getResourceType

      public String getResourceType()

      The type of the resource.

      - The resource type for health checks is healthcheck.

      - The resource type for hosted zones is hostedzone.

      Returns:
      The type of the resource.

      - The resource type for health checks is healthcheck .

      - The resource type for hosted zones is hostedzone.

      See Also:
    • withResourceType

      public ChangeTagsForResourceRequest withResourceType(String resourceType)

      The type of the resource.

      - The resource type for health checks is healthcheck.

      - The resource type for hosted zones is hostedzone.

      Parameters:
      resourceType - The type of the resource.

      - The resource type for health checks is healthcheck.

      - The resource type for hosted zones is hostedzone.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setResourceType

      public void setResourceType(TagResourceType resourceType)

      The type of the resource.

      - The resource type for health checks is healthcheck.

      - The resource type for hosted zones is hostedzone.

      Parameters:
      resourceType - The type of the resource.

      - The resource type for health checks is healthcheck.

      - The resource type for hosted zones is hostedzone.

      See Also:
    • withResourceType

      public ChangeTagsForResourceRequest withResourceType(TagResourceType resourceType)

      The type of the resource.

      - The resource type for health checks is healthcheck.

      - The resource type for hosted zones is hostedzone.

      Parameters:
      resourceType - The type of the resource.

      - The resource type for health checks is healthcheck.

      - The resource type for hosted zones is hostedzone.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setResourceId

      public void setResourceId(String resourceId)

      The ID of the resource for which you want to add, change, or delete tags.

      Parameters:
      resourceId - The ID of the resource for which you want to add, change, or delete tags.
    • getResourceId

      public String getResourceId()

      The ID of the resource for which you want to add, change, or delete tags.

      Returns:
      The ID of the resource for which you want to add, change, or delete tags.
    • withResourceId

      public ChangeTagsForResourceRequest withResourceId(String resourceId)

      The ID of the resource for which you want to add, change, or delete tags.

      Parameters:
      resourceId - The ID of the resource for which you want to add, change, or delete tags.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getAddTags

      public List<Tag> getAddTags()

      A complex type that contains a list of Tag elements. Each Tag element identifies a tag that you want to add or update for the specified resource.

      Returns:
      A complex type that contains a list of Tag elements. Each Tag element identifies a tag that you want to add or update for the specified resource.
    • setAddTags

      public void setAddTags(Collection<Tag> addTags)

      A complex type that contains a list of Tag elements. Each Tag element identifies a tag that you want to add or update for the specified resource.

      Parameters:
      addTags - A complex type that contains a list of Tag elements. Each Tag element identifies a tag that you want to add or update for the specified resource.
    • withAddTags

      public ChangeTagsForResourceRequest withAddTags(Tag... addTags)

      A complex type that contains a list of Tag elements. Each Tag element identifies a tag that you want to add or update for the specified resource.

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

      Parameters:
      addTags - A complex type that contains a list of Tag elements. Each Tag element identifies a tag that you want to add or update for the specified resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withAddTags

      public ChangeTagsForResourceRequest withAddTags(Collection<Tag> addTags)

      A complex type that contains a list of Tag elements. Each Tag element identifies a tag that you want to add or update for the specified resource.

      Parameters:
      addTags - A complex type that contains a list of Tag elements. Each Tag element identifies a tag that you want to add or update for the specified resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getRemoveTagKeys

      public List<String> getRemoveTagKeys()

      A list of Tag keys that you want to remove from the specified resource.

      Returns:
      A list of Tag keys that you want to remove from the specified resource.
    • setRemoveTagKeys

      public void setRemoveTagKeys(Collection<String> removeTagKeys)

      A list of Tag keys that you want to remove from the specified resource.

      Parameters:
      removeTagKeys - A list of Tag keys that you want to remove from the specified resource.
    • withRemoveTagKeys

      public ChangeTagsForResourceRequest withRemoveTagKeys(String... removeTagKeys)

      A list of Tag keys that you want to remove from the specified resource.

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

      Parameters:
      removeTagKeys - A list of Tag keys that you want to remove from the specified resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withRemoveTagKeys

      public ChangeTagsForResourceRequest withRemoveTagKeys(Collection<String> removeTagKeys)

      A list of Tag keys that you want to remove from the specified resource.

      Parameters:
      removeTagKeys - A list of Tag keys that you want to remove from the specified 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 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

      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: