Package com.dropbox.core.v2.team
Class MemberAddV2Arg.Builder
- java.lang.Object
-
- com.dropbox.core.v2.team.MemberAddArgBase.Builder
-
- com.dropbox.core.v2.team.MemberAddV2Arg.Builder
-
- Enclosing class:
- MemberAddV2Arg
public static class MemberAddV2Arg.Builder extends MemberAddArgBase.Builder
Builder forMemberAddV2Arg
.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.lang.String>
roleIds
-
Fields inherited from class com.dropbox.core.v2.team.MemberAddArgBase.Builder
isDirectoryRestricted, memberEmail, memberExternalId, memberGivenName, memberPersistentId, memberSurname, 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 MemberAddV2Arg
build()
Builds an instance ofMemberAddV2Arg
configured with this builder's valuesMemberAddV2Arg.Builder
withIsDirectoryRestricted(java.lang.Boolean isDirectoryRestricted)
Set value for optional field.MemberAddV2Arg.Builder
withMemberExternalId(java.lang.String memberExternalId)
Set value for optional field.MemberAddV2Arg.Builder
withMemberGivenName(java.lang.String memberGivenName)
Set value for optional field.MemberAddV2Arg.Builder
withMemberPersistentId(java.lang.String memberPersistentId)
Set value for optional field.MemberAddV2Arg.Builder
withMemberSurname(java.lang.String memberSurname)
Set value for optional field.MemberAddV2Arg.Builder
withRoleIds(java.util.List<java.lang.String> roleIds)
Set value for optional field.MemberAddV2Arg.Builder
withSendWelcomeEmail(java.lang.Boolean sendWelcomeEmail)
Set value for optional field.
-
-
-
Method Detail
-
withRoleIds
public MemberAddV2Arg.Builder withRoleIds(java.util.List<java.lang.String> roleIds)
Set value for optional field.- Parameters:
roleIds
- Must contain at most 1 items and not contain anull
item.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
withMemberGivenName
public MemberAddV2Arg.Builder withMemberGivenName(java.lang.String memberGivenName)
Set value for optional field.- Overrides:
withMemberGivenName
in classMemberAddArgBase.Builder
- 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 MemberAddV2Arg.Builder withMemberSurname(java.lang.String memberSurname)
Set value for optional field.- Overrides:
withMemberSurname
in classMemberAddArgBase.Builder
- 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 MemberAddV2Arg.Builder withMemberExternalId(java.lang.String memberExternalId)
Set value for optional field.- Overrides:
withMemberExternalId
in classMemberAddArgBase.Builder
- 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 MemberAddV2Arg.Builder withMemberPersistentId(java.lang.String memberPersistentId)
Set value for optional field.- Overrides:
withMemberPersistentId
in classMemberAddArgBase.Builder
- Parameters:
memberPersistentId
- Persistent ID for member. This field is only available to teams using persistent ID SAML configuration.- Returns:
- this builder
-
withSendWelcomeEmail
public MemberAddV2Arg.Builder withSendWelcomeEmail(java.lang.Boolean sendWelcomeEmail)
Set value for optional field.If left unset or set to
null
, defaults totrue
.- Overrides:
withSendWelcomeEmail
in classMemberAddArgBase.Builder
- 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 MemberAddV2Arg.Builder withIsDirectoryRestricted(java.lang.Boolean isDirectoryRestricted)
Set value for optional field.- Overrides:
withIsDirectoryRestricted
in classMemberAddArgBase.Builder
- Parameters:
isDirectoryRestricted
- Whether a user is directory restricted.- Returns:
- this builder
-
build
public MemberAddV2Arg build()
Builds an instance ofMemberAddV2Arg
configured with this builder's values- Overrides:
build
in classMemberAddArgBase.Builder
- Returns:
- new instance of
MemberAddV2Arg
-
-