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

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

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

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;

/** BrandsResponse. */
public class BrandsResponse {
  @JsonProperty("brands")
  private java.util.List brands = null;

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

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

  /**
   * brands.
   *
   * @return BrandsResponse
   */
  public BrandsResponse brands(java.util.List brands) {
    this.brands = brands;
    return this;
  }

  /**
   * addBrandsItem.
   *
   * @return BrandsResponse
   */
  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;
  }

  /** setBrands. */
  public void setBrands(java.util.List brands) {
    this.brands = brands;
  }

  /**
   * recipientBrandIdDefault.
   *
   * @return BrandsResponse
   */
  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;
  }

  /** setRecipientBrandIdDefault. */
  public void setRecipientBrandIdDefault(String recipientBrandIdDefault) {
    this.recipientBrandIdDefault = recipientBrandIdDefault;
  }

  /**
   * senderBrandIdDefault.
   *
   * @return BrandsResponse
   */
  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;
  }

  /** setSenderBrandIdDefault. */
  public void setSenderBrandIdDefault(String senderBrandIdDefault) {
    this.senderBrandIdDefault = senderBrandIdDefault;
  }

  /**
   * 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;
    }
    BrandsResponse brandsResponse = (BrandsResponse) o;
    return Objects.equals(this.brands, brandsResponse.brands)
        && Objects.equals(this.recipientBrandIdDefault, brandsResponse.recipientBrandIdDefault)
        && Objects.equals(this.senderBrandIdDefault, brandsResponse.senderBrandIdDefault);
  }

  /** Returns the HashCode. */
  @Override
  public int hashCode() {
    return Objects.hash(brands, recipientBrandIdDefault, senderBrandIdDefault);
  }

  /** Converts the given object to string. */
  @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    ");
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy