Class KeystoneTenant
- java.lang.Object
-
- org.openstack4j.openstack.identity.v2.domain.KeystoneTenant
-
- All Implemented Interfaces:
Serializable,Buildable<TenantBuilder>,Tenant,ModelEntity
public class KeystoneTenant extends Object implements Tenant
Tenant Model class use to group/isolate resources and/or identity objects- Author:
- Jeremy Unruh
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKeystoneTenant.BackwardsCompatTenantsUsed for backwards compatibility in fetching a Tenant By Name.static classKeystoneTenant.TenantConcreteBuilderstatic classKeystoneTenant.Tenants-
Nested classes/interfaces inherited from interface org.openstack4j.common.Buildable
Buildable.Builder<T extends Buildable.Builder<T,M>,M extends Buildable<?>>
-
-
Constructor Summary
Constructors Constructor Description KeystoneTenant()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddUser(String userId, String roleId)static TenantBuilderbuilder()voiddelete()booleanequals(Object obj)StringgetDescription()StringgetId()By providing an ID it is assumed this object will be mapped to an existing TenantStringgetName()inthashCode()booleanisEnabled()voidremoveUser(String userId, String roleId)voidsetEnabled(Boolean enabled)Sets the enabled.TenantBuildertoBuilder()StringtoString()voidupdate()
-
-
-
Method Detail
-
builder
public static TenantBuilder builder()
- Returns:
- the Tenant builder
-
toBuilder
public TenantBuilder toBuilder()
- Specified by:
toBuilderin interfaceBuildable<TenantBuilder>
-
getId
public String getId()
By providing an ID it is assumed this object will be mapped to an existing Tenant
-
getName
public String getName()
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceTenant- Returns:
- the description of the tenant
-
isEnabled
public boolean isEnabled()
-
setEnabled
public void setEnabled(Boolean enabled)
Sets the enabled.- Parameters:
enabled- the new enabled
-
removeUser
public void removeUser(String userId, String roleId)
- Specified by:
removeUserin interfaceTenant
-
-