Class Resource
- java.lang.Object
-
- org.jclouds.openstack.v2_0.domain.Resource
-
- All Implemented Interfaces:
Comparable<Resource>
- Direct Known Subclasses:
ApiMetadata,Extension,Flavor,Image,Image,Server,ServerCreated
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 classResource.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()intcompareTo(Resource that)booleanequals(Object obj)StringgetId()When providing an ID, it is assumed that the resource exists in the current OpenStack deploymentSet<Link>getLinks()StringgetName()inthashCode()protected com.google.common.base.MoreObjects.ToStringHelperstring()Resource.Builder<?>toBuilder()StringtoString()
-
-
-
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
@Nullable 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:
compareToin interfaceComparable<Resource>
-
-