Interface TagResourceRequest.Builder

    • Method Detail

      • resourceArn

        TagResourceRequest.Builder resourceArn​(String resourceArn)

        The ARN of a resource, such as a CodeDeploy application or deployment group.

        Parameters:
        resourceArn - The ARN of a resource, such as a CodeDeploy application or deployment group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

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

        A list of tags that TagResource associates with a resource. The resource is identified by the ResourceArn input parameter.

        Parameters:
        tags - A list of tags that TagResource associates with a resource. The resource is identified by the ResourceArn input parameter.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        TagResourceRequest.Builder tags​(Tag... tags)

        A list of tags that TagResource associates with a resource. The resource is identified by the ResourceArn input parameter.

        Parameters:
        tags - A list of tags that TagResource associates with a resource. The resource is identified by the ResourceArn input parameter.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

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

        A list of tags that TagResource associates with a resource. The resource is identified by the ResourceArn input parameter.

        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)