org.jclouds.openstack.keystone.v2_0.domain
Class Endpoint
java.lang.Object
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:
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
Endpoint
protected Endpoint(String versionId,
String region,
@Nullable
URI publicURL,
@Nullable
URI internalURL,
@Nullable
String tenantId)
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.