org.jclouds.savvis.vpdc.domain
Class ResourceImpl
java.lang.Object
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
id
protected final String id
name
protected final String name
type
protected final String type
href
protected final URI href
ResourceImpl
public ResourceImpl(String id,
String name,
String type,
URI href)
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.