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

com.docusign.esign.model.TspHealthCheckRequest 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;

/** TspHealthCheckRequest */
public class TspHealthCheckRequest {
  @JsonProperty("appVersion")
  private String appVersion = null;

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

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

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

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

  public TspHealthCheckRequest appVersion(String appVersion) {
    this.appVersion = appVersion;
    return this;
  }

  /** @return appVersion */
  @ApiModelProperty(value = "")
  public String getAppVersion() {
    return appVersion;
  }

  public void setAppVersion(String appVersion) {
    this.appVersion = appVersion;
  }

  public TspHealthCheckRequest description(String description) {
    this.description = description;
    return this;
  }

  /** @return description */
  @ApiModelProperty(value = "")
  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public TspHealthCheckRequest error(String error) {
    this.error = error;
    return this;
  }

  /** @return error */
  @ApiModelProperty(value = "")
  public String getError() {
    return error;
  }

  public void setError(String error) {
    this.error = error;
  }

  public TspHealthCheckRequest 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
   */
  @ApiModelProperty(
      value =
          "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;
  }

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

  public TspHealthCheckRequest statusDescription(
      java.util.List statusDescription) {
    this.statusDescription = statusDescription;
    return this;
  }

  public TspHealthCheckRequest addStatusDescriptionItem(
      TspHealthCheckStatusDescription statusDescriptionItem) {
    if (this.statusDescription == null) {
      this.statusDescription = new java.util.ArrayList();
    }
    this.statusDescription.add(statusDescriptionItem);
    return this;
  }

  /** @return statusDescription */
  @ApiModelProperty(value = "")
  public java.util.List getStatusDescription() {
    return statusDescription;
  }

  public void setStatusDescription(
      java.util.List statusDescription) {
    this.statusDescription = statusDescription;
  }

  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    TspHealthCheckRequest tspHealthCheckRequest = (TspHealthCheckRequest) o;
    return Objects.equals(this.appVersion, tspHealthCheckRequest.appVersion)
        && Objects.equals(this.description, tspHealthCheckRequest.description)
        && Objects.equals(this.error, tspHealthCheckRequest.error)
        && Objects.equals(this.status, tspHealthCheckRequest.status)
        && Objects.equals(this.statusDescription, tspHealthCheckRequest.statusDescription);
  }

  @Override
  public int hashCode() {
    return Objects.hash(appVersion, description, error, status, statusDescription);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class TspHealthCheckRequest {\n");

    sb.append("    appVersion: ").append(toIndentedString(appVersion)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    error: ").append(toIndentedString(error)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    statusDescription: ").append(toIndentedString(statusDescription)).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