org.jclouds.vcloud.director.v1_5.domain
Class Entity

java.lang.Object
  extended by org.jclouds.vcloud.director.v1_5.domain.Resource
      extended by org.jclouds.vcloud.director.v1_5.domain.Entity
Direct Known Subclasses:
Catalog, CatalogItem, File, Group, Network, Org, ResourceEntity, Task, User, Vdc

public class Entity
extends Resource

Basic entity type in the vCloud object model. Includes the entity name and an optional id, description, and set of running Tasks.

 <xs:complexType name="EntityType" />
 

Author:
grkvlt@apache.org, Adam Lowe

Nested Class Summary
static class Entity.Builder<B extends Entity.Builder<B>>
           
 
Field Summary
 
Fields inherited from class org.jclouds.vcloud.director.v1_5.domain.Resource
logger
 
Constructor Summary
protected Entity()
           
protected Entity(Entity.Builder<?> builder)
           
 
Method Summary
static Entity.Builder<?> builder()
           
 boolean clone(Object o)
           
 boolean equals(Object o)
           
 String getDescription()
          Optional description.
 String getId()
          The resource identifier, expressed in URN format.
 String getName()
          Contains the name of the the entity.
 List<Task> getTasks()
          A list of queued, running, or recently completed tasks associated with this entity.
 int hashCode()
           
 void setDescription(String description)
           
 void setName(String name)
           
 com.google.common.base.Objects.ToStringHelper string()
           
 Entity.Builder<?> toBuilder()
           
 
Methods inherited from class org.jclouds.vcloud.director.v1_5.domain.Resource
getHref, getLinks, getType, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Entity

protected Entity(Entity.Builder<?> builder)

Entity

protected Entity()
Method Detail

builder

public static Entity.Builder<?> builder()

toBuilder

public Entity.Builder<?> toBuilder()
Overrides:
toBuilder in class Resource

getDescription

public String getDescription()
Optional description.


setDescription

public void setDescription(String description)

getTasks

public List<Task> getTasks()
A list of queued, running, or recently completed tasks associated with this entity.


getId

public String getId()
The resource identifier, expressed in URN format. The value of this attribute uniquely identifies the resource, persists for the life of the resource, and is never reused.


getName

public String getName()
Contains the name of the the entity.


setName

public void setName(String name)

equals

public boolean equals(Object o)
Overrides:
equals in class Resource

clone

public boolean clone(Object o)
Overrides:
clone in class Resource

hashCode

public int hashCode()
Overrides:
hashCode in class Resource

string

public com.google.common.base.Objects.ToStringHelper string()
Overrides:
string in class Resource


Copyright © 2009-2012 jclouds. All Rights Reserved.