public class TagDescription extends Object implements Serializable
Provides information about an Amazon EC2 resource Tag.
| Constructor and Description |
|---|
TagDescription() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getKey()
The tag's key.
|
String |
getResourceId()
The resource ID for the tag.
|
String |
getResourceType()
The type of resource identified by the associated resource ID (ex:
instance, AMI, EBS volume, etc).
|
String |
getValue()
The tag's value.
|
int |
hashCode() |
void |
setKey(String key)
The tag's key.
|
void |
setResourceId(String resourceId)
The resource ID for the tag.
|
void |
setResourceType(ResourceType resourceType)
The type of resource identified by the associated resource ID (ex:
instance, AMI, EBS volume, etc).
|
void |
setResourceType(String resourceType)
The type of resource identified by the associated resource ID (ex:
instance, AMI, EBS volume, etc).
|
void |
setValue(String value)
The tag's value.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TagDescription |
withKey(String key)
The tag's key.
|
TagDescription |
withResourceId(String resourceId)
The resource ID for the tag.
|
TagDescription |
withResourceType(ResourceType resourceType)
The type of resource identified by the associated resource ID (ex:
instance, AMI, EBS volume, etc).
|
TagDescription |
withResourceType(String resourceType)
The type of resource identified by the associated resource ID (ex:
instance, AMI, EBS volume, etc).
|
TagDescription |
withValue(String value)
The tag's value.
|
public String getResourceId()
public void setResourceId(String resourceId)
resourceId - The resource ID for the tag.public TagDescription withResourceId(String resourceId)
Returns a reference to this object so that method calls can be chained together.
resourceId - The resource ID for the tag.public 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(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 identified by the associated resource ID (ex:
instance, AMI, EBS volume, etc).ResourceTypepublic TagDescription withResourceType(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 identified by the associated resource ID (ex:
instance, AMI, EBS volume, etc).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 identified by the associated resource ID (ex:
instance, AMI, EBS volume, etc).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 identified by the associated resource ID (ex:
instance, AMI, EBS volume, etc).ResourceTypepublic String getKey()
public void setKey(String key)
key - The tag's key.public TagDescription withKey(String key)
Returns a reference to this object so that method calls can be chained together.
key - The tag's key.public String getValue()
public void setValue(String value)
value - The tag's value.public TagDescription withValue(String value)
Returns a reference to this object so that method calls can be chained together.
value - The tag's value.public String toString()
toString in class ObjectObject.toString()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.