org.jclouds.savvis.vpdc.domain
Class ResourceImpl

java.lang.Object
  extended by org.jclouds.savvis.vpdc.domain.ResourceImpl
All Implemented Interfaces:
Comparable<Resource>, Resource
Direct Known Subclasses:
FirewallRule, FirewallService, Link, Network, Org, Task, VDC

public class ResourceImpl
extends Object
implements Resource

Location of a Rest resource

Author:
Adrian Cole

Nested Class Summary
static class ResourceImpl.Builder
           
 
Field Summary
protected  URI href
           
protected  String id
           
protected  String name
           
protected  String type
           
 
Constructor Summary
ResourceImpl(String id, String name, String type, URI href)
           
 
Method Summary
static ResourceImpl.Builder builder()
           
 int compareTo(Resource that)
           
 boolean equals(Object obj)
           
 URI getHref()
           
 String getId()
           
 String getName()
           
 String getType()
           
 int hashCode()
           
 ResourceImpl.Builder toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

id

protected final String id

name

protected final String name

type

protected final String type

href

protected final URI href
Constructor Detail

ResourceImpl

public ResourceImpl(String id,
                    String name,
                    String type,
                    URI href)
Method Detail

builder

public static ResourceImpl.Builder builder()

getId

public String getId()
Specified by:
getId in interface Resource

getName

public String getName()
Specified by:
getName in interface Resource

getType

public String getType()
Specified by:
getType in interface Resource

getHref

public URI getHref()
Specified by:
getHref in interface Resource

compareTo

public int compareTo(Resource that)
Specified by:
compareTo in interface Comparable<Resource>
Specified by:
compareTo in interface Resource

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toBuilder

public ResourceImpl.Builder toBuilder()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012 jclouds. All Rights Reserved.