Class Tag
- java.lang.Object
-
- com.amazonaws.services.elasticfilesystem.model.Tag
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Tag extends Object implements Serializable, Cloneable
A tag is a pair of key and value. The allowed characters in keys and values are letters, whitespace, and numbers, representable in UTF-8, and the characters '+', '-', '=', '.', '_', ':', and '/'.
- 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()Tag key, a string.StringgetValue()Value of the tag key.inthashCode()voidsetKey(String key)Tag key, a string.voidsetValue(String value)Value of the tag key.StringtoString()Returns a string representation of this object; useful for testing and debugging.TagwithKey(String key)Tag key, a string.TagwithValue(String value)Value of the tag key.
-
-
-
Method Detail
-
setKey
public void setKey(String key)
Tag key, a string. The key must not start with "aws:".
- Parameters:
key- Tag key, a string. The key must not start with "aws:".
-
getKey
public String getKey()
Tag key, a string. The key must not start with "aws:".
- Returns:
- Tag key, a string. The key must not start with "aws:".
-
withKey
public Tag withKey(String key)
Tag key, a string. The key must not start with "aws:".
- Parameters:
key- Tag key, a string. The key must not start with "aws:".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setValue
public void setValue(String value)
Value of the tag key.
- Parameters:
value- Value of the tag key.
-
getValue
public String getValue()
Value of the tag key.
- Returns:
- Value of the tag key.
-
withValue
public Tag withValue(String value)
Value of the tag key.
- Parameters:
value- Value of the tag key.- 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()
-
-