org.jclouds.elasticstack.domain
Class Item

java.lang.Object
  extended by org.jclouds.elasticstack.domain.Item
Direct Known Subclasses:
Drive, Server

public class Item
extends Object

Author:
Adrian Cole

Nested Class Summary
static class Item.Builder
           
 
Field Summary
protected  String name
           
protected  Set<String> tags
           
protected  Map<String,String> userMetadata
           
protected  String uuid
           
 
Constructor Summary
Item(String uuid, String name, Iterable<String> tags, Map<String,String> userMetadata)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getName()
           
 Set<String> getTags()
           
 Map<String,String> getUserMetadata()
           
 String getUuid()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

uuid

@Nullable
protected final String uuid

name

protected final String name

tags

protected final Set<String> tags

userMetadata

protected final Map<String,String> userMetadata
Constructor Detail

Item

public Item(@Nullable
            String uuid,
            String name,
            Iterable<String> tags,
            Map<String,String> userMetadata)
Method Detail

getUuid

@Nullable
public String getUuid()
Returns:
uuid of the item.

getName

public String getName()
Returns:
name of the item

getTags

public Set<String> getTags()
Returns:
list of tags

getUserMetadata

public Map<String,String> getUserMetadata()
Returns:
user-defined KEY VALUE pairs

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


Copyright © 2009-2011 jclouds. All Rights Reserved.