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