com.seeq.model.ColumnRuleOutputV1 Maven / Gradle / Ivy
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 65.1.6-v202409201821
*
*
* 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.ArrayList;
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 ColumnRuleOutputV1 {
@JsonProperty("arguments")
private Map arguments = new HashMap();
@JsonProperty("inputs")
private List inputs = new ArrayList();
@JsonProperty("rule")
private String rule = null;
public ColumnRuleOutputV1 arguments(Map arguments) {
this.arguments = arguments;
return this;
}
public ColumnRuleOutputV1 putArgumentsItem(String key, String argumentsItem) {
this.arguments.put(key, argumentsItem);
return this;
}
/**
* The column rule arguments
* @return arguments
**/
@Schema(required = true, description = "The column rule arguments")
public Map getArguments() {
return arguments;
}
public void setArguments(Map arguments) {
this.arguments = arguments;
}
public ColumnRuleOutputV1 inputs(List inputs) {
this.inputs = inputs;
return this;
}
public ColumnRuleOutputV1 addInputsItem(UUID inputsItem) {
if (this.inputs == null) {
this.inputs = new ArrayList();
}
this.inputs.add(inputsItem);
return this;
}
/**
* The ordered list of columns that are used by the rule
* @return inputs
**/
@Schema(description = "The ordered list of columns that are used by the rule")
public List getInputs() {
return inputs;
}
public void setInputs(List inputs) {
this.inputs = inputs;
}
public ColumnRuleOutputV1 rule(String rule) {
this.rule = rule;
return this;
}
/**
* The column rule name
* @return rule
**/
@Schema(required = true, description = "The column rule name")
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;
}
ColumnRuleOutputV1 columnRuleOutputV1 = (ColumnRuleOutputV1) o;
return Objects.equals(this.arguments, columnRuleOutputV1.arguments) &&
Objects.equals(this.inputs, columnRuleOutputV1.inputs) &&
Objects.equals(this.rule, columnRuleOutputV1.rule);
}
@Override
public int hashCode() {
return Objects.hash(arguments, inputs, rule);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ColumnRuleOutputV1 {\n");
sb.append(" arguments: ").append(toIndentedString(arguments)).append("\n");
sb.append(" inputs: ").append(toIndentedString(inputs)).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 ");
}
}