Class Metadata

java.lang.Object
org.jclouds.googlecomputeengine.domain.Metadata
All Implemented Interfaces:
Cloneable

public abstract class Metadata extends Object implements Cloneable
Metadata for an instance or project, with their fingerprint.

This object is mutable and not thread-safe.

  • Method Details

    • fingerprint

      @Nullable public abstract String fingerprint()
      The fingerprint for the items - needed for updating them.
    • put

      public Metadata put(String key, String value)
      Adds or replaces a metadata entry.
    • putAll

      public Metadata putAll(Map<String,String> input)
      Adds or replaces metadata entries.
    • remove

      public Metadata remove(String key)
      Removes any entry with the supplied key.
    • asMap

      public Map<String,String> asMap()
      Copies the metadata into a new mutable map.
    • get

      @Nullable public String get(String key)
      Returns the value with the supplied key, or null.
    • containsKey

      public boolean containsKey(String key)
    • size

      public int size()
    • create

      public static Metadata create()
    • create

      public static Metadata create(String fingerprint)
    • clone

      public Metadata clone()
      Overrides:
      clone in class Object