Package io.lakefs.clients.api.model
Class UpdatePasswordByToken
- java.lang.Object
-
- io.lakefs.clients.api.model.UpdatePasswordByToken
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class UpdatePasswordByToken extends Object
UpdatePasswordByToken
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUpdatePasswordByToken.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_EMAILstatic StringSERIALIZED_NAME_NEW_PASSWORDstatic StringSERIALIZED_NAME_TOKEN
-
Constructor Summary
Constructors Constructor Description UpdatePasswordByToken()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdatePasswordByTokenemail(String email)booleanequals(Object o)static UpdatePasswordByTokenfromJson(String jsonString)Create an instance of UpdatePasswordByToken given an JSON stringStringgetEmail()optional user email to match the token for verificationStringgetNewPassword()new password to updateStringgetToken()token used for authenticationinthashCode()UpdatePasswordByTokennewPassword(String newPassword)voidsetEmail(String email)voidsetNewPassword(String newPassword)voidsetToken(String token)StringtoJson()Convert an instance of UpdatePasswordByToken to an JSON stringUpdatePasswordByTokentoken(String token)StringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_TOKEN
public static final String SERIALIZED_NAME_TOKEN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NEW_PASSWORD
public static final String SERIALIZED_NAME_NEW_PASSWORD
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EMAIL
public static final String SERIALIZED_NAME_EMAIL
- See Also:
- Constant Field Values
-
-
Method Detail
-
token
public UpdatePasswordByToken token(String token)
-
setToken
public void setToken(String token)
-
newPassword
public UpdatePasswordByToken newPassword(String newPassword)
-
setNewPassword
public void setNewPassword(String newPassword)
-
email
public UpdatePasswordByToken email(String email)
-
getEmail
@Nullable public String getEmail()
optional user email to match the token for verification- Returns:
-
setEmail
public void setEmail(String email)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates 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
-
-