public class MemberAddArg
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MemberAddArg.Builder
Builder for
MemberAddArg . |
Modifier and Type | Field and 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 AdminTier |
role |
protected boolean |
sendWelcomeEmail |
Constructor and Description |
---|
MemberAddArg(java.lang.String memberEmail)
None
|
MemberAddArg(java.lang.String memberEmail,
java.lang.String memberGivenName,
java.lang.String memberSurname,
java.lang.String memberExternalId,
java.lang.String memberPersistentId,
boolean sendWelcomeEmail,
AdminTier role,
java.lang.Boolean isDirectoryRestricted)
Use
newBuilder to create instances of this class without
specifying values for all optional fields. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
getIsDirectoryRestricted()
Whether a user is directory restricted.
|
java.lang.String |
getMemberEmail() |
java.lang.String |
getMemberExternalId()
External ID for member.
|
java.lang.String |
getMemberGivenName()
Member's first name.
|
java.lang.String |
getMemberPersistentId()
Persistent ID for member.
|
java.lang.String |
getMemberSurname()
Member's last name.
|
AdminTier |
getRole() |
boolean |
getSendWelcomeEmail()
Whether to send a welcome email to the member.
|
int |
hashCode() |
static MemberAddArg.Builder |
newBuilder(java.lang.String memberEmail)
Returns a new builder for creating an instance of this class.
|
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final java.lang.String memberEmail
protected final java.lang.String memberGivenName
protected final java.lang.String memberSurname
protected final java.lang.String memberExternalId
protected final java.lang.String memberPersistentId
protected final boolean sendWelcomeEmail
protected final AdminTier role
protected final java.lang.Boolean isDirectoryRestricted
public MemberAddArg(java.lang.String memberEmail, java.lang.String memberGivenName, java.lang.String memberSurname, java.lang.String memberExternalId, java.lang.String memberPersistentId, boolean sendWelcomeEmail, AdminTier role, java.lang.Boolean isDirectoryRestricted)
newBuilder
to create instances of this class without
specifying values for all optional fields.memberEmail
- Must have length of at most 255, match pattern
"^['&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]\*\.[A-Za-z]{2,15}$
",
and not be null
.memberGivenName
- Member's first name. Must have length of at most
100 and match pattern "[^/:?*<>\"|]*
".memberSurname
- Member's last name. Must have length of at most 100
and match pattern "[^/:?*<>\"|]*
".memberExternalId
- External ID for member. Must have length of at
most 64.memberPersistentId
- Persistent ID for member. This field is only
available to teams using persistent ID SAML configuration.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.role
- Must not be null
.isDirectoryRestricted
- Whether a user is directory restricted.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public MemberAddArg(java.lang.String memberEmail)
The default values for unset fields will be used.
memberEmail
- Must have length of at most 255, match pattern
"^['&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]\*\.[A-Za-z]{2,15}$
",
and not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.lang.String getMemberEmail()
null
.public java.lang.String getMemberGivenName()
null
if not present.public java.lang.String getMemberSurname()
null
if not present.public java.lang.String getMemberExternalId()
null
if not present.public java.lang.String getMemberPersistentId()
null
if not present.public boolean getSendWelcomeEmail()
null
if not present. Defaults to
true.public AdminTier getRole()
null
if not present. Defaults to
AdminTier.MEMBER_ONLY.public java.lang.Boolean getIsDirectoryRestricted()
null
if not present.public static MemberAddArg.Builder newBuilder(java.lang.String memberEmail)
memberEmail
- Must have length of at most 255, match pattern
"^['&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]\*\.[A-Za-z]{2,15}$
",
and not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.