Class User.UpdateUserBuilder
- Namespace
- Smartsheet.Api.Models
- Assembly
- smartsheet-csharp-sdk.dll
A convenience class for making a User object with the appropriate fields for updating a user.
public class User.UpdateUserBuilder
- Inheritance
-
User.UpdateUserBuilder
- Inherited Members
Constructors
UpdateUserBuilder(long?, bool?, bool?)
User object containing the required attributes:
public UpdateUserBuilder(long? id, bool? admin, bool? licensedSheetCreator)
Parameters
idlong?the user id
adminbool?admin (required)
licensedSheetCreatorbool?licensedSheetCreator (required)
Methods
Build()
Builds the User object using the required fields.
public User Build()
Returns
- User
the user
GetAdmin()
Gets the Admin.
public bool? GetAdmin()
Returns
- bool?
the Admin
GetFirstName()
Gets the user's first name.
public string GetFirstName()
Returns
- string
the firstName
GetIsInternal()
Gets the is internal.
public bool? GetIsInternal()
Returns
- bool?
the is internal
GetLastName()
Gets the user's last name.
public string GetLastName()
Returns
- string
the lastName
GetLicensedSheetCreator()
Gets the licensed sheet creator.
public bool? GetLicensedSheetCreator()
Returns
- bool?
the licensed sheet creator
GetPlanId()
Gets the plan ID.
public long? GetPlanId()
Returns
- long?
the plan ID
GetProvisionalExpirationDate()
Gets expiration date of the provisional seat type of the user.
public DateTime? GetProvisionalExpirationDate()
Returns
- DateTime?
the provisional expiration date
GetResourceViewer()
Gets the Flag indicating whether the user is a resource viewer (can access resource views).
public bool? GetResourceViewer()
Returns
- bool?
the resourceViewer
GetSeatType()
Gets the seat type.
public SeatType? GetSeatType()
Returns
- SeatType?
the seat type
GetSeatTypeLastChangedAt()
Gets the seat type last changed at.
public DateTime? GetSeatTypeLastChangedAt()
Returns
- DateTime?
the seat type last changed at
SetAdmin(bool?)
Sets the Admin flag which allows managing Users and accounts.
public User.UpdateUserBuilder SetAdmin(bool? admin)
Parameters
adminbool?the Admin
Returns
- User.UpdateUserBuilder
the UpdateUserBuilder
SetFirstName(string)
Sets the user's first name.
public User.UpdateUserBuilder SetFirstName(string firstName)
Parameters
firstNamestringthe firstName
Returns
- User.UpdateUserBuilder
the UpdateUserBuilder
SetIsInternal(bool?)
Sets the is internal.
public User.UpdateUserBuilder SetIsInternal(bool? isInternal)
Parameters
isInternalbool?the is internal
Returns
- User.UpdateUserBuilder
the UpdateUserBuilder
SetLastName(string)
Sets the user's last name.
public User.UpdateUserBuilder SetLastName(string lastName)
Parameters
lastNamestringthe lastName
Returns
- User.UpdateUserBuilder
the UpdateUserBuilder
SetLicensedSheetCreator(bool?)
Sets the licensed sheet creator flag that allows creating and owning Sheets.
public User.UpdateUserBuilder SetLicensedSheetCreator(bool? licensedSheetCreator)
Parameters
licensedSheetCreatorbool?the licensed sheet creator
Returns
- User.UpdateUserBuilder
the UpdateUserBuilder
SetPlanId(long?)
Sets the plan ID.
public User.UpdateUserBuilder SetPlanId(long? planId)
Parameters
planIdlong?the plan ID
Returns
- User.UpdateUserBuilder
the UpdateUserBuilder
SetProvisionalExpirationDate(DateTime?)
Sets the expiration date of the provisional seat type of the user.
public User.UpdateUserBuilder SetProvisionalExpirationDate(DateTime? provisionalExpirationDate)
Parameters
provisionalExpirationDateDateTime?the provisional expiration date
Returns
- User.UpdateUserBuilder
the UpdateUserBuilder
SetResourceViewer(bool?)
Sets the Flag indicating whether the user is a resource viewer (can access resource views)
public User.UpdateUserBuilder SetResourceViewer(bool? resourceViewer)
Parameters
resourceViewerbool?the resourceViewer
Returns
- User.UpdateUserBuilder
the UpdateUserBuilder
SetSeatType(SeatType?)
Sets the seat type.
public User.UpdateUserBuilder SetSeatType(SeatType? seatType)
Parameters
seatTypeSeatType?the seat type
Returns
- User.UpdateUserBuilder
the UpdateUserBuilder
SetSeatTypeLastChangedAt(DateTime?)
Sets the seat type last changed at.
public User.UpdateUserBuilder SetSeatTypeLastChangedAt(DateTime? seatTypeLastChangedAt)
Parameters
seatTypeLastChangedAtDateTime?the seat type last changed at
Returns
- User.UpdateUserBuilder
the UpdateUserBuilder