public class ResourceGroupTag
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
This data type is used as one of the elements of the ResourceGroup data type.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
key
A tag key.
|
private java.lang.String |
value
The value assigned to a tag key.
|
Constructor and Description |
---|
ResourceGroupTag() |
Modifier and Type | Method and Description |
---|---|
ResourceGroupTag |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getKey()
A tag key.
|
java.lang.String |
getValue()
The value assigned to a tag key.
|
int |
hashCode() |
void |
setKey(java.lang.String key)
A tag key.
|
void |
setValue(java.lang.String value)
The value assigned to a tag key.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ResourceGroupTag |
withKey(java.lang.String key)
A tag key.
|
ResourceGroupTag |
withValue(java.lang.String value)
The value assigned to a tag key.
|
private java.lang.String key
A tag key.
private java.lang.String value
The value assigned to a tag key.
public void setKey(java.lang.String key)
A tag key.
key
- A tag key.public java.lang.String getKey()
A tag key.
public ResourceGroupTag withKey(java.lang.String key)
A tag key.
key
- A tag key.public void setValue(java.lang.String value)
The value assigned to a tag key.
value
- The value assigned to a tag key.public java.lang.String getValue()
The value assigned to a tag key.
public ResourceGroupTag withValue(java.lang.String value)
The value assigned to a tag key.
value
- The value assigned to a tag key.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ResourceGroupTag clone()
clone
in class java.lang.Object