com.docusign.esign.model.MemberSharedItems 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 com.docusign.esign.model.ErrorDetails;
import com.docusign.esign.model.SharedItem;
import com.docusign.esign.model.TemplateSharedItem;
import com.docusign.esign.model.UserInfo;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* MemberSharedItems
*/
public class MemberSharedItems {
@JsonProperty("envelopes")
private java.util.List envelopes = new java.util.ArrayList();
@JsonProperty("errorDetails")
private ErrorDetails errorDetails = null;
@JsonProperty("templates")
private java.util.List templates = new java.util.ArrayList();
@JsonProperty("user")
private UserInfo user = null;
public MemberSharedItems envelopes(java.util.List envelopes) {
this.envelopes = envelopes;
return this;
}
public MemberSharedItems addEnvelopesItem(SharedItem envelopesItem) {
this.envelopes.add(envelopesItem);
return this;
}
/**
*
* @return envelopes
**/
@ApiModelProperty(example = "null", value = "")
public java.util.List getEnvelopes() {
return envelopes;
}
public void setEnvelopes(java.util.List envelopes) {
this.envelopes = envelopes;
}
public MemberSharedItems errorDetails(ErrorDetails errorDetails) {
this.errorDetails = errorDetails;
return this;
}
/**
* Get errorDetails
* @return errorDetails
**/
@ApiModelProperty(example = "null", value = "")
public ErrorDetails getErrorDetails() {
return errorDetails;
}
public void setErrorDetails(ErrorDetails errorDetails) {
this.errorDetails = errorDetails;
}
public MemberSharedItems templates(java.util.List templates) {
this.templates = templates;
return this;
}
public MemberSharedItems addTemplatesItem(TemplateSharedItem templatesItem) {
this.templates.add(templatesItem);
return this;
}
/**
*
* @return templates
**/
@ApiModelProperty(example = "null", value = "")
public java.util.List getTemplates() {
return templates;
}
public void setTemplates(java.util.List templates) {
this.templates = templates;
}
public MemberSharedItems user(UserInfo user) {
this.user = user;
return this;
}
/**
* Get user
* @return user
**/
@ApiModelProperty(example = "null", value = "")
public UserInfo getUser() {
return user;
}
public void setUser(UserInfo user) {
this.user = user;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MemberSharedItems memberSharedItems = (MemberSharedItems) o;
return Objects.equals(this.envelopes, memberSharedItems.envelopes) &&
Objects.equals(this.errorDetails, memberSharedItems.errorDetails) &&
Objects.equals(this.templates, memberSharedItems.templates) &&
Objects.equals(this.user, memberSharedItems.user);
}
@Override
public int hashCode() {
return Objects.hash(envelopes, errorDetails, templates, user);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MemberSharedItems {\n");
sb.append(" envelopes: ").append(toIndentedString(envelopes)).append("\n");
sb.append(" errorDetails: ").append(toIndentedString(errorDetails)).append("\n");
sb.append(" templates: ").append(toIndentedString(templates)).append("\n");
sb.append(" user: ").append(toIndentedString(user)).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 ");
}
}