com.docusign.esign.model.ConnectLogs 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 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 com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Objects;
/** 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
*/
@Schema(description = "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
*/
@Schema(
description =
"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
*/
@Schema(description = "")
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
*/
@Schema(description = "")
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