Interface TagSpecification.Builder

    • Method Detail

      • resourceType

        TagSpecification.Builder resourceType​(String resourceType)

        The type of resource to tag on creation.

        Parameters:
        resourceType - The type of resource to tag on creation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ResourceType, ResourceType
      • resourceType

        TagSpecification.Builder resourceType​(ResourceType resourceType)

        The type of resource to tag on creation.

        Parameters:
        resourceType - The type of resource to tag on creation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ResourceType, ResourceType
      • tags

        TagSpecification.Builder tags​(Collection<Tag> tags)

        The tags to apply to the resource.

        Parameters:
        tags - The tags to apply to the resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        TagSpecification.Builder tags​(Tag... tags)

        The tags to apply to the resource.

        Parameters:
        tags - The tags to apply to the resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        TagSpecification.Builder tags​(Consumer<Tag.Builder>... tags)

        The tags to apply to the resource.

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

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