Class Registration.Builder

  • Enclosing class:
    Registration

    public static final class Registration.Builder
    extends Object
    A builder to build a registration.
    • Method Detail

      • instructions

        public Registration.Builder instructions​(String instructions)
        Sets the instructions.
        Parameters:
        instructions - The instructions.
        Returns:
        The builder.
      • username

        public Registration.Builder username​(String username)
        Sets the username.
        Parameters:
        username - The username.
        Returns:
        The builder.
      • password

        public Registration.Builder password​(String password)
        Sets the password.
        Parameters:
        password - The password.
        Returns:
        The builder.
      • nickname

        public Registration.Builder nickname​(String nickname)
        Sets the nickname.
        Parameters:
        nickname - The nickname.
        Returns:
        The builder.
      • givenName

        public Registration.Builder givenName​(String givenName)
        Sets the given name.
        Parameters:
        givenName - The given name.
        Returns:
        The builder.
      • familyName

        public Registration.Builder familyName​(String familyName)
        Sets the family name.
        Parameters:
        familyName - The family name.
        Returns:
        The builder.
      • email

        public Registration.Builder email​(String email)
        Sets the email.
        Parameters:
        email - The email address.
        Returns:
        The builder.
      • street

        public Registration.Builder street​(String street)
        The street.
        Parameters:
        street - The street.
        Returns:
        The builder.
      • region

        public Registration.Builder region​(String region)
        Sets the region, e.g. state.
        Parameters:
        region - The region.
        Returns:
        The builder.
      • postalCode

        public Registration.Builder postalCode​(String postalCode)
        Sets the postal code.
        Parameters:
        postalCode - The postal code.
        Returns:
        The builder.
      • phone

        public Registration.Builder phone​(String phone)
        Sets the phone.
        Parameters:
        phone - The phone.
        Returns:
        The builder.
      • url

        public Registration.Builder url​(URL url)
        Sets the URL.
        Parameters:
        url - The URL.
        Returns:
        The builder.
      • date

        public Registration.Builder date​(String date)
        Sets the date, e.g. birth date.
        Parameters:
        date - The date.
        Returns:
        The builder.
      • registrationForm

        public Registration.Builder registrationForm​(DataForm dataForm)
        Sets the extended registration form.
        Parameters:
        dataForm - The data form.
        Returns:
        The builder.
      • webRegistration

        public Registration.Builder webRegistration​(URI uri)
        Sets the web registration URI.
        Parameters:
        uri - The uri.
        Returns:
        The builder.
      • registered

        public Registration.Builder registered​(boolean registered)
        Marks the registration as registered.
        Parameters:
        registered - True, if registered.
        Returns:
        The builder.
      • build

        public Registration build()
        Builds the registration.
        Returns:
        The builder.