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
-
Method Summary
Modifier and TypeMethodDescriptionAdds a new element to names.Adds a new element 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 a new element to names.- Parameters:
names
- the new element to be added- Returns:
- the SecurityObject builder
-
addRoles
Adds a new element to roles.- Parameters:
roles
- the new element to be added- 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
-