Package org.jclouds.openstack.domain
Class Resource
- java.lang.Object
-
- org.jclouds.openstack.domain.Resource
-
- All Implemented Interfaces:
Comparable<Resource>
public class Resource extends Object implements Comparable<Resource>
Resource found in a paginated collection
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Resource.Builder<T extends Resource.Builder<T>>
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Resource.Builder<?>
builder()
int
compareTo(Resource that)
boolean
equals(Object obj)
String
getId()
When providing an ID, it is assumed that the resource exists in the current OpenStack deploymentSet<Link>
getLinks()
String
getName()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
Resource.Builder<?>
toBuilder()
String
toString()
-
-
-
Method Detail
-
builder
public static Resource.Builder<?> builder()
-
toBuilder
public Resource.Builder<?> toBuilder()
-
getId
public String getId()
When providing an ID, it is assumed that the resource exists in the current OpenStack deployment- Returns:
- the id of the resource in the current OpenStack deployment
-
getLinks
public Set<Link> getLinks()
- Returns:
- the links of the id address allocated to the new server
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
compareTo
public int compareTo(Resource that)
- Specified by:
compareTo
in interfaceComparable<Resource>
-
-