com.docusign.esign.model.LoginInformation 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 com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Objects;
/** LoginInformation. */
public class LoginInformation {
@JsonProperty("apiPassword")
private String apiPassword = null;
@JsonProperty("loginAccounts")
private java.util.List loginAccounts = null;
/**
* apiPassword.
*
* @return LoginInformation
*/
public LoginInformation apiPassword(String apiPassword) {
this.apiPassword = apiPassword;
return this;
}
/**
* Contains a token that can be used for authentication in API calls instead of using the user
* name and password. Only returned if the `api_password=true` query string is added to the URL..
*
* @return apiPassword
*/
@Schema(
description =
"Contains a token that can be used for authentication in API calls instead of using the user name and password. Only returned if the `api_password=true` query string is added to the URL.")
public String getApiPassword() {
return apiPassword;
}
/** setApiPassword. */
public void setApiPassword(String apiPassword) {
this.apiPassword = apiPassword;
}
/**
* loginAccounts.
*
* @return LoginInformation
*/
public LoginInformation loginAccounts(java.util.List loginAccounts) {
this.loginAccounts = loginAccounts;
return this;
}
/**
* addLoginAccountsItem.
*
* @return LoginInformation
*/
public LoginInformation addLoginAccountsItem(LoginAccount loginAccountsItem) {
if (this.loginAccounts == null) {
this.loginAccounts = new java.util.ArrayList<>();
}
this.loginAccounts.add(loginAccountsItem);
return this;
}
/**
* The list of accounts that authenticating user is a member of..
*
* @return loginAccounts
*/
@Schema(description = "The list of accounts that authenticating user is a member of.")
public java.util.List getLoginAccounts() {
return loginAccounts;
}
/** setLoginAccounts. */
public void setLoginAccounts(java.util.List loginAccounts) {
this.loginAccounts = loginAccounts;
}
/**
* Compares objects.
*
* @return true or false depending on comparison result.
*/
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
LoginInformation loginInformation = (LoginInformation) o;
return Objects.equals(this.apiPassword, loginInformation.apiPassword)
&& Objects.equals(this.loginAccounts, loginInformation.loginAccounts);
}
/** Returns the HashCode. */
@Override
public int hashCode() {
return Objects.hash(apiPassword, loginAccounts);
}
/** Converts the given object to string. */
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class LoginInformation {\n");
sb.append(" apiPassword: ").append(toIndentedString(apiPassword)).append("\n");
sb.append(" loginAccounts: ").append(toIndentedString(loginAccounts)).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 ");
}
}