Class ResetPasswordBody
- java.lang.Object
-
- com.azure.resourcemanager.labservices.models.ResetPasswordBody
-
public final class ResetPasswordBody extends Object
Body of a reset password request.
-
-
Constructor Summary
Constructors Constructor Description ResetPasswordBody()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
password()
Get the password property: The password.String
username()
Get the username property: The user whose password is being reset.void
validate()
Validates the instance.ResetPasswordBody
withPassword(String password)
Set the password property: The password.ResetPasswordBody
withUsername(String username)
Set the username property: The user whose password is being reset.
-
-
-
Method Detail
-
username
public String username()
Get the username property: The user whose password is being reset.- Returns:
- the username value.
-
withUsername
public ResetPasswordBody withUsername(String username)
Set the username property: The user whose password is being reset.- Parameters:
username
- the username value to set.- Returns:
- the ResetPasswordBody object itself.
-
password
public String password()
Get the password property: The password.- Returns:
- the password value.
-
withPassword
public ResetPasswordBody withPassword(String password)
Set the password property: The password.- Parameters:
password
- the password value to set.- Returns:
- the ResetPasswordBody object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-