@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TaggedResource extends Object implements Serializable, Cloneable
A tag and its associated resource.
Constructor and Description |
---|
TaggedResource() |
Modifier and Type | Method and Description |
---|---|
TaggedResource |
clone() |
boolean |
equals(Object obj) |
String |
getResourceName()
The Amazon Resource Name (ARN) with which the tag is associated.
|
String |
getResourceType()
The type of resource with which the tag is associated.
|
Tag |
getTag()
The tag for the resource.
|
int |
hashCode() |
void |
setResourceName(String resourceName)
The Amazon Resource Name (ARN) with which the tag is associated.
|
void |
setResourceType(String resourceType)
The type of resource with which the tag is associated.
|
void |
setTag(Tag tag)
The tag for the resource.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
TaggedResource |
withResourceName(String resourceName)
The Amazon Resource Name (ARN) with which the tag is associated.
|
TaggedResource |
withResourceType(String resourceType)
The type of resource with which the tag is associated.
|
TaggedResource |
withTag(Tag tag)
The tag for the resource.
|
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(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 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(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(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.
public String getResourceType()
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 withResourceType(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.
public String toString()
toString
in class Object
Object.toString()
public TaggedResource clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.