Package com.ibm.cloud.cloudant.v1.model
Class UserContext.Builder
java.lang.Object
com.ibm.cloud.cloudant.v1.model.UserContext.Builder
- Enclosing class:
 UserContext
Builder.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionAdds a new element to roles.build()Builds a UserContext.Set the db.Set the name.Set the roles. 
- 
Constructor Details
- 
Builder
public Builder()Instantiates a new builder. - 
Builder
Instantiates a new builder with required properties.- Parameters:
 name- the nameroles- the roles
 
 - 
 - 
Method Details
- 
build
Builds a UserContext.- Returns:
 - the new UserContext instance
 
 - 
addRoles
Adds a new element to roles.- Parameters:
 roles- the new element to be added- Returns:
 - the UserContext builder
 
 - 
db
Set the db.- Parameters:
 db- the db- Returns:
 - the UserContext builder
 
 - 
name
Set the name.- Parameters:
 name- the name- Returns:
 - the UserContext builder
 
 - 
roles
Set the roles. Existing roles will be replaced.- Parameters:
 roles- the roles- Returns:
 - the UserContext builder
 
 
 -