com.docusign.esign.model.WorkflowStep Maven / Gradle / Ivy
package com.docusign.esign.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/** WorkflowStep. */
public class WorkflowStep {
@JsonProperty("action")
private String action = null;
@JsonProperty("completedDate")
private String completedDate = null;
@JsonProperty("delayedRouting")
private DelayedRoutingApiModel delayedRouting = null;
@JsonProperty("itemId")
private String itemId = null;
@JsonProperty("recipientRouting")
private RecipientRouting recipientRouting = null;
@JsonProperty("status")
private String status = null;
@JsonProperty("triggeredDate")
private String triggeredDate = null;
@JsonProperty("triggerOnItem")
private String triggerOnItem = null;
@JsonProperty("workflowStepId")
private String workflowStepId = null;
/**
* action.
*
* @return WorkflowStep
*/
public WorkflowStep action(String action) {
this.action = action;
return this;
}
/**
* .
*
* @return action
*/
@ApiModelProperty(value = "")
public String getAction() {
return action;
}
/** setAction. */
public void setAction(String action) {
this.action = action;
}
/**
* completedDate.
*
* @return WorkflowStep
*/
public WorkflowStep completedDate(String completedDate) {
this.completedDate = completedDate;
return this;
}
/**
* .
*
* @return completedDate
*/
@ApiModelProperty(value = "")
public String getCompletedDate() {
return completedDate;
}
/** setCompletedDate. */
public void setCompletedDate(String completedDate) {
this.completedDate = completedDate;
}
/**
* delayedRouting.
*
* @return WorkflowStep
*/
public WorkflowStep delayedRouting(DelayedRoutingApiModel delayedRouting) {
this.delayedRouting = delayedRouting;
return this;
}
/**
* Get delayedRouting.
*
* @return delayedRouting
*/
@ApiModelProperty(value = "")
public DelayedRoutingApiModel getDelayedRouting() {
return delayedRouting;
}
/** setDelayedRouting. */
public void setDelayedRouting(DelayedRoutingApiModel delayedRouting) {
this.delayedRouting = delayedRouting;
}
/**
* itemId.
*
* @return WorkflowStep
*/
public WorkflowStep itemId(String itemId) {
this.itemId = itemId;
return this;
}
/**
* .
*
* @return itemId
*/
@ApiModelProperty(value = "")
public String getItemId() {
return itemId;
}
/** setItemId. */
public void setItemId(String itemId) {
this.itemId = itemId;
}
/**
* recipientRouting.
*
* @return WorkflowStep
*/
public WorkflowStep recipientRouting(RecipientRouting recipientRouting) {
this.recipientRouting = recipientRouting;
return this;
}
/**
* Get recipientRouting.
*
* @return recipientRouting
*/
@ApiModelProperty(value = "")
public RecipientRouting getRecipientRouting() {
return recipientRouting;
}
/** setRecipientRouting. */
public void setRecipientRouting(RecipientRouting recipientRouting) {
this.recipientRouting = recipientRouting;
}
/**
* status.
*
* @return WorkflowStep
*/
public WorkflowStep 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;
}
/** setStatus. */
public void setStatus(String status) {
this.status = status;
}
/**
* triggeredDate.
*
* @return WorkflowStep
*/
public WorkflowStep triggeredDate(String triggeredDate) {
this.triggeredDate = triggeredDate;
return this;
}
/**
* .
*
* @return triggeredDate
*/
@ApiModelProperty(value = "")
public String getTriggeredDate() {
return triggeredDate;
}
/** setTriggeredDate. */
public void setTriggeredDate(String triggeredDate) {
this.triggeredDate = triggeredDate;
}
/**
* triggerOnItem.
*
* @return WorkflowStep
*/
public WorkflowStep triggerOnItem(String triggerOnItem) {
this.triggerOnItem = triggerOnItem;
return this;
}
/**
* .
*
* @return triggerOnItem
*/
@ApiModelProperty(value = "")
public String getTriggerOnItem() {
return triggerOnItem;
}
/** setTriggerOnItem. */
public void setTriggerOnItem(String triggerOnItem) {
this.triggerOnItem = triggerOnItem;
}
/**
* workflowStepId.
*
* @return WorkflowStep
*/
public WorkflowStep workflowStepId(String workflowStepId) {
this.workflowStepId = workflowStepId;
return this;
}
/**
* .
*
* @return workflowStepId
*/
@ApiModelProperty(value = "")
public String getWorkflowStepId() {
return workflowStepId;
}
/** setWorkflowStepId. */
public void setWorkflowStepId(String workflowStepId) {
this.workflowStepId = workflowStepId;
}
/**
* 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;
}
WorkflowStep workflowStep = (WorkflowStep) o;
return Objects.equals(this.action, workflowStep.action)
&& Objects.equals(this.completedDate, workflowStep.completedDate)
&& Objects.equals(this.delayedRouting, workflowStep.delayedRouting)
&& Objects.equals(this.itemId, workflowStep.itemId)
&& Objects.equals(this.recipientRouting, workflowStep.recipientRouting)
&& Objects.equals(this.status, workflowStep.status)
&& Objects.equals(this.triggeredDate, workflowStep.triggeredDate)
&& Objects.equals(this.triggerOnItem, workflowStep.triggerOnItem)
&& Objects.equals(this.workflowStepId, workflowStep.workflowStepId);
}
/** Returns the HashCode. */
@Override
public int hashCode() {
return Objects.hash(
action,
completedDate,
delayedRouting,
itemId,
recipientRouting,
status,
triggeredDate,
triggerOnItem,
workflowStepId);
}
/** Converts the given object to string. */
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class WorkflowStep {\n");
sb.append(" action: ").append(toIndentedString(action)).append("\n");
sb.append(" completedDate: ").append(toIndentedString(completedDate)).append("\n");
sb.append(" delayedRouting: ").append(toIndentedString(delayedRouting)).append("\n");
sb.append(" itemId: ").append(toIndentedString(itemId)).append("\n");
sb.append(" recipientRouting: ").append(toIndentedString(recipientRouting)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" triggeredDate: ").append(toIndentedString(triggeredDate)).append("\n");
sb.append(" triggerOnItem: ").append(toIndentedString(triggerOnItem)).append("\n");
sb.append(" workflowStepId: ").append(toIndentedString(workflowStepId)).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 ");
}
}