org.jclouds.googlecomputeengine.domain
Class Instance.Tags

java.lang.Object
  extended by org.jclouds.googlecomputeengine.domain.Instance.Tags
Enclosing class:
Instance

public static class Instance.Tags
extends Object

Tags for an instance, with their fingerprint.


Nested Class Summary
static class Instance.Tags.Builder
           
 
Constructor Summary
Instance.Tags(String fingerprint, Set<String> items)
           
 
Method Summary
static Instance.Tags.Builder builder()
           
 boolean equals(Object obj)
          
 String getFingerprint()
          Gets the fingerprint for the items - needed for updating them.
 Set<String> getItems()
          Used to identify valid sources or targets for network firewalls.
 int hashCode()
          
protected  com.google.common.base.Objects.ToStringHelper string()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Instance.Tags

@ConstructorProperties(value={"fingerprint","items"})
public Instance.Tags(String fingerprint,
                                                @Nullable
                                                Set<String> items)
Method Detail

getItems

public Set<String> getItems()
Used to identify valid sources or targets for network firewalls. Provided by the client when the instance is created. Each tag must be unique, must be 1-63 characters long, and comply with RFC1035.

Returns:
an optional set of items applied to this instance.

getFingerprint

public String getFingerprint()
Gets the fingerprint for the items - needed for updating them.

Returns:
the fingerprint string for the items.

hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

string

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


builder

public static Instance.Tags.Builder builder()

toString

public String toString()

Overrides:
toString in class Object


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