public class TaggedResource
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
A tag and its associated resource.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
resourceName
The Amazon Resource Name (ARN) with which the tag is associated.
|
private java.lang.String |
resourceType
The type of resource with which the tag is associated.
|
private Tag |
tag
The tag for the resource.
|
Constructor and Description |
---|
TaggedResource() |
Modifier and Type | Method and Description |
---|---|
TaggedResource |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getResourceName()
The Amazon Resource Name (ARN) with which the tag is associated.
|
java.lang.String |
getResourceType()
The type of resource with which the tag is associated.
|
Tag |
getTag()
The tag for the resource.
|
int |
hashCode() |
void |
setResourceName(java.lang.String resourceName)
The Amazon Resource Name (ARN) with which the tag is associated.
|
void |
setResourceType(java.lang.String resourceType)
The type of resource with which the tag is associated.
|
void |
setTag(Tag tag)
The tag for the resource.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TaggedResource |
withResourceName(java.lang.String resourceName)
The Amazon Resource Name (ARN) with which the tag is associated.
|
TaggedResource |
withResourceType(java.lang.String resourceType)
The type of resource with which the tag is associated.
|
TaggedResource |
withTag(Tag tag)
The tag for the resource.
|
private Tag tag
The tag for the resource.
private java.lang.String resourceName
The Amazon Resource Name (ARN) with which the tag is associated. For
example, arn:aws:redshift:us-east-1:123456789:cluster:t1
.
private java.lang.String resourceType
The type of resource with which the tag is associated. Valid resource types are:
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 void setTag(Tag tag)
The tag for the resource.
tag
- The tag for the resource.public Tag getTag()
The tag for the resource.
public TaggedResource withTag(Tag tag)
The tag for the resource.
tag
- The tag for the resource.public void setResourceName(java.lang.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
.public java.lang.String getResourceName()
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 TaggedResource withResourceName(java.lang.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
.public void setResourceType(java.lang.String resourceType)
The type of resource with which the tag is associated. Valid resource types are:
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:
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 java.lang.String getResourceType()
The type of resource with which the tag is associated. Valid resource types are:
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.
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 withResourceType(java.lang.String resourceType)
The type of resource with which the tag is associated. Valid resource types are:
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:
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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public TaggedResource clone()
clone
in class java.lang.Object