Class Tag
- java.lang.Object
-
- com.amazonaws.services.route53.model.Tag
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Tag extends Object implements Serializable, Cloneable
A single tag containing a key and value.
- 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 for aTag
.String
getValue()
The value for aTag
.int
hashCode()
void
setKey(String key)
The key for aTag
.void
setValue(String value)
The value for aTag
.String
toString()
Returns a string representation of this object; useful for testing and debugging.Tag
withKey(String key)
The key for aTag
.Tag
withValue(String value)
The value for aTag
.
-
-
-
Method Detail
-
setKey
public void setKey(String key)
The key for a
Tag
.- Parameters:
key
- The key for aTag
.
-
getKey
public String getKey()
The key for a
Tag
.- Returns:
- The key for a
Tag
.
-
withKey
public Tag withKey(String key)
The key for a
Tag
.- Parameters:
key
- The key for aTag
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setValue
public void setValue(String value)
The value for a
Tag
.- Parameters:
value
- The value for aTag
.
-
getValue
public String getValue()
The value for a
Tag
.- Returns:
- The value for a
Tag
.
-
withValue
public Tag withValue(String value)
The value for a
Tag
.- Parameters:
value
- The value for aTag
.- 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()
-
-