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

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

Go to download

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.

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

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

/**
 * DocumentSecurityStore
 */

public class DocumentSecurityStore {
  @JsonProperty("certificates")
  private java.util.List certificates = new java.util.ArrayList();

  @JsonProperty("crls")
  private java.util.List crls = new java.util.ArrayList();

  @JsonProperty("ocsps")
  private java.util.List ocsps = new java.util.ArrayList();

  public DocumentSecurityStore certificates(java.util.List certificates) {
    this.certificates = certificates;
    return this;
  }

  public DocumentSecurityStore addCertificatesItem(String certificatesItem) {
    this.certificates.add(certificatesItem);
    return this;
  }

   /**
   * 
   * @return certificates
  **/
  @ApiModelProperty(example = "null", value = "")
  public java.util.List getCertificates() {
    return certificates;
  }

  public void setCertificates(java.util.List certificates) {
    this.certificates = certificates;
  }

  public DocumentSecurityStore crls(java.util.List crls) {
    this.crls = crls;
    return this;
  }

  public DocumentSecurityStore addCrlsItem(String crlsItem) {
    this.crls.add(crlsItem);
    return this;
  }

   /**
   * 
   * @return crls
  **/
  @ApiModelProperty(example = "null", value = "")
  public java.util.List getCrls() {
    return crls;
  }

  public void setCrls(java.util.List crls) {
    this.crls = crls;
  }

  public DocumentSecurityStore ocsps(java.util.List ocsps) {
    this.ocsps = ocsps;
    return this;
  }

  public DocumentSecurityStore addOcspsItem(String ocspsItem) {
    this.ocsps.add(ocspsItem);
    return this;
  }

   /**
   * 
   * @return ocsps
  **/
  @ApiModelProperty(example = "null", value = "")
  public java.util.List getOcsps() {
    return ocsps;
  }

  public void setOcsps(java.util.List ocsps) {
    this.ocsps = ocsps;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    DocumentSecurityStore documentSecurityStore = (DocumentSecurityStore) o;
    return Objects.equals(this.certificates, documentSecurityStore.certificates) &&
        Objects.equals(this.crls, documentSecurityStore.crls) &&
        Objects.equals(this.ocsps, documentSecurityStore.ocsps);
  }

  @Override
  public int hashCode() {
    return Objects.hash(certificates, crls, ocsps);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class DocumentSecurityStore {\n");
    
    sb.append("    certificates: ").append(toIndentedString(certificates)).append("\n");
    sb.append("    crls: ").append(toIndentedString(crls)).append("\n");
    sb.append("    ocsps: ").append(toIndentedString(ocsps)).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