org.jclouds.googlecomputeengine.domain
Class Metadata

java.lang.Object
  extended by org.jclouds.googlecomputeengine.domain.Metadata

public class Metadata
extends Object

Metadata for an instance or project, with their fingerprint.


Nested Class Summary
static class Metadata.Builder
           
 
Constructor Summary
Metadata(String fingerprint, Map<String,String> items)
           
 
Method Summary
static Metadata.Builder builder()
           
 boolean equals(Object obj)
          
 String getFingerprint()
          Gets the fingerprint for the items - needed for updating them.
 Map<String,String> getItems()
           
 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

Metadata

@ConstructorProperties(value={"fingerprint","items"})
public Metadata(@Nullable
                                           String fingerprint,
                                           @Nullable
                                           Map<String,String> items)
Method Detail

getItems

public Map<String,String> getItems()
Returns:
an optional map of metadata key/value pairs for this instance/project

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 Metadata.Builder builder()

toString

public String toString()

Overrides:
toString in class Object


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