Interface TagResourceRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<TagResourceRequest.Builder,,TagResourceRequest> RamRequest.Builder,SdkBuilder<TagResourceRequest.Builder,,TagResourceRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
- TagResourceRequest
-
Method Summary
Modifier and TypeMethodDescriptionoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) resourceArn(String resourceArn) Specifies the Amazon Resource Name (ARN) of the managed permission that you want to add tags to.resourceShareArn(String resourceShareArn) Specifies the Amazon Resource Name (ARN) of the resource share that you want to add tags to.tags(Collection<Tag> tags) A list of one or more tag key and value pairs.tags(Consumer<Tag.Builder>... tags) A list of one or more tag key and value pairs.A list of one or more tag key and value pairs.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ram.model.RamRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
tags
A list of one or more tag key and value pairs. The tag key must be present and not be an empty string. The tag value must be present but can be an empty string.
- Parameters:
tags- A list of one or more tag key and value pairs. The tag key must be present and not be an empty string. The tag value must be present but can be an empty string.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of one or more tag key and value pairs. The tag key must be present and not be an empty string. The tag value must be present but can be an empty string.
- Parameters:
tags- A list of one or more tag key and value pairs. The tag key must be present and not be an empty string. The tag value must be present but can be an empty string.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of one or more tag key and value pairs. The tag key must be present and not be an empty string. The tag value must be present but can be an empty string.
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 totags(List<Tag>).- 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:
-
resourceArn
Specifies the Amazon Resource Name (ARN) of the managed permission that you want to add tags to. You must specify either
resourceArn, orresourceShareArn, but not both.- Parameters:
resourceArn- Specifies the Amazon Resource Name (ARN) of the managed permission that you want to add tags to. You must specify eitherresourceArn, orresourceShareArn, but not both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
TagResourceRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) - Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
TagResourceRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) - Specified by:
overrideConfigurationin interfaceAwsRequest.Builder