Class Tag
java.lang.Object
com.amazonaws.services.elasticfilesystem.model.Tag
- All Implemented Interfaces:
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getKey()
Tag key, a string.getValue()
Value of the tag key.int
hashCode()
void
Tag key, a string.void
Value of the tag key.toString()
Returns a string representation of this object; useful for testing and debugging.Tag key, a string.Value of the tag key.
-
Constructor Details
-
Tag
public Tag()
-
-
Method Details
-
setKey
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
Tag key, a string. The key must not start with "aws:".
- Returns:
- Tag key, a string. The key must not start with "aws:".
-
withKey
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
Value of the tag key.
- Parameters:
value
- Value of the tag key.
-
getValue
Value of the tag key.
- Returns:
- Value of the tag key.
-
withValue
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-