Interface TaggedResource.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<TaggedResource.Builder,TaggedResource>,SdkBuilder<TaggedResource.Builder,TaggedResource>,SdkPojo
- Enclosing class:
- TaggedResource
public static interface TaggedResource.Builder extends SdkPojo, CopyableBuilder<TaggedResource.Builder,TaggedResource>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description TaggedResource.BuilderresourceName(String resourceName)The Amazon Resource Name (ARN) with which the tag is associated, for example:arn:aws:redshift:us-east-2:123456789:cluster:t1.TaggedResource.BuilderresourceType(String resourceType)The type of resource with which the tag is associated.default TaggedResource.Buildertag(Consumer<Tag.Builder> tag)The tag for the resource.TaggedResource.Buildertag(Tag tag)The tag for the resource.-
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
-
tag
TaggedResource.Builder tag(Tag tag)
The tag for the resource.
- Parameters:
tag- The tag for the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tag
default TaggedResource.Builder tag(Consumer<Tag.Builder> tag)
The tag for the resource.
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 totag(Tag).- Parameters:
tag- 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:
tag(Tag)
-
resourceName
TaggedResource.Builder resourceName(String resourceName)
The Amazon Resource Name (ARN) with which the tag is associated, for example:
arn:aws:redshift:us-east-2:123456789:cluster:t1.- Parameters:
resourceName- The Amazon Resource Name (ARN) with which the tag is associated, 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.
-
resourceType
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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
-