com.seeq.model.ColumnRule Maven / Gradle / Ivy
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 63.1.6-v202409101657
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.seeq.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.v3.oas.annotations.media.Schema;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
/**
* The rules associated with the column definition
*/
@Schema(description = "The rules associated with the column definition")
public class ColumnRule {
@JsonProperty("arguments")
private Map arguments = new HashMap();
@JsonProperty("columnId")
private UUID columnId = null;
@JsonProperty("evaluationOrder")
private Integer evaluationOrder = null;
@JsonProperty("id")
private UUID id = null;
@JsonProperty("inputColumn1")
private UUID inputColumn1 = null;
@JsonProperty("inputColumn2")
private UUID inputColumn2 = null;
@JsonProperty("rule")
private String rule = null;
public ColumnRule arguments(Map arguments) {
this.arguments = arguments;
return this;
}
public ColumnRule putArgumentsItem(String key, String argumentsItem) {
if (this.arguments == null) {
this.arguments = new HashMap();
}
this.arguments.put(key, argumentsItem);
return this;
}
/**
* Get arguments
* @return arguments
**/
@Schema(description = "")
public Map getArguments() {
return arguments;
}
public void setArguments(Map arguments) {
this.arguments = arguments;
}
public ColumnRule columnId(UUID columnId) {
this.columnId = columnId;
return this;
}
/**
* Get columnId
* @return columnId
**/
@Schema(description = "")
public UUID getColumnId() {
return columnId;
}
public void setColumnId(UUID columnId) {
this.columnId = columnId;
}
public ColumnRule evaluationOrder(Integer evaluationOrder) {
this.evaluationOrder = evaluationOrder;
return this;
}
/**
* Get evaluationOrder
* @return evaluationOrder
**/
@Schema(description = "")
public Integer getEvaluationOrder() {
return evaluationOrder;
}
public void setEvaluationOrder(Integer evaluationOrder) {
this.evaluationOrder = evaluationOrder;
}
public ColumnRule id(UUID id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@Schema(description = "")
public UUID getId() {
return id;
}
public void setId(UUID id) {
this.id = id;
}
public ColumnRule inputColumn1(UUID inputColumn1) {
this.inputColumn1 = inputColumn1;
return this;
}
/**
* Get inputColumn1
* @return inputColumn1
**/
@Schema(description = "")
public UUID getInputColumn1() {
return inputColumn1;
}
public void setInputColumn1(UUID inputColumn1) {
this.inputColumn1 = inputColumn1;
}
public ColumnRule inputColumn2(UUID inputColumn2) {
this.inputColumn2 = inputColumn2;
return this;
}
/**
* Get inputColumn2
* @return inputColumn2
**/
@Schema(description = "")
public UUID getInputColumn2() {
return inputColumn2;
}
public void setInputColumn2(UUID inputColumn2) {
this.inputColumn2 = inputColumn2;
}
public ColumnRule rule(String rule) {
this.rule = rule;
return this;
}
/**
* Get rule
* @return rule
**/
@Schema(description = "")
public String getRule() {
return rule;
}
public void setRule(String rule) {
this.rule = rule;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ColumnRule columnRule = (ColumnRule) o;
return Objects.equals(this.arguments, columnRule.arguments) &&
Objects.equals(this.columnId, columnRule.columnId) &&
Objects.equals(this.evaluationOrder, columnRule.evaluationOrder) &&
Objects.equals(this.id, columnRule.id) &&
Objects.equals(this.inputColumn1, columnRule.inputColumn1) &&
Objects.equals(this.inputColumn2, columnRule.inputColumn2) &&
Objects.equals(this.rule, columnRule.rule);
}
@Override
public int hashCode() {
return Objects.hash(arguments, columnId, evaluationOrder, id, inputColumn1, inputColumn2, rule);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ColumnRule {\n");
sb.append(" arguments: ").append(toIndentedString(arguments)).append("\n");
sb.append(" columnId: ").append(toIndentedString(columnId)).append("\n");
sb.append(" evaluationOrder: ").append(toIndentedString(evaluationOrder)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" inputColumn1: ").append(toIndentedString(inputColumn1)).append("\n");
sb.append(" inputColumn2: ").append(toIndentedString(inputColumn2)).append("\n");
sb.append(" rule: ").append(toIndentedString(rule)).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 ");
}
}