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

java.lang.Object
  extended by org.jclouds.openstack.keystone.v2_0.domain.Tenant

public class Tenant
extends Object

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<T extends Tenant.Builder<T>>
           
 
Constructor Summary
protected Tenant(String id, String name, String description)
           
 
Method Summary
static Tenant.Builder<?> builder()
           
 boolean equals(Object obj)
           
 String getDescription()
           
 String getId()
          When providing an ID, it is assumed that the tenant exists in the current OpenStack deployment
 String getName()
           
 int hashCode()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 Tenant.Builder<?> toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Tenant

@ConstructorProperties(value={"id","name","description"})
protected Tenant(String id,
                                            String name,
                                            @Nullable
                                            String description)
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

getDescription

@Nullable
public String getDescription()
Returns:
the description of the tenant

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.Objects.ToStringHelper string()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.