org.jclouds.vcloud.director.v1_5.domain
Class Resource
java.lang.Object
org.jclouds.vcloud.director.v1_5.domain.Resource
- Direct Known Subclasses:
- ContainerType, Entity, Metadata, MetadataEntry, MetadataValue, OrgEmailSettings, OrgGeneralSettings, OrgLdapSettings, OrgLeaseSettings, OrgPasswordPolicySettings, OrgSettings, OrgVAppTemplateLeaseSettings, Owner, ProductSectionList, RasdItemsList, TasksList, VAppNetworkConfiguration, VmPendingQuestion
public class Resource
- extends Object
The base type for all objects in the vCloud model.
Has an optional list of links and href and type attributes.
<xs:complexType name="ResourceType" />
- Since:
- 0.9
- Author:
- Adrian Cole
logger
protected static Logger logger
Resource
protected Resource(Resource.Builder<?> builder)
Resource
protected Resource()
builder
public static Resource.Builder<?> builder()
toBuilder
public Resource.Builder<?> toBuilder()
getHref
public URI getHref()
- Contains the URI to the entity.
An object reference, expressed in URL format. Because this URL includes the object identifier
portion of the id attribute value, it uniquely identifies the object, persists for the life of
the object, and is never reused. The value of the href attribute is a reference to a view of
the object, and can be used to access a representation of the object that is valid in a
particular context. Although URLs have a well-known syntax and a well-understood
interpretation, a api should treat each href as an opaque string. The rules that govern how
the server constructs href strings might change in future releases.
- Returns:
- an opaque reference and should never be parsed
getType
public String getType()
- Contains the type of the the entity.
The object type, specified as a MIME content type, of the object that the link references.
This attribute is present only for links to objects. It is not present for links to actions.
- Returns:
- type definition, type, expressed as an HTTP Content-Type
getLinks
public Set<Link> getLinks()
- Set of optional links to an entity or operation associated with this object.
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
clone
public boolean clone(Object o)
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object
string
protected com.google.common.base.Objects.ToStringHelper string()
Copyright © 2009-2012 jclouds. All Rights Reserved.