org.openmetadata.schema.api.feed.CloseTask Maven / Gradle / Ivy
package org.openmetadata.schema.api.feed;
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;
/**
* CloseTaskRequest
*
* Close Task request
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"comment",
"testCaseFQN"
})
@Generated("jsonschema2pojo")
public class CloseTask {
/**
* The closing comment explaining why the task is being closed.
* (Required)
*
*/
@JsonProperty("comment")
@JsonPropertyDescription("The closing comment explaining why the task is being closed.")
@NotNull
private String comment;
/**
* A unique name that identifies an entity. Example for table 'DatabaseService.Database.Schema.Table'.
*
*/
@JsonProperty("testCaseFQN")
@JsonPropertyDescription("A unique name that identifies an entity. Example for table 'DatabaseService.Database.Schema.Table'.")
@Size(min = 1, max = 3072)
private String testCaseFQN;
/**
* The closing comment explaining why the task is being closed.
* (Required)
*
*/
@JsonProperty("comment")
public String getComment() {
return comment;
}
/**
* The closing comment explaining why the task is being closed.
* (Required)
*
*/
@JsonProperty("comment")
public void setComment(String comment) {
this.comment = comment;
}
public CloseTask withComment(String comment) {
this.comment = comment;
return this;
}
/**
* A unique name that identifies an entity. Example for table 'DatabaseService.Database.Schema.Table'.
*
*/
@JsonProperty("testCaseFQN")
public String getTestCaseFQN() {
return testCaseFQN;
}
/**
* A unique name that identifies an entity. Example for table 'DatabaseService.Database.Schema.Table'.
*
*/
@JsonProperty("testCaseFQN")
public void setTestCaseFQN(String testCaseFQN) {
this.testCaseFQN = testCaseFQN;
}
public CloseTask withTestCaseFQN(String testCaseFQN) {
this.testCaseFQN = testCaseFQN;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(CloseTask.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("comment");
sb.append('=');
sb.append(((this.comment == null)?"":this.comment));
sb.append(',');
sb.append("testCaseFQN");
sb.append('=');
sb.append(((this.testCaseFQN == null)?"":this.testCaseFQN));
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.comment == null)? 0 :this.comment.hashCode()));
result = ((result* 31)+((this.testCaseFQN == null)? 0 :this.testCaseFQN.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof CloseTask) == false) {
return false;
}
CloseTask rhs = ((CloseTask) other);
return (((this.comment == rhs.comment)||((this.comment!= null)&&this.comment.equals(rhs.comment)))&&((this.testCaseFQN == rhs.testCaseFQN)||((this.testCaseFQN!= null)&&this.testCaseFQN.equals(rhs.testCaseFQN))));
}
}