@Generated(value="software.amazon.awssdk:codegen") public final class TaggedResource extends Object implements ToCopyableBuilder<TaggedResource.Builder,TaggedResource>
A tag and its associated resource.
Modifier and Type | Class and Description |
---|---|
static interface |
TaggedResource.Builder |
Modifier and Type | Method and Description |
---|---|
static TaggedResource.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
resourceName()
The Amazon Resource Name (ARN) with which the tag is associated.
|
String |
resourceType()
The type of resource with which the tag is associated.
|
static Class<? extends TaggedResource.Builder> |
serializableBuilderClass() |
Tag |
tag()
The tag for the resource.
|
TaggedResource.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public Tag tag()
The tag for the resource.
public String resourceName()
The Amazon Resource Name (ARN) with which the tag is associated. For example,
arn:aws:redshift:us-east-1:123456789:cluster:t1
.
arn:aws:redshift:us-east-1:123456789:cluster:t1
.public 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.
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.
public TaggedResource.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<TaggedResource.Builder,TaggedResource>
public static TaggedResource.Builder builder()
public static Class<? extends TaggedResource.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.