Class ResourceGroupTag
- java.lang.Object
-
- com.amazonaws.services.inspector.model.ResourceGroupTag
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ResourceGroupTag extends Object implements Serializable, Cloneable
This data type is used as one of the elements of the ResourceGroup data type.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceGroupTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceGroupTag
clone()
boolean
equals(Object obj)
String
getKey()
A tag key.String
getValue()
The value assigned to a tag key.int
hashCode()
void
setKey(String key)
A tag key.void
setValue(String value)
The value assigned to a tag key.String
toString()
Returns a string representation of this object; useful for testing and debugging.ResourceGroupTag
withKey(String key)
A tag key.ResourceGroupTag
withValue(String value)
The value assigned to a tag key.
-
-
-
Method Detail
-
setKey
public void setKey(String key)
A tag key.
- Parameters:
key
- A tag key.
-
getKey
public String getKey()
A tag key.
- Returns:
- A tag key.
-
withKey
public ResourceGroupTag withKey(String key)
A tag key.
- Parameters:
key
- A tag key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setValue
public void setValue(String value)
The value assigned to a tag key.
- Parameters:
value
- The value assigned to a tag key.
-
getValue
public String getValue()
The value assigned to a tag key.
- Returns:
- The value assigned to a tag key.
-
withValue
public ResourceGroupTag withValue(String value)
The value assigned to a tag key.
- Parameters:
value
- The value assigned to a tag key.- 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()
-
clone
public ResourceGroupTag clone()
-
-