Package com.smartsheet.api.models
Class Share.CreateUserShareBuilder
- java.lang.Object
-
- com.smartsheet.api.models.Share.CreateUserShareBuilder
-
- Enclosing class:
- Share
public static class Share.CreateUserShareBuilder extends java.lang.Object
A convenience class for creating aShare
with the necessary fields to create aShareType.USER
Share
. You must set one and only of of emailAddress and userId.
-
-
Constructor Summary
Constructors Constructor Description CreateUserShareBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Share
build()
Builds theShare
object.AccessLevel
getAccessLevel()
Gets the access leveljava.lang.String
getEmailAddress()
Gets the email address.Share.CreateUserShareBuilder
setAccessLevel(AccessLevel accessLevel)
Sets the access levelShare.CreateUserShareBuilder
setEmailAddress(java.lang.String emailAddress)
Email address for theShareType.USER
share.
-
-
-
Method Detail
-
setEmailAddress
public Share.CreateUserShareBuilder setEmailAddress(java.lang.String emailAddress)
Email address for theShareType.USER
share.- Parameters:
emailAddress
- the email address- Returns:
- the
Share.CreateUserShareBuilder
-
getEmailAddress
public java.lang.String getEmailAddress()
Gets the email address.- Returns:
- the email address
-
getAccessLevel
public AccessLevel getAccessLevel()
Gets the access level- Returns:
- the access level
-
setAccessLevel
public Share.CreateUserShareBuilder setAccessLevel(AccessLevel accessLevel)
Sets the access level- Parameters:
accessLevel
- the access level
-
-