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

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

/** Describes the workflow for an envelope.. */
@Schema(description = "Describes the workflow for an envelope.")
public class Workflow {
  @JsonProperty("currentWorkflowStepId")
  private String currentWorkflowStepId = null;

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

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

  @JsonProperty("scheduledSending")
  private ScheduledSending scheduledSending = null;

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

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

  /**
   * currentWorkflowStepId.
   *
   * @return Workflow
   */
  public Workflow currentWorkflowStepId(String currentWorkflowStepId) {
    this.currentWorkflowStepId = currentWorkflowStepId;
    return this;
  }

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

  /** setCurrentWorkflowStepId. */
  public void setCurrentWorkflowStepId(String currentWorkflowStepId) {
    this.currentWorkflowStepId = currentWorkflowStepId;
  }

  /**
   * overwriteUpdateMode.
   *
   * @return Workflow
   */
  public Workflow overwriteUpdateMode(String overwriteUpdateMode) {
    this.overwriteUpdateMode = overwriteUpdateMode;
    return this;
  }

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

  /** setOverwriteUpdateMode. */
  public void setOverwriteUpdateMode(String overwriteUpdateMode) {
    this.overwriteUpdateMode = overwriteUpdateMode;
  }

  /**
   * resumeDate.
   *
   * @return Workflow
   */
  public Workflow resumeDate(String resumeDate) {
    this.resumeDate = resumeDate;
    return this;
  }

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

  /** setResumeDate. */
  public void setResumeDate(String resumeDate) {
    this.resumeDate = resumeDate;
  }

  /**
   * scheduledSending.
   *
   * @return Workflow
   */
  public Workflow scheduledSending(ScheduledSending scheduledSending) {
    this.scheduledSending = scheduledSending;
    return this;
  }

  /**
   * An object that describes the settings for scheduled sending..
   *
   * @return scheduledSending
   */
  @Schema(description = "An object that describes the settings for scheduled sending.")
  public ScheduledSending getScheduledSending() {
    return scheduledSending;
  }

  /** setScheduledSending. */
  public void setScheduledSending(ScheduledSending scheduledSending) {
    this.scheduledSending = scheduledSending;
  }

  /**
   * workflowStatus.
   *
   * @return Workflow
   */
  public Workflow workflowStatus(String workflowStatus) {
    this.workflowStatus = workflowStatus;
    return this;
  }

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

  /** setWorkflowStatus. */
  public void setWorkflowStatus(String workflowStatus) {
    this.workflowStatus = workflowStatus;
  }

  /**
   * workflowSteps.
   *
   * @return Workflow
   */
  public Workflow workflowSteps(java.util.List workflowSteps) {
    this.workflowSteps = workflowSteps;
    return this;
  }

  /**
   * addWorkflowStepsItem.
   *
   * @return Workflow
   */
  public Workflow addWorkflowStepsItem(WorkflowStep workflowStepsItem) {
    if (this.workflowSteps == null) {
      this.workflowSteps = new java.util.ArrayList<>();
    }
    this.workflowSteps.add(workflowStepsItem);
    return this;
  }

  /**
   * .
   *
   * @return workflowSteps
   */
  @Schema(description = "")
  public java.util.List getWorkflowSteps() {
    return workflowSteps;
  }

  /** setWorkflowSteps. */
  public void setWorkflowSteps(java.util.List workflowSteps) {
    this.workflowSteps = workflowSteps;
  }

  /**
   * 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;
    }
    Workflow workflow = (Workflow) o;
    return Objects.equals(this.currentWorkflowStepId, workflow.currentWorkflowStepId)
        && Objects.equals(this.overwriteUpdateMode, workflow.overwriteUpdateMode)
        && Objects.equals(this.resumeDate, workflow.resumeDate)
        && Objects.equals(this.scheduledSending, workflow.scheduledSending)
        && Objects.equals(this.workflowStatus, workflow.workflowStatus)
        && Objects.equals(this.workflowSteps, workflow.workflowSteps);
  }

  /** Returns the HashCode. */
  @Override
  public int hashCode() {
    return Objects.hash(
        currentWorkflowStepId,
        overwriteUpdateMode,
        resumeDate,
        scheduledSending,
        workflowStatus,
        workflowSteps);
  }

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

    sb.append("    currentWorkflowStepId: ")
        .append(toIndentedString(currentWorkflowStepId))
        .append("\n");
    sb.append("    overwriteUpdateMode: ")
        .append(toIndentedString(overwriteUpdateMode))
        .append("\n");
    sb.append("    resumeDate: ").append(toIndentedString(resumeDate)).append("\n");
    sb.append("    scheduledSending: ").append(toIndentedString(scheduledSending)).append("\n");
    sb.append("    workflowStatus: ").append(toIndentedString(workflowStatus)).append("\n");
    sb.append("    workflowSteps: ").append(toIndentedString(workflowSteps)).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