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
See Also:
  • Constructor Details

  • Method Details

    • 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
    • getName

      @Nullable public String getName()
      Returns:
      the name of the resource
    • getLinks

      public Set<Link> getLinks()
      Returns:
      the links of the id address allocated to the new server
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

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

      protected com.google.common.base.MoreObjects.ToStringHelper string()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

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