Interface AddTagsRequest.Builder

    • Method Detail

      • resourceId

        AddTagsRequest.Builder resourceId​(String resourceId)

        Specifies the ARN of the trail, event data store, or channel to which one or more tags will be added.

        The format of a trail ARN is: arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

        The format of an event data store ARN is: arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE

        The format of a channel ARN is: arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890

        Parameters:
        resourceId - Specifies the ARN of the trail, event data store, or channel to which one or more tags will be added.

        The format of a trail ARN is: arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

        The format of an event data store ARN is: arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE

        The format of a channel ARN is: arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890

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

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

        Contains a list of tags, up to a limit of 50

        Parameters:
        tagsList - Contains a list of tags, up to a limit of 50
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tagsList

        AddTagsRequest.Builder tagsList​(Tag... tagsList)

        Contains a list of tags, up to a limit of 50

        Parameters:
        tagsList - Contains a list of tags, up to a limit of 50
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tagsList

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

        Contains a list of tags, up to a limit of 50

        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)