Package com.ibm.cloud.cloudant.v1.model
Class SecurityObject.Builder
java.lang.Object
com.ibm.cloud.cloudant.v1.model.SecurityObject.Builder
- Enclosing class:
- SecurityObject
Builder.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds an names to names.Adds an roles to roles.build()
Builds a SecurityObject.Set the names.Set the roles.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder.
-
-
Method Details
-
build
Builds a SecurityObject.- Returns:
- the new SecurityObject instance
-
addNames
Adds an names to names.- Parameters:
names
- the new names- Returns:
- the SecurityObject builder
-
addRoles
Adds an roles to roles.- Parameters:
roles
- the new roles- Returns:
- the SecurityObject builder
-
names
Set the names. Existing names will be replaced.- Parameters:
names
- the names- Returns:
- the SecurityObject builder
-
roles
Set the roles. Existing roles will be replaced.- Parameters:
roles
- the roles- Returns:
- the SecurityObject builder
-