Class UserDetail


  • public final class UserDetail
    extends Object
    Subscriber detail.
    • Constructor Detail

      • UserDetail

        public UserDetail()
    • Method Detail

      • firstName

        public String firstName()
        Get the firstName property: First name.
        Returns:
        the firstName value.
      • withFirstName

        public UserDetail withFirstName​(String firstName)
        Set the firstName property: First name.
        Parameters:
        firstName - the firstName value to set.
        Returns:
        the UserDetail object itself.
      • lastName

        public String lastName()
        Get the lastName property: Last name.
        Returns:
        the lastName value.
      • withLastName

        public UserDetail withLastName​(String lastName)
        Set the lastName property: Last name.
        Parameters:
        lastName - the lastName value to set.
        Returns:
        the UserDetail object itself.
      • emailAddress

        public String emailAddress()
        Get the emailAddress property: Email address.
        Returns:
        the emailAddress value.
      • withEmailAddress

        public UserDetail withEmailAddress​(String emailAddress)
        Set the emailAddress property: Email address.
        Parameters:
        emailAddress - the emailAddress value to set.
        Returns:
        the UserDetail object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.