Class UpdatePasswordByToken


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class UpdatePasswordByToken
    extends Object
    UpdatePasswordByToken
    • Constructor Detail

      • UpdatePasswordByToken

        public UpdatePasswordByToken()
    • Method Detail

      • getToken

        @Nonnull
        public String getToken()
        token used for authentication
        Returns:
        token
      • setToken

        public void setToken​(String token)
      • getNewPassword

        @Nonnull
        public String getNewPassword()
        new password to update
        Returns:
        newPassword
      • setNewPassword

        public void setNewPassword​(String newPassword)
      • getEmail

        @Nullable
        public String getEmail()
        optional user email to match the token for verification
        Returns:
        email
      • setEmail

        public void setEmail​(String email)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to UpdatePasswordByToken
      • fromJson

        public static UpdatePasswordByToken fromJson​(String jsonString)
                                              throws IOException
        Create an instance of UpdatePasswordByToken given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of UpdatePasswordByToken
        Throws:
        IOException - if the JSON string is invalid with respect to UpdatePasswordByToken
      • toJson

        public String toJson()
        Convert an instance of UpdatePasswordByToken to an JSON string
        Returns:
        JSON string