public class TagDescription
extends java.lang.Object
implements java.io.Serializable
Describes a tag.
| Constructor and Description |
|---|
TagDescription() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getKey()
The key of the tag.
|
java.lang.String |
getResourceId()
The ID of the resource.
|
java.lang.String |
getResourceType()
The type of resource.
|
java.lang.String |
getValue()
The value of the tag.
|
int |
hashCode() |
void |
setKey(java.lang.String key)
The key of the tag.
|
void |
setResourceId(java.lang.String resourceId)
The ID of the resource.
|
void |
setResourceType(ResourceType resourceType)
The type of resource.
|
void |
setResourceType(java.lang.String resourceType)
The type of resource.
|
void |
setValue(java.lang.String value)
The value of the tag.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TagDescription |
withKey(java.lang.String key)
The key of the tag.
|
TagDescription |
withResourceId(java.lang.String resourceId)
The ID of the resource.
|
TagDescription |
withResourceType(ResourceType resourceType)
The type of resource.
|
TagDescription |
withResourceType(java.lang.String resourceType)
The type of resource.
|
TagDescription |
withValue(java.lang.String value)
The value of the tag.
|
public java.lang.String getResourceId()
ami-1a2b3c4d.ami-1a2b3c4d.public void setResourceId(java.lang.String resourceId)
ami-1a2b3c4d.resourceId - The ID of the resource. For example, ami-1a2b3c4d.public TagDescription withResourceId(java.lang.String resourceId)
ami-1a2b3c4d.
Returns a reference to this object so that method calls can be chained together.
resourceId - The ID of the resource. For example, ami-1a2b3c4d.public java.lang.String getResourceType()
Constraints:
Allowed Values: customer-gateway, dhcp-options, image, instance, internet-gateway, network-acl, network-interface, reserved-instances, route-table, snapshot, spot-instances-request, subnet, security-group, volume, vpc, vpn-connection, vpn-gateway
ResourceTypepublic void setResourceType(java.lang.String resourceType)
Constraints:
Allowed Values: customer-gateway, dhcp-options, image, instance, internet-gateway, network-acl, network-interface, reserved-instances, route-table, snapshot, spot-instances-request, subnet, security-group, volume, vpc, vpn-connection, vpn-gateway
resourceType - The type of resource.ResourceTypepublic TagDescription withResourceType(java.lang.String resourceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: customer-gateway, dhcp-options, image, instance, internet-gateway, network-acl, network-interface, reserved-instances, route-table, snapshot, spot-instances-request, subnet, security-group, volume, vpc, vpn-connection, vpn-gateway
resourceType - The type of resource.ResourceTypepublic void setResourceType(ResourceType resourceType)
Constraints:
Allowed Values: customer-gateway, dhcp-options, image, instance, internet-gateway, network-acl, network-interface, reserved-instances, route-table, snapshot, spot-instances-request, subnet, security-group, volume, vpc, vpn-connection, vpn-gateway
resourceType - The type of resource.ResourceTypepublic TagDescription withResourceType(ResourceType resourceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: customer-gateway, dhcp-options, image, instance, internet-gateway, network-acl, network-interface, reserved-instances, route-table, snapshot, spot-instances-request, subnet, security-group, volume, vpc, vpn-connection, vpn-gateway
resourceType - The type of resource.ResourceTypepublic java.lang.String getKey()
public void setKey(java.lang.String key)
key - The key of the tag.public TagDescription withKey(java.lang.String key)
Returns a reference to this object so that method calls can be chained together.
key - The key of the tag.public java.lang.String getValue()
public void setValue(java.lang.String value)
value - The value of the tag.public TagDescription withValue(java.lang.String value)
Returns a reference to this object so that method calls can be chained together.
value - The value of the tag.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object