org.jclouds.ec2.domain
Class Tag

java.lang.Object
  extended by org.jclouds.ec2.domain.Tag

public class Tag
extends Object

To help you manage your Amazon EC2 instances, images, and other Amazon EC2 resources, you can assign your own metadata to each resource in the form of tags.

See Also:
doc

Nested Class Summary
static class Tag.Builder
           
static interface Tag.ResourceType
          Describes the well-known resource types that can be tagged.
 
Field Summary
protected  String key
           
protected  String resourceId
           
protected  String resourceType
           
protected  com.google.common.base.Optional<String> value
           
 
Constructor Summary
protected Tag(String resourceId, String resourceType, String key, com.google.common.base.Optional<String> value)
           
 
Method Summary
static Tag.Builder builder()
           
 boolean equals(Object obj)
          
 String getKey()
          The tag key.
 String getResourceId()
          The resource ID ex.
 String getResourceType()
          The resource type.
 com.google.common.base.Optional<String> getValue()
          The tag value.
 int hashCode()
          
protected  com.google.common.base.Objects.ToStringHelper string()
           
 Tag.Builder toBuilder()
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

resourceId

protected final String resourceId

resourceType

protected final String resourceType

key

protected final String key

value

protected final com.google.common.base.Optional<String> value
Constructor Detail

Tag

protected Tag(String resourceId,
              String resourceType,
              String key,
              com.google.common.base.Optional<String> value)
Method Detail

builder

public static Tag.Builder builder()

toBuilder

public Tag.Builder toBuilder()

getResourceId

public String getResourceId()
The resource ID ex. i-erf235


getResourceType

public String getResourceType()
The resource type. ex. customer-gateway, dhcp-options, image, instance, internet-gateway, network-acl, reserved-instances, route-table, security-group, snapshot, spot-instances-request, subnet, volume, vpc, vpn-connection, vpn-gateway


getKey

public String getKey()
The tag key.


getValue

public com.google.common.base.Optional<String> getValue()
The tag value.


hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

toString

public String toString()

Overrides:
toString in class Object

string

protected com.google.common.base.Objects.ToStringHelper string()


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.