Class ResourceTagSet

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

public class ResourceTagSet extends Object implements Serializable, Cloneable

A complex type containing a resource and its associated tags.

See Also:
  • Constructor Details

    • ResourceTagSet

      public ResourceTagSet()
  • 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 ResourceTagSet 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 ResourceTagSet 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 for the specified resource.

      Parameters:
      resourceId - The ID for the specified resource.
    • getResourceId

      public String getResourceId()

      The ID for the specified resource.

      Returns:
      The ID for the specified resource.
    • withResourceId

      public ResourceTagSet withResourceId(String resourceId)

      The ID for the specified resource.

      Parameters:
      resourceId - The ID for the specified resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getTags

      public List<Tag> getTags()

      The tags associated with the specified resource.

      Returns:
      The tags associated with the specified resource.
    • setTags

      public void setTags(Collection<Tag> tags)

      The tags associated with the specified resource.

      Parameters:
      tags - The tags associated with the specified resource.
    • withTags

      public ResourceTagSet withTags(Tag... tags)

      The tags associated with the specified resource.

      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 - The tags associated with the specified resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withTags

      public ResourceTagSet withTags(Collection<Tag> tags)

      The tags associated with the specified resource.

      Parameters:
      tags - The tags associated with 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

      public ResourceTagSet clone()
      Overrides:
      clone in class Object