org.jclouds.openstack.keystone.v2_0.domain
Class Tenant
java.lang.Object
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:
id
protected final String id
name
protected final String name
Tenant
public Tenant(String id,
String name)
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.