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