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 Tagclone()booleanequals(Object obj)StringgetKey()A type of tag to filter on.StringgetValue()A value for a tag key to filter on.inthashCode()voidsetKey(String key)A type of tag to filter on.voidsetValue(String value)A value for a tag key to filter on.StringtoString()Returns a string representation of this object; useful for testing and debugging.TagwithKey(String key)A type of tag to filter on.TagwithValue(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-