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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AddTagsRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)AddTagsRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)AddTagsRequest.BuilderresourceId(String resourceId)Specifies the ARN of the trail, event data store, or channel to which one or more tags will be added.AddTagsRequest.BuildertagsList(Collection<Tag> tagsList)Contains a list of tags, up to a limit of 50AddTagsRequest.BuildertagsList(Consumer<Tag.Builder>... tagsList)Contains a list of tags, up to a limit of 50AddTagsRequest.BuildertagsList(Tag... tagsList)Contains a list of tags, up to a limit of 50-
Methods 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 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/MyTrailThe format of an event data store ARN is:
arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLEThe 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/MyTrailThe format of an event data store ARN is:
arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLEThe 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 theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tagsList(List.) - 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:
#tagsList(java.util.Collection)
-
overrideConfiguration
AddTagsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
AddTagsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-