Class Tag
java.lang.Object
com.amazonaws.services.inspector.model.Tag
- All Implemented Interfaces:
Serializable
,Cloneable
A key and value pair. This data type is used as a request parameter in the SetTagsForResource action and a response element in the ListTagsForResource action.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getKey()
A tag key.getValue()
A value assigned to a tag key.int
hashCode()
void
A tag key.void
A value assigned to a tag key.toString()
Returns a string representation of this object; useful for testing and debugging.A tag key.A value assigned to a tag key.
-
Constructor Details
-
Tag
public Tag()
-
-
Method Details
-
setKey
A tag key.
- Parameters:
key
- A tag key.
-
getKey
A tag key.
- Returns:
- A tag key.
-
withKey
A tag key.
- Parameters:
key
- A tag key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setValue
A value assigned to a tag key.
- Parameters:
value
- A value assigned to a tag key.
-
getValue
A value assigned to a tag key.
- Returns:
- A value assigned to a tag key.
-
withValue
A value assigned to a tag key.
- Parameters:
value
- A value assigned to a 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
-