Class Tag
- java.lang.Object
-
- com.amazonaws.services.redshift.model.Tag
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Tag extends Object implements Serializable, Cloneable
A tag consisting of a name/value pair for a resource.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Tag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tag
clone()
boolean
equals(Object obj)
String
getKey()
The key, or name, for the resource tag.String
getValue()
The value for the resource tag.int
hashCode()
void
setKey(String key)
The key, or name, for the resource tag.void
setValue(String value)
The value for the resource tag.String
toString()
Returns a string representation of this object; useful for testing and debugging.Tag
withKey(String key)
The key, or name, for the resource tag.Tag
withValue(String value)
The value for the resource tag.
-
-
-
Method Detail
-
setKey
public void setKey(String key)
The key, or name, for the resource tag.
- Parameters:
key
- The key, or name, for the resource tag.
-
getKey
public String getKey()
The key, or name, for the resource tag.
- Returns:
- The key, or name, for the resource tag.
-
withKey
public Tag withKey(String key)
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
public void setValue(String value)
The value for the resource tag.
- Parameters:
value
- The value for the resource tag.
-
getValue
public String getValue()
The value for the resource tag.
- Returns:
- The value for the resource tag.
-
withValue
public Tag withValue(String value)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-