Class TaggedResource
- All Implemented Interfaces:
Serializable
,Cloneable
A tag and its associated resource.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The Amazon Resource Name (ARN) with which the tag is associated.The type of resource with which the tag is associated.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
The tag for the resource.toString()
Returns a string representation of this object; useful for testing and debugging.withResourceName
(String resourceName) The Amazon Resource Name (ARN) with which the tag is associated.withResourceType
(String resourceType) The type of resource with which the tag is associated.The tag for the resource.
-
Constructor Details
-
TaggedResource
public TaggedResource()
-
-
Method Details
-
setTag
The tag for the resource.
- Parameters:
tag
- The tag for the resource.
-
getTag
The tag for the resource.
- Returns:
- The tag for the resource.
-
withTag
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.
-
setResourceName
The Amazon Resource Name (ARN) with which the tag is associated. For example,
arn:aws:redshift:us-east-1:123456789:cluster:t1
.- Parameters:
resourceName
- The Amazon Resource Name (ARN) with which the tag is associated. For example,arn:aws:redshift:us-east-1:123456789:cluster:t1
.
-
getResourceName
The Amazon Resource Name (ARN) with which the tag is associated. For example,
arn:aws:redshift:us-east-1:123456789:cluster:t1
.- Returns:
- The Amazon Resource Name (ARN) with which the tag is associated.
For example,
arn:aws:redshift:us-east-1:123456789:cluster:t1
.
-
withResourceName
The Amazon Resource Name (ARN) with which the tag is associated. For example,
arn:aws:redshift:us-east-1:123456789:cluster:t1
.- Parameters:
resourceName
- The Amazon Resource Name (ARN) with which the tag is associated. For example,arn:aws:redshift:us-east-1:123456789:cluster:t1
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setResourceType
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.
-
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.
- 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.
-
withResourceType
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.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-