com.amazonaws.services.ec2.model
Class TagDescription

java.lang.Object
  extended by com.amazonaws.services.ec2.model.TagDescription

public class TagDescription
extends Object

Provides information about an Amazon EC2 resource Tag.


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

Constructor Detail

TagDescription

public TagDescription()
Method Detail

getResourceId

public String getResourceId()
The resource ID for the tag.

Returns:
The resource ID for the tag.

setResourceId

public void setResourceId(String resourceId)
The resource ID for the tag.

Parameters:
resourceId - The resource ID for the tag.

withResourceId

public TagDescription withResourceId(String resourceId)
The resource ID for the tag.

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

Parameters:
resourceId - The resource ID for the tag.
Returns:
A reference to this updated object so that method calls can be chained together.

getResourceType

public String getResourceType()
The type of resource identified by the associated resource ID (ex: instance, AMI, EBS volume, etc).

Constraints:
Allowed Values: customer-gateway, dhcp-options, image, instance, snapshot, spot-instances-request, subnet, volume, vpc, vpn-connection, vpn-gateway

Returns:
The type of resource identified by the associated resource ID (ex: instance, AMI, EBS volume, etc).
See Also:
ResourceType

setResourceType

public void setResourceType(String resourceType)
The type of resource identified by the associated resource ID (ex: instance, AMI, EBS volume, etc).

Constraints:
Allowed Values: customer-gateway, dhcp-options, image, instance, snapshot, spot-instances-request, subnet, volume, vpc, vpn-connection, vpn-gateway

Parameters:
resourceType - The type of resource identified by the associated resource ID (ex: instance, AMI, EBS volume, etc).
See Also:
ResourceType

withResourceType

public TagDescription withResourceType(String resourceType)
The type of resource identified by the associated resource ID (ex: instance, AMI, EBS volume, etc).

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

Constraints:
Allowed Values: customer-gateway, dhcp-options, image, instance, snapshot, spot-instances-request, subnet, volume, vpc, vpn-connection, vpn-gateway

Parameters:
resourceType - The type of resource identified by the associated resource ID (ex: instance, AMI, EBS volume, etc).
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 identified by the associated resource ID (ex: instance, AMI, EBS volume, etc).

Constraints:
Allowed Values: customer-gateway, dhcp-options, image, instance, snapshot, spot-instances-request, subnet, volume, vpc, vpn-connection, vpn-gateway

Parameters:
resourceType - The type of resource identified by the associated resource ID (ex: instance, AMI, EBS volume, etc).
See Also:
ResourceType

withResourceType

public TagDescription withResourceType(ResourceType resourceType)
The type of resource identified by the associated resource ID (ex: instance, AMI, EBS volume, etc).

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

Constraints:
Allowed Values: customer-gateway, dhcp-options, image, instance, snapshot, spot-instances-request, subnet, volume, vpc, vpn-connection, vpn-gateway

Parameters:
resourceType - The type of resource identified by the associated resource ID (ex: instance, AMI, EBS volume, etc).
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
ResourceType

getKey

public String getKey()
The tag's key.

Returns:
The tag's key.

setKey

public void setKey(String key)
The tag's key.

Parameters:
key - The tag's key.

withKey

public TagDescription withKey(String key)
The tag's key.

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

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

getValue

public String getValue()
The tag's value.

Returns:
The tag's value.

setValue

public void setValue(String value)
The tag's value.

Parameters:
value - The tag's value.

withValue

public TagDescription withValue(String value)
The tag's value.

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

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

toString

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

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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