Class TaggedResource
- java.lang.Object
-
- software.amazon.awssdk.services.redshift.model.TaggedResource
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TaggedResource.Builder,TaggedResource>
@Generated("software.amazon.awssdk:codegen") public final class TaggedResource extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TaggedResource.Builder,TaggedResource>
A tag and its associated resource.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTaggedResource.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TaggedResource.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringresourceName()The Amazon Resource Name (ARN) with which the tag is associated, for example:arn:aws:redshift:us-east-2:123456789:cluster:t1.StringresourceType()The type of resource with which the tag is associated.List<SdkField<?>>sdkFields()static Class<? extends TaggedResource.Builder>serializableBuilderClass()Tagtag()The tag for the resource.TaggedResource.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
tag
public final Tag tag()
The tag for the resource.
- Returns:
- The tag for the resource.
-
resourceName
public final String resourceName()
The Amazon Resource Name (ARN) with which the tag is associated, for example:
arn:aws:redshift:us-east-2:123456789:cluster:t1.- Returns:
- The Amazon Resource Name (ARN) with which the tag is associated, for example:
arn:aws:redshift:us-east-2:123456789:cluster:t1.
-
resourceType
public final 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.
- Returns:
- 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.
-
-
-
toBuilder
public TaggedResource.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<TaggedResource.Builder,TaggedResource>
-
builder
public static TaggedResource.Builder builder()
-
serializableBuilderClass
public static Class<? extends TaggedResource.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-