Class ChangeTagsForResourceRequest

    • Constructor Detail

      • ChangeTagsForResourceRequest

        public ChangeTagsForResourceRequest()
    • Method Detail

      • 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:
        TagResourceType
      • 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:
        TagResourceType
      • 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:
        TagResourceType
      • 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:
        TagResourceType
      • 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:
        TagResourceType
      • 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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object