Class SecondaryEmail
- java.lang.Object
-
- com.dropbox.core.v2.secondaryemails.SecondaryEmail
-
public class SecondaryEmail extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SecondaryEmail.Serializer
For internal use only.
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
email
protected boolean
isVerified
-
Constructor Summary
Constructors Constructor Description SecondaryEmail(java.lang.String email, boolean isVerified)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getEmail()
Secondary email address.boolean
getIsVerified()
Whether or not the secondary email address is verified to be owned by a user.int
hashCode()
java.lang.String
toString()
java.lang.String
toStringMultiline()
Returns a String representation of this object formatted for easier readability.
-
-
-
Constructor Detail
-
SecondaryEmail
public SecondaryEmail(@Nonnull java.lang.String email, boolean isVerified)
- Parameters:
email
- Secondary email address. 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 benull
.isVerified
- Whether or not the secondary email address is verified to be owned by a user.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
-
Method Detail
-
getEmail
@Nonnull public java.lang.String getEmail()
Secondary email address.- Returns:
- value for this field, never
null
.
-
getIsVerified
public boolean getIsVerified()
Whether or not the secondary email address is verified to be owned by a user.- Returns:
- value for this field.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toStringMultiline
public java.lang.String toStringMultiline()
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Returns:
- Formatted, multiline String representation of this object
-
-