org.finra.herd.sdk.model.WorkflowStep Maven / Gradle / Ivy
/*
* herd-external
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 0.125.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package org.finra.herd.sdk.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.joda.time.DateTime;
/**
* WorkflowStep
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-07-16T17:44:47.669-04:00[America/New_York]")
public class WorkflowStep {
@JsonProperty("id")
private String id = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("startTime")
private DateTime startTime = null;
@JsonProperty("endTime")
private DateTime endTime = null;
public WorkflowStep id(String id) {
this.id = id;
return this;
}
/**
* The internal identifier that uniquely references a step
* @return id
**/
@ApiModelProperty(required = true, value = "The internal identifier that uniquely references a step")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public WorkflowStep name(String name) {
this.name = name;
return this;
}
/**
* The name of the step
* @return name
**/
@ApiModelProperty(value = "The name of the step")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public WorkflowStep startTime(DateTime startTime) {
this.startTime = startTime;
return this;
}
/**
* The start time of the step
* @return startTime
**/
@ApiModelProperty(value = "The start time of the step")
public DateTime getStartTime() {
return startTime;
}
public void setStartTime(DateTime startTime) {
this.startTime = startTime;
}
public WorkflowStep endTime(DateTime endTime) {
this.endTime = endTime;
return this;
}
/**
* The end time of the step
* @return endTime
**/
@ApiModelProperty(value = "The end time of the step")
public DateTime getEndTime() {
return endTime;
}
public void setEndTime(DateTime endTime) {
this.endTime = endTime;
}
@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.id, workflowStep.id) &&
Objects.equals(this.name, workflowStep.name) &&
Objects.equals(this.startTime, workflowStep.startTime) &&
Objects.equals(this.endTime, workflowStep.endTime);
}
@Override
public int hashCode() {
return Objects.hash(id, name, startTime, endTime);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class WorkflowStep {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n");
sb.append(" endTime: ").append(toIndentedString(endTime)).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 ");
}
}