org.jclouds.vcloud.director.v1_5.domain.query
Class QueryResultRecordType

java.lang.Object
  extended by org.jclouds.vcloud.director.v1_5.domain.query.QueryResultRecordType
Direct Known Subclasses:
QueryResultAdminGroupRecord, QueryResultAdminUserRecord, QueryResultAdminVdcRecord, QueryResultCatalogRecord, QueryResultDatastoreRecord, QueryResultMediaRecord, QueryResultNetworkRecord, QueryResultRightRecord, QueryResultRoleRecord, QueryResultStrandedUserRecord, QueryResultVAppRecord, QueryResultVAppTemplateRecord, QueryResultVMRecord

public class QueryResultRecordType
extends Object

Base type for query result Records. Subtypes define more specific elements.

 <complexType name="QueryResultRecordType" />
 

Author:
grkvlt@apache.org

Nested Class Summary
static class QueryResultRecordType.Builder<B extends QueryResultRecordType.Builder<B>>
           
 
Constructor Summary
protected QueryResultRecordType()
           
protected QueryResultRecordType(QueryResultRecordType.Builder<?> builder)
           
  QueryResultRecordType(Set<Link> links, URI href, String id, String type)
           
  QueryResultRecordType(URI href)
           
 
Method Summary
static QueryResultRecordType.Builder<?> builder()
           
 boolean equals(Object o)
           
 URI getHref()
          Contains the URI to the entity.
 String getId()
          The resource identifier, expressed in URN format.
 Set<Link> getLinks()
          Set of optional links to an entity or operation associated with this object.
 String getType()
          Contains the type of the the entity.
 int hashCode()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 QueryResultRecordType.Builder<?> toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueryResultRecordType

protected QueryResultRecordType(QueryResultRecordType.Builder<?> builder)

QueryResultRecordType

public QueryResultRecordType(Set<Link> links,
                             URI href,
                             String id,
                             String type)

QueryResultRecordType

public QueryResultRecordType(URI href)

QueryResultRecordType

protected QueryResultRecordType()
Method Detail

builder

public static QueryResultRecordType.Builder<?> builder()

toBuilder

public QueryResultRecordType.Builder<?> toBuilder()

getLinks

public Set<Link> getLinks()
Set of optional links to an entity or operation associated with this object.


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

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.


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

equals

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

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-2014 The Apache Software Foundation. All Rights Reserved.