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

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

public class Tenant
extends Object
implements Comparable<Tenant>

A container used to group or isolate resources and/or identity objects. Depending on the service operator, a tenant may map to a customer, account, organization, or project.

Author:
Adrian Cole
See Also:

Nested Class Summary
static class Tenant.Builder
           
 
Field Summary
protected  String id
           
protected  String name
           
 
Constructor Summary
Tenant(String id, String name)
           
 
Method Summary
static Tenant.Builder builder()
           
 int compareTo(Tenant that)
           
 boolean equals(Object object)
           
 String getId()
          When providing an ID, it is assumed that the tenant exists in the current OpenStack deployment
 String getName()
           
 int hashCode()
           
 Tenant.Builder toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

id

protected final String id

name

protected final String name
Constructor Detail

Tenant

public Tenant(String id,
              String name)
Method Detail

builder

public static Tenant.Builder builder()

toBuilder

public Tenant.Builder toBuilder()

getId

public String getId()
When providing an ID, it is assumed that the tenant exists in the current OpenStack deployment

Returns:
the id of the tenant in the current OpenStack deployment

getName

public String getName()
Returns:
the name of the tenant

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(Tenant that)
Specified by:
compareTo in interface Comparable<Tenant>


Copyright © 2009-2012 jclouds. All Rights Reserved.