Class SecondaryEmail

java.lang.Object
com.dropbox.core.v2.secondaryemails.SecondaryEmail

public class SecondaryEmail extends Object
  • Field Details

    • email

      @Nonnull protected final String email
    • isVerified

      protected final boolean isVerified
  • Constructor Details

    • SecondaryEmail

      public SecondaryEmail(@Nonnull 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 be null.
      isVerified - Whether or not the secondary email address is verified to be owned by a user.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getEmail

      @Nonnull public 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 class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toStringMultiline

      public 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