Package com.smartsheet.api.models
Class User.AddUserBuilder
- java.lang.Object
-
- com.smartsheet.api.models.User.AddUserBuilder
-
-
Constructor Summary
Constructors Constructor Description AddUserBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description User
build()
Builds theUser
object using the required fields.java.lang.Boolean
getAdmin()
Gets the admin.java.lang.String
getFirstName()
java.lang.Boolean
getGroupAdmin()
java.lang.String
getLastName()
java.lang.Boolean
getLicensedSheetCreator()
Gets the licensed sheet creator.java.lang.Boolean
getResourceViewer()
User.AddUserBuilder
setAdmin(java.lang.Boolean admin)
Sets the admin flag which allows managing users and accounts.User.AddUserBuilder
setEmail(java.lang.String email)
Sets the email for the user.User.AddUserBuilder
setFirstName(java.lang.String firstName)
User.AddUserBuilder
setGroupAdmin(java.lang.Boolean groupAdmin)
User.AddUserBuilder
setLastName(java.lang.String lastName)
User.AddUserBuilder
setLicensedSheetCreator(java.lang.Boolean licensedSheetCreator)
Sets the licensed sheet creator flag that allows creating and owning sheets.User.AddUserBuilder
setResourceViewer(java.lang.Boolean resourceViewer)
-
-
-
Method Detail
-
setAdmin
public User.AddUserBuilder setAdmin(java.lang.Boolean admin)
Sets the admin flag which allows managing users and accounts.- Parameters:
admin
- the admin- Returns:
- the adds the user builder
-
setLicensedSheetCreator
public User.AddUserBuilder setLicensedSheetCreator(java.lang.Boolean licensedSheetCreator)
Sets the licensed sheet creator flag that allows creating and owning sheets.- Parameters:
licensedSheetCreator
- the licensed sheet creator- Returns:
- the adds the user builder
-
setEmail
public User.AddUserBuilder setEmail(java.lang.String email)
Sets the email for the user.- Parameters:
email
- the email- Returns:
- the adds the user builder
-
getAdmin
public java.lang.Boolean getAdmin()
Gets the admin.- Returns:
- the admin
-
getLicensedSheetCreator
public java.lang.Boolean getLicensedSheetCreator()
Gets the licensed sheet creator.- Returns:
- the licensed sheet creator
-
getFirstName
public java.lang.String getFirstName()
- Returns:
- the firstName
-
setFirstName
public User.AddUserBuilder setFirstName(java.lang.String firstName)
- Parameters:
firstName
- the firstName to set- Returns:
- the builder
-
getLastName
public java.lang.String getLastName()
- Returns:
- the lastName
-
setLastName
public User.AddUserBuilder setLastName(java.lang.String lastName)
- Parameters:
lastName
- the lastName to set- Returns:
- the builder
-
getGroupAdmin
public java.lang.Boolean getGroupAdmin()
- Returns:
- the groupAdmin
-
setGroupAdmin
public User.AddUserBuilder setGroupAdmin(java.lang.Boolean groupAdmin)
- Parameters:
groupAdmin
- the groupAdmin to set- Returns:
- the builder
-
getResourceViewer
public java.lang.Boolean getResourceViewer()
- Returns:
- the resourceViewer
-
setResourceViewer
public User.AddUserBuilder setResourceViewer(java.lang.Boolean resourceViewer)
- Parameters:
resourceViewer
- the resourceViewer to set- Returns:
- the builder
-
-