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

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

Go to download

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.

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

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Objects;

/** Information about the result of an event.. */
@Schema(description = "Information about the result of an event.")
public class EventResult {
  @JsonProperty("eventTimestamp")
  private String eventTimestamp = null;

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

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

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

  /**
   * eventTimestamp.
   *
   * @return EventResult
   */
  public EventResult eventTimestamp(String eventTimestamp) {
    this.eventTimestamp = eventTimestamp;
    return this;
  }

  /**
   * .
   *
   * @return eventTimestamp
   */
  @Schema(description = "")
  public String getEventTimestamp() {
    return eventTimestamp;
  }

  /** setEventTimestamp. */
  public void setEventTimestamp(String eventTimestamp) {
    this.eventTimestamp = eventTimestamp;
  }

  /**
   * failureDescription.
   *
   * @return EventResult
   */
  public EventResult failureDescription(String failureDescription) {
    this.failureDescription = failureDescription;
    return this;
  }

  /**
   * .
   *
   * @return failureDescription
   */
  @Schema(description = "")
  public String getFailureDescription() {
    return failureDescription;
  }

  /** setFailureDescription. */
  public void setFailureDescription(String failureDescription) {
    this.failureDescription = failureDescription;
  }

  /**
   * status.
   *
   * @return EventResult
   */
  public EventResult status(String status) {
    this.status = status;
    return this;
  }

  /**
   * Indicates the envelope status. Valid values are: * sent - The envelope is sent to the
   * recipients. * created - The envelope is saved as a draft and can be modified and sent later..
   *
   * @return status
   */
  @Schema(
      description =
          "Indicates the envelope status. Valid values are:  * sent - The envelope is sent to the recipients.  * created - The envelope is saved as a draft and can be modified and sent later.")
  public String getStatus() {
    return status;
  }

  /** setStatus. */
  public void setStatus(String status) {
    this.status = status;
  }

  /**
   * vendorFailureStatusCode.
   *
   * @return EventResult
   */
  public EventResult vendorFailureStatusCode(String vendorFailureStatusCode) {
    this.vendorFailureStatusCode = vendorFailureStatusCode;
    return this;
  }

  /**
   * .
   *
   * @return vendorFailureStatusCode
   */
  @Schema(description = "")
  public String getVendorFailureStatusCode() {
    return vendorFailureStatusCode;
  }

  /** setVendorFailureStatusCode. */
  public void setVendorFailureStatusCode(String vendorFailureStatusCode) {
    this.vendorFailureStatusCode = vendorFailureStatusCode;
  }

  /**
   * 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;
    }
    EventResult eventResult = (EventResult) o;
    return Objects.equals(this.eventTimestamp, eventResult.eventTimestamp)
        && Objects.equals(this.failureDescription, eventResult.failureDescription)
        && Objects.equals(this.status, eventResult.status)
        && Objects.equals(this.vendorFailureStatusCode, eventResult.vendorFailureStatusCode);
  }

  /** Returns the HashCode. */
  @Override
  public int hashCode() {
    return Objects.hash(eventTimestamp, failureDescription, status, vendorFailureStatusCode);
  }

  /** Converts the given object to string. */
  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class EventResult {\n");

    sb.append("    eventTimestamp: ").append(toIndentedString(eventTimestamp)).append("\n");
    sb.append("    failureDescription: ").append(toIndentedString(failureDescription)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    vendorFailureStatusCode: ")
        .append(toIndentedString(vendorFailureStatusCode))
        .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