com.docusign.esign.model.BrandsResponse 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 java.util.Arrays;
import com.docusign.esign.model.Brand;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* BrandsResponse
*/
public class BrandsResponse {
@JsonProperty("brands")
private java.util.List brands = null;
@JsonProperty("recipientBrandIdDefault")
private String recipientBrandIdDefault = null;
@JsonProperty("senderBrandIdDefault")
private String senderBrandIdDefault = null;
public BrandsResponse brands(java.util.List brands) {
this.brands = brands;
return this;
}
public BrandsResponse addBrandsItem(Brand brandsItem) {
if (this.brands == null) {
this.brands = new java.util.ArrayList();
}
this.brands.add(brandsItem);
return this;
}
/**
* The list of brands.
* @return brands
**/
@ApiModelProperty(value = "The list of brands.")
public java.util.List getBrands() {
return brands;
}
public void setBrands(java.util.List brands) {
this.brands = brands;
}
public BrandsResponse recipientBrandIdDefault(String recipientBrandIdDefault) {
this.recipientBrandIdDefault = recipientBrandIdDefault;
return this;
}
/**
* The brand seen by envelope recipients when a brand is not explicitly set.
* @return recipientBrandIdDefault
**/
@ApiModelProperty(value = "The brand seen by envelope recipients when a brand is not explicitly set.")
public String getRecipientBrandIdDefault() {
return recipientBrandIdDefault;
}
public void setRecipientBrandIdDefault(String recipientBrandIdDefault) {
this.recipientBrandIdDefault = recipientBrandIdDefault;
}
public BrandsResponse senderBrandIdDefault(String senderBrandIdDefault) {
this.senderBrandIdDefault = senderBrandIdDefault;
return this;
}
/**
* The brand seen by envelope senders when a brand is not explicitly set.
* @return senderBrandIdDefault
**/
@ApiModelProperty(value = "The brand seen by envelope senders when a brand is not explicitly set.")
public String getSenderBrandIdDefault() {
return senderBrandIdDefault;
}
public void setSenderBrandIdDefault(String senderBrandIdDefault) {
this.senderBrandIdDefault = senderBrandIdDefault;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BrandsResponse brandsResponse = (BrandsResponse) o;
return Objects.equals(this.brands, brandsResponse.brands) &&
Objects.equals(this.recipientBrandIdDefault, brandsResponse.recipientBrandIdDefault) &&
Objects.equals(this.senderBrandIdDefault, brandsResponse.senderBrandIdDefault);
}
@Override
public int hashCode() {
return Objects.hash(brands, recipientBrandIdDefault, senderBrandIdDefault);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BrandsResponse {\n");
sb.append(" brands: ").append(toIndentedString(brands)).append("\n");
sb.append(" recipientBrandIdDefault: ").append(toIndentedString(recipientBrandIdDefault)).append("\n");
sb.append(" senderBrandIdDefault: ").append(toIndentedString(senderBrandIdDefault)).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 ");
}
}