Package com.ibm.cloud.cloudant.v1.model
Class UserContext
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.cloudant.v1.model.UserContext
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class UserContext extends com.ibm.cloud.sdk.core.service.model.GenericModelSchema for the user context of a session.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUserContext.BuilderBuilder.static interfaceUserContext.RolesSchema for a security role.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdb()Gets the db.Stringname()Gets the name.UserContext.BuildernewBuilder()New builder.List<String>roles()Gets the roles.
-
-
-
Method Detail
-
newBuilder
public UserContext.Builder newBuilder()
New builder.- Returns:
- a UserContext builder
-
db
public String db()
Gets the db. Database name in the context of the provided operation.- Returns:
- the db
-
name
public String name()
Gets the name. User name.- Returns:
- the name
-
-