public class TagDescription
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a tag.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
key
The tag key.
|
private java.lang.String |
resourceId
The ID of the resource.
|
private java.lang.String |
resourceType
The resource type.
|
private java.lang.String |
value
The tag value.
|
Constructor and Description |
---|
TagDescription() |
Modifier and Type | Method and Description |
---|---|
TagDescription |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getKey()
The tag key.
|
java.lang.String |
getResourceId()
The ID of the resource.
|
java.lang.String |
getResourceType()
The resource type.
|
java.lang.String |
getValue()
The tag value.
|
int |
hashCode() |
void |
setKey(java.lang.String key)
The tag key.
|
void |
setResourceId(java.lang.String resourceId)
The ID of the resource.
|
void |
setResourceType(ResourceType resourceType)
The resource type.
|
void |
setResourceType(java.lang.String resourceType)
The resource type.
|
void |
setValue(java.lang.String value)
The tag value.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TagDescription |
withKey(java.lang.String key)
The tag key.
|
TagDescription |
withResourceId(java.lang.String resourceId)
The ID of the resource.
|
TagDescription |
withResourceType(ResourceType resourceType)
The resource type.
|
TagDescription |
withResourceType(java.lang.String resourceType)
The resource type.
|
TagDescription |
withValue(java.lang.String value)
The tag value.
|
private java.lang.String resourceId
The ID of the resource. For example, ami-1a2b3c4d
.
private java.lang.String resourceType
The resource type.
private java.lang.String key
The tag key.
private java.lang.String value
The tag value.
public void setResourceId(java.lang.String resourceId)
The ID of the resource. For example, ami-1a2b3c4d
.
resourceId
- The ID of the resource. For example, ami-1a2b3c4d
.public java.lang.String getResourceId()
The ID of the resource. For example, ami-1a2b3c4d
.
ami-1a2b3c4d
.public TagDescription withResourceId(java.lang.String resourceId)
The ID of the resource. For example, ami-1a2b3c4d
.
resourceId
- The ID of the resource. For example, ami-1a2b3c4d
.public void setResourceType(java.lang.String resourceType)
The resource type.
resourceType
- The resource type.ResourceType
public java.lang.String getResourceType()
The resource type.
ResourceType
public TagDescription withResourceType(java.lang.String resourceType)
The resource type.
resourceType
- The resource type.ResourceType
public void setResourceType(ResourceType resourceType)
The resource type.
resourceType
- The resource type.ResourceType
public TagDescription withResourceType(ResourceType resourceType)
The resource type.
resourceType
- The resource type.ResourceType
public void setKey(java.lang.String key)
The tag key.
key
- The tag key.public java.lang.String getKey()
The tag key.
public TagDescription withKey(java.lang.String key)
The tag key.
key
- The tag key.public void setValue(java.lang.String value)
The tag value.
value
- The tag value.public java.lang.String getValue()
The tag value.
public TagDescription withValue(java.lang.String value)
The tag value.
value
- The tag value.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 TagDescription clone()
clone
in class java.lang.Object