Class Tag
java.lang.Object
com.amazonaws.services.redshift.model.Tag
- All Implemented Interfaces:
Serializable
,Cloneable
A tag consisting of a name/value pair for a resource.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getKey()
The key, or name, for the resource tag.getValue()
The value for the resource tag.int
hashCode()
void
The key, or name, for the resource tag.void
The value for the resource tag.toString()
Returns a string representation of this object; useful for testing and debugging.The key, or name, for the resource tag.The value for the resource tag.
-
Constructor Details
-
Tag
public Tag()
-
-
Method Details
-
setKey
The key, or name, for the resource tag.
- Parameters:
key
- The key, or name, for the resource tag.
-
getKey
The key, or name, for the resource tag.
- Returns:
- The key, or name, for the resource tag.
-
withKey
The key, or name, for the resource tag.
- Parameters:
key
- The key, or name, for the resource tag.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setValue
The value for the resource tag.
- Parameters:
value
- The value for the resource tag.
-
getValue
The value for the resource tag.
- Returns:
- The value for the resource tag.
-
withValue
The value for the resource tag.
- Parameters:
value
- The value for the resource tag.- 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
-