All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.docusign.esign.model.UserInfo Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 6.0.0
Show newest version
package com.docusign.esign.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.Objects;

/** UserInfo. */
public class UserInfo implements Serializable {
  private static final long serialVersionUID = 1L;

  @JsonProperty("accountId")
  private String accountId = null;

  @JsonProperty("accountName")
  private String accountName = null;

  @JsonProperty("activationAccessCode")
  private String activationAccessCode = null;

  @JsonProperty("email")
  private String email = null;

  @JsonProperty("errorDetails")
  private ErrorDetails errorDetails = null;

  @JsonProperty("ipAddress")
  private String ipAddress = null;

  @JsonProperty("loginStatus")
  private String loginStatus = null;

  @JsonProperty("membershipId")
  private String membershipId = null;

  @JsonProperty("sendActivationEmail")
  private String sendActivationEmail = null;

  @JsonProperty("uri")
  private String uri = null;

  @JsonProperty("userId")
  private String userId = null;

  @JsonProperty("userName")
  private String userName = null;

  @JsonProperty("userStatus")
  private String userStatus = null;

  @JsonProperty("userType")
  private String userType = null;

  /**
   * accountId.
   *
   * @return UserInfo
   */
  public UserInfo accountId(String accountId) {
    this.accountId = accountId;
    return this;
  }

  /**
   * The account ID associated with the envelope..
   *
   * @return accountId
   */
  @Schema(description = "The account ID associated with the envelope.")
  public String getAccountId() {
    return accountId;
  }

  /** setAccountId. */
  public void setAccountId(String accountId) {
    this.accountId = accountId;
  }

  /**
   * accountName.
   *
   * @return UserInfo
   */
  public UserInfo accountName(String accountName) {
    this.accountName = accountName;
    return this;
  }

  /**
   * .
   *
   * @return accountName
   */
  @Schema(description = "")
  public String getAccountName() {
    return accountName;
  }

  /** setAccountName. */
  public void setAccountName(String accountName) {
    this.accountName = accountName;
  }

  /**
   * activationAccessCode.
   *
   * @return UserInfo
   */
  public UserInfo activationAccessCode(String activationAccessCode) {
    this.activationAccessCode = activationAccessCode;
    return this;
  }

  /**
   * .
   *
   * @return activationAccessCode
   */
  @Schema(description = "")
  public String getActivationAccessCode() {
    return activationAccessCode;
  }

  /** setActivationAccessCode. */
  public void setActivationAccessCode(String activationAccessCode) {
    this.activationAccessCode = activationAccessCode;
  }

  /**
   * email.
   *
   * @return UserInfo
   */
  public UserInfo email(String email) {
    this.email = email;
    return this;
  }

  /**
   * .
   *
   * @return email
   */
  @Schema(description = "")
  public String getEmail() {
    return email;
  }

  /** setEmail. */
  public void setEmail(String email) {
    this.email = email;
  }

  /**
   * errorDetails.
   *
   * @return UserInfo
   */
  public UserInfo errorDetails(ErrorDetails errorDetails) {
    this.errorDetails = errorDetails;
    return this;
  }

  /**
   * Array or errors..
   *
   * @return errorDetails
   */
  @Schema(description = "Array or errors.")
  public ErrorDetails getErrorDetails() {
    return errorDetails;
  }

  /** setErrorDetails. */
  public void setErrorDetails(ErrorDetails errorDetails) {
    this.errorDetails = errorDetails;
  }

  /**
   * ipAddress.
   *
   * @return UserInfo
   */
  public UserInfo ipAddress(String ipAddress) {
    this.ipAddress = ipAddress;
    return this;
  }

  /**
   * .
   *
   * @return ipAddress
   */
  @Schema(description = "")
  public String getIpAddress() {
    return ipAddress;
  }

  /** setIpAddress. */
  public void setIpAddress(String ipAddress) {
    this.ipAddress = ipAddress;
  }

  /**
   * loginStatus.
   *
   * @return UserInfo
   */
  public UserInfo loginStatus(String loginStatus) {
    this.loginStatus = loginStatus;
    return this;
  }

  /**
   * .
   *
   * @return loginStatus
   */
  @Schema(description = "")
  public String getLoginStatus() {
    return loginStatus;
  }

  /** setLoginStatus. */
  public void setLoginStatus(String loginStatus) {
    this.loginStatus = loginStatus;
  }

  /**
   * membershipId.
   *
   * @return UserInfo
   */
  public UserInfo membershipId(String membershipId) {
    this.membershipId = membershipId;
    return this;
  }

  /**
   * .
   *
   * @return membershipId
   */
  @Schema(description = "")
  public String getMembershipId() {
    return membershipId;
  }

  /** setMembershipId. */
  public void setMembershipId(String membershipId) {
    this.membershipId = membershipId;
  }

  /**
   * sendActivationEmail.
   *
   * @return UserInfo
   */
  public UserInfo sendActivationEmail(String sendActivationEmail) {
    this.sendActivationEmail = sendActivationEmail;
    return this;
  }

  /**
   * .
   *
   * @return sendActivationEmail
   */
  @Schema(description = "")
  public String getSendActivationEmail() {
    return sendActivationEmail;
  }

  /** setSendActivationEmail. */
  public void setSendActivationEmail(String sendActivationEmail) {
    this.sendActivationEmail = sendActivationEmail;
  }

  /**
   * uri.
   *
   * @return UserInfo
   */
  public UserInfo uri(String uri) {
    this.uri = uri;
    return this;
  }

  /**
   * .
   *
   * @return uri
   */
  @Schema(description = "")
  public String getUri() {
    return uri;
  }

  /** setUri. */
  public void setUri(String uri) {
    this.uri = uri;
  }

  /**
   * userId.
   *
   * @return UserInfo
   */
  public UserInfo userId(String userId) {
    this.userId = userId;
    return this;
  }

  /**
   * .
   *
   * @return userId
   */
  @Schema(description = "")
  public String getUserId() {
    return userId;
  }

  /** setUserId. */
  public void setUserId(String userId) {
    this.userId = userId;
  }

  /**
   * userName.
   *
   * @return UserInfo
   */
  public UserInfo userName(String userName) {
    this.userName = userName;
    return this;
  }

  /**
   * .
   *
   * @return userName
   */
  @Schema(description = "")
  public String getUserName() {
    return userName;
  }

  /** setUserName. */
  public void setUserName(String userName) {
    this.userName = userName;
  }

  /**
   * userStatus.
   *
   * @return UserInfo
   */
  public UserInfo userStatus(String userStatus) {
    this.userStatus = userStatus;
    return this;
  }

  /**
   * .
   *
   * @return userStatus
   */
  @Schema(description = "")
  public String getUserStatus() {
    return userStatus;
  }

  /** setUserStatus. */
  public void setUserStatus(String userStatus) {
    this.userStatus = userStatus;
  }

  /**
   * userType.
   *
   * @return UserInfo
   */
  public UserInfo userType(String userType) {
    this.userType = userType;
    return this;
  }

  /**
   * .
   *
   * @return userType
   */
  @Schema(description = "")
  public String getUserType() {
    return userType;
  }

  /** setUserType. */
  public void setUserType(String userType) {
    this.userType = userType;
  }

  /**
   * 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;
    }
    UserInfo userInfo = (UserInfo) o;
    return Objects.equals(this.accountId, userInfo.accountId)
        && Objects.equals(this.accountName, userInfo.accountName)
        && Objects.equals(this.activationAccessCode, userInfo.activationAccessCode)
        && Objects.equals(this.email, userInfo.email)
        && Objects.equals(this.errorDetails, userInfo.errorDetails)
        && Objects.equals(this.ipAddress, userInfo.ipAddress)
        && Objects.equals(this.loginStatus, userInfo.loginStatus)
        && Objects.equals(this.membershipId, userInfo.membershipId)
        && Objects.equals(this.sendActivationEmail, userInfo.sendActivationEmail)
        && Objects.equals(this.uri, userInfo.uri)
        && Objects.equals(this.userId, userInfo.userId)
        && Objects.equals(this.userName, userInfo.userName)
        && Objects.equals(this.userStatus, userInfo.userStatus)
        && Objects.equals(this.userType, userInfo.userType);
  }

  /** Returns the HashCode. */
  @Override
  public int hashCode() {
    return Objects.hash(
        accountId,
        accountName,
        activationAccessCode,
        email,
        errorDetails,
        ipAddress,
        loginStatus,
        membershipId,
        sendActivationEmail,
        uri,
        userId,
        userName,
        userStatus,
        userType);
  }

  /** Converts the given object to string. */
  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class UserInfo {\n");

    sb.append("    accountId: ").append(toIndentedString(accountId)).append("\n");
    sb.append("    accountName: ").append(toIndentedString(accountName)).append("\n");
    sb.append("    activationAccessCode: ")
        .append(toIndentedString(activationAccessCode))
        .append("\n");
    sb.append("    email: ").append(toIndentedString(email)).append("\n");
    sb.append("    errorDetails: ").append(toIndentedString(errorDetails)).append("\n");
    sb.append("    ipAddress: ").append(toIndentedString(ipAddress)).append("\n");
    sb.append("    loginStatus: ").append(toIndentedString(loginStatus)).append("\n");
    sb.append("    membershipId: ").append(toIndentedString(membershipId)).append("\n");
    sb.append("    sendActivationEmail: ")
        .append(toIndentedString(sendActivationEmail))
        .append("\n");
    sb.append("    uri: ").append(toIndentedString(uri)).append("\n");
    sb.append("    userId: ").append(toIndentedString(userId)).append("\n");
    sb.append("    userName: ").append(toIndentedString(userName)).append("\n");
    sb.append("    userStatus: ").append(toIndentedString(userStatus)).append("\n");
    sb.append("    userType: ").append(toIndentedString(userType)).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    ");
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy