org.jclouds.openstack.keystone.v2_0.domain
Class Endpoint

java.lang.Object
  extended by org.jclouds.openstack.keystone.v2_0.domain.Endpoint
All Implemented Interfaces:
Comparable<Endpoint>

public class Endpoint
extends Object
implements Comparable<Endpoint>

An network-accessible address, usually described by URL, where a service may be accessed. If using an extension for templates, you can create an endpoint template, which represents the templates of all the consumable services that are available across the regions.

Author:
AdrianCole
See Also:

Nested Class Summary
static class Endpoint.Builder
           
 
Field Summary
protected  String id
          Deprecated. 
protected  URI internalURL
           
protected  URI publicURL
           
protected  String region
           
protected  String tenantId
           
protected  String tenantName
          Deprecated. 
protected  String versionId
           
 
Constructor Summary
protected Endpoint(String versionId, String region, URI publicURL, URI internalURL, String tenantId)
           
 
Method Summary
static Endpoint.Builder builder()
           
 int compareTo(Endpoint that)
           
 boolean equals(Object object)
           
 URI getInternalURL()
           
 URI getPublicURL()
           
 String getRegion()
           
 String getTenantId()
           
 String getVersionId()
          When provversionIding an ID, it is assumed that the endpoint exists in the current OpenStack deployment
 int hashCode()
           
 Endpoint.Builder toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

id

@Deprecated
protected String id
Deprecated. 

versionId

protected final String versionId

region

protected final String region

publicURL

protected final URI publicURL

internalURL

protected final URI internalURL

tenantName

@Deprecated
protected String tenantName
Deprecated. 

tenantId

protected final String tenantId
Constructor Detail

Endpoint

protected Endpoint(String versionId,
                   String region,
                   @Nullable
                   URI publicURL,
                   @Nullable
                   URI internalURL,
                   @Nullable
                   String tenantId)
Method Detail

builder

public static Endpoint.Builder builder()

toBuilder

public Endpoint.Builder toBuilder()

getVersionId

public String getVersionId()
When provversionIding an ID, it is assumed that the endpoint exists in the current OpenStack deployment

Returns:
the versionId of the endpoint in the current OpenStack deployment

getRegion

public String getRegion()
Returns:
the region of the endpoint

getPublicURL

@Nullable
public URI getPublicURL()
Returns:
the public url of the endpoint

getInternalURL

@Nullable
public URI getInternalURL()
Returns:
the internal url of the endpoint

getTenantId

@Nullable
public String getTenantId()
Returns:
the tenant versionId of the endpoint or null

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

compareTo

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


Copyright © 2009-2012 jclouds. All Rights Reserved.