Interface ChangeTagsForResourceRequest.Builder

    • Method Detail

      • resourceType

        ChangeTagsForResourceRequest.Builder resourceType​(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, TagResourceType
      • resourceType

        ChangeTagsForResourceRequest.Builder resourceType​(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, TagResourceType
      • resourceId

        ChangeTagsForResourceRequest.Builder resourceId​(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.
      • addTags

        ChangeTagsForResourceRequest.Builder addTags​(Collection<Tag> addTags)

        A complex type that contains a list of the tags that you want to add to the specified health check or hosted zone and/or the tags that you want to edit Value for.

        You can add a maximum of 10 tags to a health check or a hosted zone.

        Parameters:
        addTags - A complex type that contains a list of the tags that you want to add to the specified health check or hosted zone and/or the tags that you want to edit Value for.

        You can add a maximum of 10 tags to a health check or a hosted zone.

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

        ChangeTagsForResourceRequest.Builder addTags​(Tag... addTags)

        A complex type that contains a list of the tags that you want to add to the specified health check or hosted zone and/or the tags that you want to edit Value for.

        You can add a maximum of 10 tags to a health check or a hosted zone.

        Parameters:
        addTags - A complex type that contains a list of the tags that you want to add to the specified health check or hosted zone and/or the tags that you want to edit Value for.

        You can add a maximum of 10 tags to a health check or a hosted zone.

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

        ChangeTagsForResourceRequest.Builder addTags​(Consumer<Tag.Builder>... addTags)

        A complex type that contains a list of the tags that you want to add to the specified health check or hosted zone and/or the tags that you want to edit Value for.

        You can add a maximum of 10 tags to a health check or a hosted zone.

        This is a convenience method that creates an instance of the Tag.Builder avoiding the need to create one manually via Tag.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #addTags(List).

        Parameters:
        addTags - a consumer that will call methods on Tag.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #addTags(java.util.Collection)
      • removeTagKeys

        ChangeTagsForResourceRequest.Builder removeTagKeys​(Collection<String> removeTagKeys)

        A complex type that contains a list of the tags that you want to delete from the specified health check or hosted zone. You can specify up to 10 keys.

        Parameters:
        removeTagKeys - A complex type that contains a list of the tags that you want to delete from the specified health check or hosted zone. You can specify up to 10 keys.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • removeTagKeys

        ChangeTagsForResourceRequest.Builder removeTagKeys​(String... removeTagKeys)

        A complex type that contains a list of the tags that you want to delete from the specified health check or hosted zone. You can specify up to 10 keys.

        Parameters:
        removeTagKeys - A complex type that contains a list of the tags that you want to delete from the specified health check or hosted zone. You can specify up to 10 keys.
        Returns:
        Returns a reference to this object so that method calls can be chained together.