Interface TagResourceRequest.Builder

    • Method Detail

      • resourceArn

        TagResourceRequest.Builder resourceArn​(String resourceArn)

        The unique identifier for the resource.

        Parameters:
        resourceArn - The unique identifier for the resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • resourceTags

        TagResourceRequest.Builder resourceTags​(Collection<ResourceTag> resourceTags)

        The tags to associate with the resource. Each tag consists of a key and a value, and each key must be unique for the resource.

        Parameters:
        resourceTags - The tags to associate with the resource. Each tag consists of a key and a value, and each key must be unique for the resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • resourceTags

        TagResourceRequest.Builder resourceTags​(ResourceTag... resourceTags)

        The tags to associate with the resource. Each tag consists of a key and a value, and each key must be unique for the resource.

        Parameters:
        resourceTags - The tags to associate with the resource. Each tag consists of a key and a value, and each key must be unique for the resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • resourceTags

        TagResourceRequest.Builder resourceTags​(Consumer<ResourceTag.Builder>... resourceTags)

        The tags to associate with the resource. Each tag consists of a key and a value, and each key must be unique for the resource.

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

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

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