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 Tagclone()booleanequals(Object obj)StringgetKey()The tag's key.StringgetValue()The tag's value.inthashCode()voidsetKey(String key)The tag's key.voidsetValue(String value)The tag's value.StringtoString()Returns a string representation of this object; useful for testing and debugging.TagwithKey(String key)The tag's key.TagwithValue(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-