@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class IpamResourceTag extends Object implements Serializable, Cloneable
The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as
the filter value. For example, to find all resources that have a tag with the key Owner
and the value
TeamA
, specify tag:Owner
for the filter name and TeamA
for the filter value.
Constructor and Description |
---|
IpamResourceTag() |
Modifier and Type | Method and Description |
---|---|
IpamResourceTag |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The key of a tag assigned to the resource.
|
String |
getValue()
The value of the tag.
|
int |
hashCode() |
void |
setKey(String key)
The key of a tag assigned to the resource.
|
void |
setValue(String value)
The value of the tag.
|
String |
toString()
Returns a string representation of this object.
|
IpamResourceTag |
withKey(String key)
The key of a tag assigned to the resource.
|
IpamResourceTag |
withValue(String value)
The value of the tag.
|
public void setKey(String key)
The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.
key
- The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a
specific key, regardless of the tag value.public String getKey()
The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.
public IpamResourceTag withKey(String key)
The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.
key
- The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a
specific key, regardless of the tag value.public void setValue(String value)
The value of the tag.
value
- The value of the tag.public String getValue()
The value of the tag.
public IpamResourceTag withValue(String value)
The value of the tag.
value
- The value of the tag.public String toString()
toString
in class Object
Object.toString()
public IpamResourceTag clone()