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