org.openmetadata.schema.api.governance.CreateWorkflowInstanceState Maven / Gradle / Ivy
package org.openmetadata.schema.api.governance;
import javax.annotation.processing.Generated;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* CreateWorkflowInstanceStateRequest
*
* Create Workflow Instance State Request
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"workflowDefinitionReference"
})
@Generated("jsonschema2pojo")
public class CreateWorkflowInstanceState {
/**
* A unique name that identifies an entity. Example for table 'DatabaseService.Database.Schema.Table'.
* (Required)
*
*/
@JsonProperty("workflowDefinitionReference")
@JsonPropertyDescription("A unique name that identifies an entity. Example for table 'DatabaseService.Database.Schema.Table'.")
@Size(min = 1, max = 3072)
@NotNull
private String workflowDefinitionReference;
/**
* A unique name that identifies an entity. Example for table 'DatabaseService.Database.Schema.Table'.
* (Required)
*
*/
@JsonProperty("workflowDefinitionReference")
public String getWorkflowDefinitionReference() {
return workflowDefinitionReference;
}
/**
* A unique name that identifies an entity. Example for table 'DatabaseService.Database.Schema.Table'.
* (Required)
*
*/
@JsonProperty("workflowDefinitionReference")
public void setWorkflowDefinitionReference(String workflowDefinitionReference) {
this.workflowDefinitionReference = workflowDefinitionReference;
}
public CreateWorkflowInstanceState withWorkflowDefinitionReference(String workflowDefinitionReference) {
this.workflowDefinitionReference = workflowDefinitionReference;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(CreateWorkflowInstanceState.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("workflowDefinitionReference");
sb.append('=');
sb.append(((this.workflowDefinitionReference == null)?"":this.workflowDefinitionReference));
sb.append(',');
if (sb.charAt((sb.length()- 1)) == ',') {
sb.setCharAt((sb.length()- 1), ']');
} else {
sb.append(']');
}
return sb.toString();
}
@Override
public int hashCode() {
int result = 1;
result = ((result* 31)+((this.workflowDefinitionReference == null)? 0 :this.workflowDefinitionReference.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof CreateWorkflowInstanceState) == false) {
return false;
}
CreateWorkflowInstanceState rhs = ((CreateWorkflowInstanceState) other);
return ((this.workflowDefinitionReference == rhs.workflowDefinitionReference)||((this.workflowDefinitionReference!= null)&&this.workflowDefinitionReference.equals(rhs.workflowDefinitionReference)));
}
}