Class ProfileFields.Builder

  • Enclosing class:
    ProfileFields

    public static class ProfileFields.Builder
    extends java.lang.Object
    Builder class for ProfileFields
    • Method Detail

      • createQueryParams

        protected ProfileFields createQueryParams()
        Instantiates the implementation class
        Returns:
        implementation class of BaseParams.BaseBuilder
      • setPassword

        public ProfileFields.Builder setPassword​(@Nullable
                                                 java.lang.String password)
        Sets the value of the parameter field password
        Parameters:
        password - password of the user to be used in changing password
        Returns:
        instance of ProfileFields.Builder
      • setCurrentPassword

        public ProfileFields.Builder setCurrentPassword​(@Nullable
                                                        java.lang.String currentPassword)
        Sets the value of the parameter field current_password
        Parameters:
        currentPassword - the current password of the user
        Returns:
        instance of ProfileFields.Builder
      • setConfirmPassword

        public ProfileFields.Builder setConfirmPassword​(@Nullable
                                                        java.lang.String confirmPassword)
        Sets the value of the parameter field confirm_password
        Parameters:
        confirmPassword - to be used to confirm password in change password
        Returns:
        instance of ProfileFields.Builder
      • setUID

        public ProfileFields.Builder setUID​(@Nullable
                                            java.lang.String uid)
        Sets the value of the parameter field uid
        Parameters:
        uid - the id of the third party identity
        Returns:
        instance of ProfileFields.Builder
      • setToken

        public ProfileFields.Builder setToken​(@Nullable
                                              java.lang.String token)
        Sets the value of the parameter field token
        Parameters:
        token - authenticated token from the 3rd party identity
        Returns:
        instance of ProfileFields.Builder
      • setProfileChanges

        public ProfileFields.Builder setProfileChanges​(@Nullable
                                                       java.util.Map<java.lang.String,​java.lang.String> changes)
        Sets the value of the changes in the profile for Update Profile API
        Parameters:
        changes - Map of key - String, value - String
        Returns:
        instance of ProfileFields.Builder
      • build

        public ProfileFields build()
        Returns:
        the built parameter class