public class TagDescription extends Object implements Serializable, Cloneable
Describes a tag.
Constructor and Description |
---|
TagDescription() |
Modifier and Type | Method and Description |
---|---|
TagDescription |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The tag key.
|
String |
getResourceId()
The ID of the resource.
|
String |
getResourceType()
The resource type.
|
String |
getValue()
The tag value.
|
int |
hashCode() |
void |
setKey(String key)
The tag key.
|
void |
setResourceId(String resourceId)
The ID of the resource.
|
void |
setResourceType(ResourceType resourceType)
The resource type.
|
void |
setResourceType(String resourceType)
The resource type.
|
void |
setValue(String value)
The tag value.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TagDescription |
withKey(String key)
The tag key.
|
TagDescription |
withResourceId(String resourceId)
The ID of the resource.
|
TagDescription |
withResourceType(ResourceType resourceType)
The resource type.
|
TagDescription |
withResourceType(String resourceType)
The resource type.
|
TagDescription |
withValue(String value)
The tag value.
|
public String getResourceId()
ami-1a2b3c4d
.ami-1a2b3c4d
.public void setResourceId(String resourceId)
ami-1a2b3c4d
.resourceId
- The ID of the resource. For example, ami-1a2b3c4d
.public TagDescription withResourceId(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 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
ResourceType
public 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 resource type.ResourceType
public 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 resource type.ResourceType
public 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 resource type.ResourceType
public 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 resource type.ResourceType
public String getKey()
public void setKey(String key)
key
- The tag key.public TagDescription withKey(String key)
Returns a reference to this object so that method calls can be chained together.
key
- The tag key.public String getValue()
public void setValue(String value)
value
- The tag value.public TagDescription withValue(String value)
Returns a reference to this object so that method calls can be chained together.
value
- The tag value.public String toString()
toString
in class Object
Object.toString()
public TagDescription clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.