Interface AddTagsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CloudTrailRequest.Builder
,CopyableBuilder<AddTagsRequest.Builder,
,AddTagsRequest> SdkBuilder<AddTagsRequest.Builder,
,AddTagsRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
AddTagsRequest
-
Method Summary
Modifier and TypeMethodDescriptionoverrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.resourceId
(String resourceId) Specifies the ARN of the trail, event data store, or channel to which one or more tags will be added.tagsList
(Collection<Tag> tagsList) Contains a list of tags, up to a limit of 50tagsList
(Consumer<Tag.Builder>... tagsList) Contains a list of tags, up to a limit of 50Contains a list of tags, up to a limit of 50Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.cloudtrail.model.CloudTrailRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
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
- 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 theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totagsList(List<Tag>)
.- Parameters:
tagsList
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
AddTagsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-