com.docusign.esign.model.UserPasswordInformation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docusign-esign-java Show documentation
Show all versions of docusign-esign-java Show documentation
The official Docusign eSignature JAVA client is based on version 2.1 of the Docusign REST API and provides libraries for JAVA application integration. It is recommended that you use this version of the library for new development.
package com.docusign.esign.model;
import java.util.Objects;
import java.util.Arrays;
import com.docusign.esign.model.ForgottenPasswordInformation;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* UserPasswordInformation
*/
public class UserPasswordInformation {
@JsonProperty("currentPassword")
private String currentPassword = null;
@JsonProperty("email")
private String email = null;
@JsonProperty("forgottenPasswordInfo")
private ForgottenPasswordInformation forgottenPasswordInfo = null;
@JsonProperty("newPassword")
private String newPassword = null;
public UserPasswordInformation currentPassword(String currentPassword) {
this.currentPassword = currentPassword;
return this;
}
/**
* The user's current password to be changed.
* @return currentPassword
**/
@ApiModelProperty(value = "The user's current password to be changed.")
public String getCurrentPassword() {
return currentPassword;
}
public void setCurrentPassword(String currentPassword) {
this.currentPassword = currentPassword;
}
public UserPasswordInformation email(String email) {
this.email = email;
return this;
}
/**
* The user's email address for the associated account.
* @return email
**/
@ApiModelProperty(value = "The user's email address for the associated account.")
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public UserPasswordInformation forgottenPasswordInfo(ForgottenPasswordInformation forgottenPasswordInfo) {
this.forgottenPasswordInfo = forgottenPasswordInfo;
return this;
}
/**
* Get forgottenPasswordInfo
* @return forgottenPasswordInfo
**/
@ApiModelProperty(value = "")
public ForgottenPasswordInformation getForgottenPasswordInfo() {
return forgottenPasswordInfo;
}
public void setForgottenPasswordInfo(ForgottenPasswordInformation forgottenPasswordInfo) {
this.forgottenPasswordInfo = forgottenPasswordInfo;
}
public UserPasswordInformation newPassword(String newPassword) {
this.newPassword = newPassword;
return this;
}
/**
* The user's new password.
* @return newPassword
**/
@ApiModelProperty(value = "The user's new password.")
public String getNewPassword() {
return newPassword;
}
public void setNewPassword(String newPassword) {
this.newPassword = newPassword;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
UserPasswordInformation userPasswordInformation = (UserPasswordInformation) o;
return Objects.equals(this.currentPassword, userPasswordInformation.currentPassword) &&
Objects.equals(this.email, userPasswordInformation.email) &&
Objects.equals(this.forgottenPasswordInfo, userPasswordInformation.forgottenPasswordInfo) &&
Objects.equals(this.newPassword, userPasswordInformation.newPassword);
}
@Override
public int hashCode() {
return Objects.hash(currentPassword, email, forgottenPasswordInfo, newPassword);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UserPasswordInformation {\n");
sb.append(" currentPassword: ").append(toIndentedString(currentPassword)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
sb.append(" forgottenPasswordInfo: ").append(toIndentedString(forgottenPasswordInfo)).append("\n");
sb.append(" newPassword: ").append(toIndentedString(newPassword)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}