com.docusign.esign.model.RecipientAttachment 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.
The 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;
/** RecipientAttachment. */
public class RecipientAttachment implements Serializable {
private static final long serialVersionUID = 1L;
@JsonProperty("attachmentId")
private String attachmentId = null;
@JsonProperty("attachmentType")
private String attachmentType = null;
@JsonProperty("data")
private String data = null;
@JsonProperty("label")
private String label = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("remoteUrl")
private String remoteUrl = null;
/**
* attachmentId.
*
* @return RecipientAttachment
*/
public RecipientAttachment attachmentId(String attachmentId) {
this.attachmentId = attachmentId;
return this;
}
/**
* .
*
* @return attachmentId
*/
@Schema(description = "")
public String getAttachmentId() {
return attachmentId;
}
/** setAttachmentId. */
public void setAttachmentId(String attachmentId) {
this.attachmentId = attachmentId;
}
/**
* attachmentType.
*
* @return RecipientAttachment
*/
public RecipientAttachment attachmentType(String attachmentType) {
this.attachmentType = attachmentType;
return this;
}
/**
* .
*
* @return attachmentType
*/
@Schema(description = "")
public String getAttachmentType() {
return attachmentType;
}
/** setAttachmentType. */
public void setAttachmentType(String attachmentType) {
this.attachmentType = attachmentType;
}
/**
* data.
*
* @return RecipientAttachment
*/
public RecipientAttachment data(String data) {
this.data = data;
return this;
}
/**
* .
*
* @return data
*/
@Schema(description = "")
public String getData() {
return data;
}
/** setData. */
public void setData(String data) {
this.data = data;
}
/**
* label.
*
* @return RecipientAttachment
*/
public RecipientAttachment label(String label) {
this.label = label;
return this;
}
/**
* .
*
* @return label
*/
@Schema(description = "")
public String getLabel() {
return label;
}
/** setLabel. */
public void setLabel(String label) {
this.label = label;
}
/**
* name.
*
* @return RecipientAttachment
*/
public RecipientAttachment name(String name) {
this.name = name;
return this;
}
/**
* .
*
* @return name
*/
@Schema(description = "")
public String getName() {
return name;
}
/** setName. */
public void setName(String name) {
this.name = name;
}
/**
* remoteUrl.
*
* @return RecipientAttachment
*/
public RecipientAttachment remoteUrl(String remoteUrl) {
this.remoteUrl = remoteUrl;
return this;
}
/**
* .
*
* @return remoteUrl
*/
@Schema(description = "")
public String getRemoteUrl() {
return remoteUrl;
}
/** setRemoteUrl. */
public void setRemoteUrl(String remoteUrl) {
this.remoteUrl = remoteUrl;
}
/**
* 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;
}
RecipientAttachment recipientAttachment = (RecipientAttachment) o;
return Objects.equals(this.attachmentId, recipientAttachment.attachmentId)
&& Objects.equals(this.attachmentType, recipientAttachment.attachmentType)
&& Objects.equals(this.data, recipientAttachment.data)
&& Objects.equals(this.label, recipientAttachment.label)
&& Objects.equals(this.name, recipientAttachment.name)
&& Objects.equals(this.remoteUrl, recipientAttachment.remoteUrl);
}
/** Returns the HashCode. */
@Override
public int hashCode() {
return Objects.hash(attachmentId, attachmentType, data, label, name, remoteUrl);
}
/** Converts the given object to string. */
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RecipientAttachment {\n");
sb.append(" attachmentId: ").append(toIndentedString(attachmentId)).append("\n");
sb.append(" attachmentType: ").append(toIndentedString(attachmentType)).append("\n");
sb.append(" data: ").append(toIndentedString(data)).append("\n");
sb.append(" label: ").append(toIndentedString(label)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" remoteUrl: ").append(toIndentedString(remoteUrl)).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 ");
}
}