com.docusign.esign.model.RecipientEmail Maven / Gradle / Ivy
package com.docusign.esign.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/** RecipientEmail */
public class RecipientEmail {
@JsonProperty("accountId")
private String accountId = null;
@JsonProperty("accountName")
private String accountName = null;
@JsonProperty("email")
private String email = null;
@JsonProperty("envelopeId")
private String envelopeId = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("recipientId")
private String recipientId = null;
@JsonProperty("supported")
private Boolean supported = null;
@JsonProperty("userId")
private String userId = null;
public RecipientEmail accountId(String accountId) {
this.accountId = accountId;
return this;
}
/**
* The account ID associated with the envelope.
*
* @return accountId
*/
@ApiModelProperty(example = "null", value = "The account ID associated with the envelope.")
public String getAccountId() {
return accountId;
}
public void setAccountId(String accountId) {
this.accountId = accountId;
}
public RecipientEmail accountName(String accountName) {
this.accountName = accountName;
return this;
}
/** @return accountName */
@ApiModelProperty(example = "null", value = "")
public String getAccountName() {
return accountName;
}
public void setAccountName(String accountName) {
this.accountName = accountName;
}
public RecipientEmail email(String email) {
this.email = email;
return this;
}
/** @return email */
@ApiModelProperty(example = "null", value = "")
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public RecipientEmail envelopeId(String envelopeId) {
this.envelopeId = envelopeId;
return this;
}
/**
* The envelope ID of the envelope status that failed to post.
*
* @return envelopeId
*/
@ApiModelProperty(
example = "null",
value = "The envelope ID of the envelope status that failed to post.")
public String getEnvelopeId() {
return envelopeId;
}
public void setEnvelopeId(String envelopeId) {
this.envelopeId = envelopeId;
}
public RecipientEmail name(String name) {
this.name = name;
return this;
}
/** @return name */
@ApiModelProperty(example = "null", value = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public RecipientEmail recipientId(String recipientId) {
this.recipientId = recipientId;
return this;
}
/**
* Unique for the recipient. It is used by the tab element to indicate which recipient is to sign
* the Document.
*
* @return recipientId
*/
@ApiModelProperty(
example = "null",
value =
"Unique for the recipient. It is used by the tab element to indicate which recipient is to sign the Document.")
public String getRecipientId() {
return recipientId;
}
public void setRecipientId(String recipientId) {
this.recipientId = recipientId;
}
public RecipientEmail supported(Boolean supported) {
this.supported = supported;
return this;
}
/** @return supported */
@ApiModelProperty(example = "null", value = "")
public Boolean getSupported() {
return supported;
}
public void setSupported(Boolean supported) {
this.supported = supported;
}
public RecipientEmail userId(String userId) {
this.userId = userId;
return this;
}
/** @return userId */
@ApiModelProperty(example = "null", value = "")
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
RecipientEmail recipientEmail = (RecipientEmail) o;
return Objects.equals(this.accountId, recipientEmail.accountId)
&& Objects.equals(this.accountName, recipientEmail.accountName)
&& Objects.equals(this.email, recipientEmail.email)
&& Objects.equals(this.envelopeId, recipientEmail.envelopeId)
&& Objects.equals(this.name, recipientEmail.name)
&& Objects.equals(this.recipientId, recipientEmail.recipientId)
&& Objects.equals(this.supported, recipientEmail.supported)
&& Objects.equals(this.userId, recipientEmail.userId);
}
@Override
public int hashCode() {
return Objects.hash(
accountId, accountName, email, envelopeId, name, recipientId, supported, userId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RecipientEmail {\n");
sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n");
sb.append(" accountName: ").append(toIndentedString(accountName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
sb.append(" envelopeId: ").append(toIndentedString(envelopeId)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" recipientId: ").append(toIndentedString(recipientId)).append("\n");
sb.append(" supported: ").append(toIndentedString(supported)).append("\n");
sb.append(" userId: ").append(toIndentedString(userId)).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 ");
}
}