Interface ResourceTag.Builder

    • Method Detail

      • resourceId

        ResourceTag.Builder resourceId​(String resourceId)

        Specifies the ARN of the resource.

        Parameters:
        resourceId - Specifies the ARN of the resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tagsList

        ResourceTag.Builder tagsList​(Collection<Tag> tagsList)

        A list of tags.

        Parameters:
        tagsList - A list of tags.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tagsList

        ResourceTag.Builder tagsList​(Tag... tagsList)

        A list of tags.

        Parameters:
        tagsList - A list of tags.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tagsList

        ResourceTag.Builder tagsList​(Consumer<Tag.Builder>... tagsList)

        A list of tags.

        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 #tagsList(List).

        Parameters:
        tagsList - 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:
        #tagsList(java.util.Collection)