Package com.dropbox.core.v2.team
Class MemberAddArgBase.Builder
- java.lang.Object
-
- com.dropbox.core.v2.team.MemberAddArgBase.Builder
-
- Direct Known Subclasses:
MemberAddArg.Builder
,MemberAddV2Arg.Builder
- Enclosing class:
- MemberAddArgBase
public static class MemberAddArgBase.Builder extends java.lang.Object
Builder forMemberAddArgBase
.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Boolean
isDirectoryRestricted
protected java.lang.String
memberEmail
protected java.lang.String
memberExternalId
protected java.lang.String
memberGivenName
protected java.lang.String
memberPersistentId
protected java.lang.String
memberSurname
protected boolean
sendWelcomeEmail
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder(java.lang.String memberEmail)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MemberAddArgBase
build()
Builds an instance ofMemberAddArgBase
configured with this builder's valuesMemberAddArgBase.Builder
withIsDirectoryRestricted(java.lang.Boolean isDirectoryRestricted)
Set value for optional field.MemberAddArgBase.Builder
withMemberExternalId(java.lang.String memberExternalId)
Set value for optional field.MemberAddArgBase.Builder
withMemberGivenName(java.lang.String memberGivenName)
Set value for optional field.MemberAddArgBase.Builder
withMemberPersistentId(java.lang.String memberPersistentId)
Set value for optional field.MemberAddArgBase.Builder
withMemberSurname(java.lang.String memberSurname)
Set value for optional field.MemberAddArgBase.Builder
withSendWelcomeEmail(java.lang.Boolean sendWelcomeEmail)
Set value for optional field.
-
-
-
Field Detail
-
memberEmail
protected final java.lang.String memberEmail
-
memberGivenName
protected java.lang.String memberGivenName
-
memberSurname
protected java.lang.String memberSurname
-
memberExternalId
protected java.lang.String memberExternalId
-
memberPersistentId
protected java.lang.String memberPersistentId
-
sendWelcomeEmail
protected boolean sendWelcomeEmail
-
isDirectoryRestricted
protected java.lang.Boolean isDirectoryRestricted
-
-
Method Detail
-
withMemberGivenName
public MemberAddArgBase.Builder withMemberGivenName(java.lang.String memberGivenName)
Set value for optional field.- Parameters:
memberGivenName
- Member's first name. 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.
-
withMemberSurname
public MemberAddArgBase.Builder withMemberSurname(java.lang.String memberSurname)
Set value for optional field.- Parameters:
memberSurname
- Member's last name. 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.
-
withMemberExternalId
public MemberAddArgBase.Builder withMemberExternalId(java.lang.String memberExternalId)
Set value for optional field.- Parameters:
memberExternalId
- 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.
-
withMemberPersistentId
public MemberAddArgBase.Builder withMemberPersistentId(java.lang.String memberPersistentId)
Set value for optional field.- Parameters:
memberPersistentId
- Persistent ID for member. This field is only available to teams using persistent ID SAML configuration.- Returns:
- this builder
-
withSendWelcomeEmail
public MemberAddArgBase.Builder withSendWelcomeEmail(java.lang.Boolean sendWelcomeEmail)
Set value for optional field.If left unset or set to
null
, defaults totrue
.- Parameters:
sendWelcomeEmail
- Whether to send a welcome email to the member. If send_welcome_email is false, no email invitation will be sent to the user. This may be useful for apps using single sign-on (SSO) flows for onboarding that want to handle announcements themselves. Defaults totrue
when set tonull
.- Returns:
- this builder
-
withIsDirectoryRestricted
public MemberAddArgBase.Builder withIsDirectoryRestricted(java.lang.Boolean isDirectoryRestricted)
Set value for optional field.- Parameters:
isDirectoryRestricted
- Whether a user is directory restricted.- Returns:
- this builder
-
build
public MemberAddArgBase build()
Builds an instance ofMemberAddArgBase
configured with this builder's values- Returns:
- new instance of
MemberAddArgBase
-
-