Interface AddTagsRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CloudTrailRequest.Builder, CopyableBuilder<AddTagsRequest.Builder,AddTagsRequest>, SdkBuilder<AddTagsRequest.Builder,AddTagsRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
AddTagsRequest

public static interface AddTagsRequest.Builder extends CloudTrailRequest.Builder, SdkPojo, CopyableBuilder<AddTagsRequest.Builder,AddTagsRequest>
  • Method Details

    • 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

      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<Tag>).

      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:
    • overrideConfiguration

      AddTagsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.