public static final class CompaniesAddUserRequest.Builder extends Object
| Modifier and Type | Method | Description |
|---|---|---|
Boolean |
admin() |
Get If the new user is an admin.
|
CompaniesAddUserRequest.Builder |
admin(Boolean value) |
Set If the new user is an admin.
|
CompaniesAddUserResponse |
call(String cid) |
Calls addUser method, Adds user to company.
|
String |
companyId() |
Get The company ID - should match the path.
|
CompaniesAddUserRequest.Builder |
companyId(String value) |
Set The company ID - should match the path.
|
String |
email() |
Get The email.
|
CompaniesAddUserRequest.Builder |
email(String value) |
Set The email.
|
Number[] |
globalPermissions() |
Get List of global permissions for the new user.
|
CompaniesAddUserRequest.Builder |
globalPermissions(Number[] value) |
Set List of global permissions for the new user.
|
Boolean |
guest() |
Get If the new user is a guest.
|
CompaniesAddUserRequest.Builder |
guest(Boolean value) |
Set If the new user is a guest.
|
Boolean |
light() |
Get If the new user is a light user.
|
CompaniesAddUserRequest.Builder |
light(Boolean value) |
Set If the new user is a light user.
|
Boolean |
sendEmail() |
Get If the new user should get an email.
|
CompaniesAddUserRequest.Builder |
sendEmail(Boolean value) |
Set If the new user should get an email.
|
public final String companyId()
public final CompaniesAddUserRequest.Builder companyId(String value)
value - The company ID - should match the path.public final String email()
public final CompaniesAddUserRequest.Builder email(String value)
value - The email.public final Boolean admin()
public final CompaniesAddUserRequest.Builder admin(Boolean value)
value - If the new user is an admin.public final Boolean guest()
public final CompaniesAddUserRequest.Builder guest(Boolean value)
value - If the new user is a guest.public final Boolean light()
public final CompaniesAddUserRequest.Builder light(Boolean value)
value - If the new user is a light user.public final Boolean sendEmail()
public final CompaniesAddUserRequest.Builder sendEmail(Boolean value)
value - If the new user should get an email.public final Number[] globalPermissions()
public final CompaniesAddUserRequest.Builder globalPermissions(Number[] value)
value - List of global permissions for the new user. OWNER=100, DELETE=90, RESHARE=80, WRITE=70, READ=60, LINK=50, COPY=30, EXPORT=20, COMMENT=10, ANONYMOUS_ACCESS=5.public final CompaniesAddUserResponse call(String cid) throws OnshapeException
cid - Company idOnshapeException - On HTTP or serialization errorCopyright © 2021. All rights reserved.