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

com.docusign.esign.model.ConnectLogs 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 java.util.Arrays;
import com.docusign.esign.model.ConnectLog;
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;

/**
 * ConnectLogs.
 *
 */

public class ConnectLogs {
  @JsonProperty("failures")
  private java.util.List failures = null;

  @JsonProperty("logs")
  private java.util.List logs = null;

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

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


  /**
   * failures.
   *
   * @return ConnectLogs
   **/
  public ConnectLogs failures(java.util.List failures) {
    this.failures = failures;
    return this;
  }
  
  /**
   * addFailuresItem.
   *
   * @return ConnectLogs
   **/
  public ConnectLogs addFailuresItem(ConnectLog failuresItem) {
    if (this.failures == null) {
      this.failures = new java.util.ArrayList();
    }
    this.failures.add(failuresItem);
    return this;
  }

  /**
   * An array of containing failure information from the Connect failure log..
   * @return failures
   **/
  @ApiModelProperty(value = "An array of containing failure information from the Connect failure log.")
  public java.util.List getFailures() {
    return failures;
  }

  /**
   * setFailures.
   **/
  public void setFailures(java.util.List failures) {
    this.failures = failures;
  }


  /**
   * logs.
   *
   * @return ConnectLogs
   **/
  public ConnectLogs logs(java.util.List logs) {
    this.logs = logs;
    return this;
  }
  
  /**
   * addLogsItem.
   *
   * @return ConnectLogs
   **/
  public ConnectLogs addLogsItem(ConnectLog logsItem) {
    if (this.logs == null) {
      this.logs = new java.util.ArrayList();
    }
    this.logs.add(logsItem);
    return this;
  }

  /**
   * A complex type containing Connect log information. It is divided into two sections, one for regular logs and one for Connect failures. .
   * @return logs
   **/
  @ApiModelProperty(value = "A complex type containing Connect log information. It is divided into two sections, one for regular logs and one for Connect failures. ")
  public java.util.List getLogs() {
    return logs;
  }

  /**
   * setLogs.
   **/
  public void setLogs(java.util.List logs) {
    this.logs = logs;
  }


  /**
   * totalRecords.
   *
   * @return ConnectLogs
   **/
  public ConnectLogs totalRecords(String totalRecords) {
    this.totalRecords = totalRecords;
    return this;
  }

  /**
   * .
   * @return totalRecords
   **/
  @ApiModelProperty(value = "")
  public String getTotalRecords() {
    return totalRecords;
  }

  /**
   * setTotalRecords.
   **/
  public void setTotalRecords(String totalRecords) {
    this.totalRecords = totalRecords;
  }


  /**
   * type.
   *
   * @return ConnectLogs
   **/
  public ConnectLogs type(String type) {
    this.type = type;
    return this;
  }

  /**
   * .
   * @return type
   **/
  @ApiModelProperty(value = "")
  public String getType() {
    return type;
  }

  /**
   * setType.
   **/
  public void setType(String type) {
    this.type = type;
  }


  /**
   * 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;
    }
    ConnectLogs connectLogs = (ConnectLogs) o;
    return Objects.equals(this.failures, connectLogs.failures) &&
        Objects.equals(this.logs, connectLogs.logs) &&
        Objects.equals(this.totalRecords, connectLogs.totalRecords) &&
        Objects.equals(this.type, connectLogs.type);
  }

  /**
   * Returns the HashCode.
   */
  @Override
  public int hashCode() {
    return Objects.hash(failures, logs, totalRecords, type);
  }


  /**
   * Converts the given object to string.
   */
  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ConnectLogs {\n");
    
    sb.append("    failures: ").append(toIndentedString(failures)).append("\n");
    sb.append("    logs: ").append(toIndentedString(logs)).append("\n");
    sb.append("    totalRecords: ").append(toIndentedString(totalRecords)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).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