public static interface TaggedResource.Builder extends CopyableBuilder<TaggedResource.Builder,TaggedResource>
Modifier and Type | Method and Description |
---|---|
TaggedResource.Builder |
resourceName(String resourceName)
The Amazon Resource Name (ARN) with which the tag is associated.
|
TaggedResource.Builder |
resourceType(String resourceType)
The type of resource with which the tag is associated.
|
default TaggedResource.Builder |
tag(Consumer<Tag.Builder> tag)
The tag for the resource.
|
TaggedResource.Builder |
tag(Tag tag)
The tag for the resource.
|
copy
applyMutation, build
TaggedResource.Builder tag(Tag tag)
The tag for the resource.
tag
- The tag for the resource.default TaggedResource.Builder tag(Consumer<Tag.Builder> tag)
The tag for the resource.
This is a convenience that creates an instance of theTag.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 tag(Tag)
.tag
- a consumer that will call methods on Tag.Builder
tag(Tag)
TaggedResource.Builder resourceName(String resourceName)
The Amazon Resource Name (ARN) with which the tag is associated. For example,
arn:aws:redshift:us-east-1:123456789:cluster:t1
.
resourceName
- The Amazon Resource Name (ARN) with which the tag is associated. For example,
arn:aws:redshift:us-east-1:123456789:cluster:t1
.TaggedResource.Builder resourceType(String resourceType)
The type of resource with which the tag is associated. Valid resource types are:
Cluster
CIDR/IP
EC2 security group
Snapshot
Cluster security group
Subnet group
HSM connection
HSM certificate
Parameter group
For more information about Amazon Redshift resource types and constructing ARNs, go to Constructing an Amazon Redshift Amazon Resource Name (ARN) in the Amazon Redshift Cluster Management Guide.
resourceType
- The type of resource with which the tag is associated. Valid resource types are:
Cluster
CIDR/IP
EC2 security group
Snapshot
Cluster security group
Subnet group
HSM connection
HSM certificate
Parameter group
For more information about Amazon Redshift resource types and constructing ARNs, go to Constructing an Amazon Redshift Amazon Resource Name (ARN) in the Amazon Redshift Cluster Management Guide.
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.