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 classSecondaryEmail.SerializerFor internal use only.
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringemailprotected booleanisVerified
-
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 booleanequals(java.lang.Object obj)java.lang.StringgetEmail()Secondary email address.booleangetIsVerified()Whether or not the secondary email address is verified to be owned by a user.inthashCode()java.lang.StringtoString()java.lang.StringtoStringMultiline()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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin 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
-
-