Interface CreateTagsRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateTagsRequest.Builder,CreateTagsRequest>,RedshiftRequest.Builder,SdkBuilder<CreateTagsRequest.Builder,CreateTagsRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateTagsRequest
public static interface CreateTagsRequest.Builder extends RedshiftRequest.Builder, SdkPojo, CopyableBuilder<CreateTagsRequest.Builder,CreateTagsRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateTagsRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateTagsRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateTagsRequest.BuilderresourceName(String resourceName)The Amazon Resource Name (ARN) to which you want to add the tag or tags.CreateTagsRequest.Buildertags(Collection<Tag> tags)One or more name/value pairs to add as tags to the specified resource.CreateTagsRequest.Buildertags(Consumer<Tag.Builder>... tags)One or more name/value pairs to add as tags to the specified resource.CreateTagsRequest.Buildertags(Tag... tags)One or more name/value pairs to add as tags to the specified resource.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.redshift.model.RedshiftRequest.Builder
build
-
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
-
resourceName
CreateTagsRequest.Builder resourceName(String resourceName)
The Amazon Resource Name (ARN) to which you want to add the tag or tags. For example,
arn:aws:redshift:us-east-2:123456789:cluster:t1.- Parameters:
resourceName- The Amazon Resource Name (ARN) to which you want to add the tag or tags. For example,arn:aws:redshift:us-east-2:123456789:cluster:t1.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateTagsRequest.Builder tags(Collection<Tag> tags)
One or more name/value pairs to add as tags to the specified resource. Each tag name is passed in with the parameter
Keyand the corresponding value is passed in with the parameterValue. TheKeyandValueparameters are separated by a comma (,). Separate multiple tags with a space. For example,--tags "Key"="owner","Value"="admin" "Key"="environment","Value"="test" "Key"="version","Value"="1.0".- Parameters:
tags- One or more name/value pairs to add as tags to the specified resource. Each tag name is passed in with the parameterKeyand the corresponding value is passed in with the parameterValue. TheKeyandValueparameters are separated by a comma (,). Separate multiple tags with a space. For example,--tags "Key"="owner","Value"="admin" "Key"="environment","Value"="test" "Key"="version","Value"="1.0".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateTagsRequest.Builder tags(Tag... tags)
One or more name/value pairs to add as tags to the specified resource. Each tag name is passed in with the parameter
Keyand the corresponding value is passed in with the parameterValue. TheKeyandValueparameters are separated by a comma (,). Separate multiple tags with a space. For example,--tags "Key"="owner","Value"="admin" "Key"="environment","Value"="test" "Key"="version","Value"="1.0".- Parameters:
tags- One or more name/value pairs to add as tags to the specified resource. Each tag name is passed in with the parameterKeyand the corresponding value is passed in with the parameterValue. TheKeyandValueparameters are separated by a comma (,). Separate multiple tags with a space. For example,--tags "Key"="owner","Value"="admin" "Key"="environment","Value"="test" "Key"="version","Value"="1.0".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateTagsRequest.Builder tags(Consumer<Tag.Builder>... tags)
One or more name/value pairs to add as tags to the specified resource. Each tag name is passed in with the parameter
This is a convenience method that creates an instance of theKeyand the corresponding value is passed in with the parameterValue. TheKeyandValueparameters are separated by a comma (,). Separate multiple tags with a space. For example,--tags "Key"="owner","Value"="admin" "Key"="environment","Value"="test" "Key"="version","Value"="1.0".Tag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- 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:
#tags(java.util.Collection)
-
overrideConfiguration
CreateTagsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateTagsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-