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