com.amazonaws.services.ec2.model
Class TagDescription

java.lang.Object
  extended by com.amazonaws.services.ec2.model.TagDescription
All Implemented Interfaces:
java.io.Serializable

public class TagDescription
extends java.lang.Object
implements java.io.Serializable

Describes a tag.

See Also:
Serialized Form

Constructor Summary
TagDescription()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TagDescription

public TagDescription()
Method Detail

getResourceId

public java.lang.String getResourceId()
The ID of the resource. For example, ami-1a2b3c4d.

Returns:
The ID of the resource. For example, ami-1a2b3c4d.

setResourceId

public void setResourceId(java.lang.String resourceId)
The ID of the resource. For example, ami-1a2b3c4d.

Parameters:
resourceId - The ID of the resource. For example, ami-1a2b3c4d.

withResourceId

public TagDescription withResourceId(java.lang.String resourceId)
The ID of the resource. For example, ami-1a2b3c4d.

Returns a reference to this object so that method calls can be chained together.

Parameters:
resourceId - The ID of the resource. For example, ami-1a2b3c4d.
Returns:
A reference to this updated object so that method calls can be chained together.

getResourceType

public java.lang.String getResourceType()
The type of resource.

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

Returns:
The type of resource.
See Also:
ResourceType

setResourceType

public void setResourceType(java.lang.String resourceType)
The type of resource.

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

Parameters:
resourceType - The type of resource.
See Also:
ResourceType

withResourceType

public TagDescription withResourceType(java.lang.String resourceType)
The type of resource.

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

Parameters:
resourceType - The type of resource.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
ResourceType

setResourceType

public void setResourceType(ResourceType resourceType)
The type of resource.

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

Parameters:
resourceType - The type of resource.
See Also:
ResourceType

withResourceType

public TagDescription withResourceType(ResourceType resourceType)
The type of resource.

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

Parameters:
resourceType - The type of resource.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
ResourceType

getKey

public java.lang.String getKey()
The key of the tag.

Returns:
The key of the tag.

setKey

public void setKey(java.lang.String key)
The key of the tag.

Parameters:
key - The key of the tag.

withKey

public TagDescription withKey(java.lang.String key)
The key of the tag.

Returns a reference to this object so that method calls can be chained together.

Parameters:
key - The key of the tag.
Returns:
A reference to this updated object so that method calls can be chained together.

getValue

public java.lang.String getValue()
The value of the tag.

Returns:
The value of the tag.

setValue

public void setValue(java.lang.String value)
The value of the tag.

Parameters:
value - The value of the tag.

withValue

public TagDescription withValue(java.lang.String value)
The value of the tag.

Returns a reference to this object so that method calls can be chained together.

Parameters:
value - The value of the tag.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.