Package com.dropbox.core.v2.team
Class MembersSetProfileV2Builder
- java.lang.Object
-
- com.dropbox.core.v2.team.MembersSetProfileV2Builder
-
public class MembersSetProfileV2Builder extends java.lang.Object
The request builder returned byDbxTeamTeamRequests.membersSetProfileV2Builder(com.dropbox.core.v2.team.UserSelectorArg)
.Use this class to set optional request parameters and complete the request.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TeamMemberInfoV2Result
start()
Issues the request.MembersSetProfileV2Builder
withNewEmail(java.lang.String newEmail)
Set value for optional field.MembersSetProfileV2Builder
withNewExternalId(java.lang.String newExternalId)
Set value for optional field.MembersSetProfileV2Builder
withNewGivenName(java.lang.String newGivenName)
Set value for optional field.MembersSetProfileV2Builder
withNewIsDirectoryRestricted(java.lang.Boolean newIsDirectoryRestricted)
Set value for optional field.MembersSetProfileV2Builder
withNewPersistentId(java.lang.String newPersistentId)
Set value for optional field.MembersSetProfileV2Builder
withNewSurname(java.lang.String newSurname)
Set value for optional field.
-
-
-
Method Detail
-
withNewEmail
public MembersSetProfileV2Builder withNewEmail(java.lang.String newEmail)
Set value for optional field.- Parameters:
newEmail
- New email for member. Must have length of at most 255 and match pattern "^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$
".- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
withNewExternalId
public MembersSetProfileV2Builder withNewExternalId(java.lang.String newExternalId)
Set value for optional field.- Parameters:
newExternalId
- New external ID for member. Must have length of at most 64.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
withNewGivenName
public MembersSetProfileV2Builder withNewGivenName(java.lang.String newGivenName)
Set value for optional field.- Parameters:
newGivenName
- New given name for member. Must have length of at most 100 and match pattern "[^/:?*<>\"|]*
".- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
withNewSurname
public MembersSetProfileV2Builder withNewSurname(java.lang.String newSurname)
Set value for optional field.- Parameters:
newSurname
- New surname for member. Must have length of at most 100 and match pattern "[^/:?*<>\"|]*
".- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
withNewPersistentId
public MembersSetProfileV2Builder withNewPersistentId(java.lang.String newPersistentId)
Set value for optional field.- Parameters:
newPersistentId
- New persistent ID. This field only available to teams using persistent ID SAML configuration.- Returns:
- this builder
-
withNewIsDirectoryRestricted
public MembersSetProfileV2Builder withNewIsDirectoryRestricted(java.lang.Boolean newIsDirectoryRestricted)
Set value for optional field.- Parameters:
newIsDirectoryRestricted
- New value for whether the user is a directory restricted user.- Returns:
- this builder
-
start
public TeamMemberInfoV2Result start() throws MembersSetProfileErrorException, DbxException
Issues the request.
-
-