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.GenericModel
Schema for the user context of a session.
  • Method Details

    • 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
    • roles

      public List<String> roles()
      Gets the roles. List of user roles.
      Returns:
      the roles