com.seeq.model.ColumnRuleInputV1 Maven / Gradle / Ivy
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 64.3.0-v202405012032
*
*
* 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 com.seeq.model.ColumnRuleAncestorInputV1;
import com.seeq.model.ColumnRuleConcatInputV1;
import com.seeq.model.ColumnRuleEventPropertyInputV1;
import com.seeq.model.ColumnRuleItemPropertyInputV1;
import com.seeq.model.ColumnRulePathInputV1;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* The list of rules that determine the resulting value of a column. At least one rule is required
*/
@Schema(description = "The list of rules that determine the resulting value of a column. At least one rule is required")
public class ColumnRuleInputV1 {
@JsonProperty("ancestor")
private ColumnRuleAncestorInputV1 ancestor = null;
@JsonProperty("concat")
private ColumnRuleConcatInputV1 concat = null;
@JsonProperty("eventProperty")
private ColumnRuleEventPropertyInputV1 eventProperty = null;
@JsonProperty("itemProperty")
private ColumnRuleItemPropertyInputV1 itemProperty = null;
@JsonProperty("path")
private ColumnRulePathInputV1 path = null;
public ColumnRuleInputV1 ancestor(ColumnRuleAncestorInputV1 ancestor) {
this.ancestor = ancestor;
return this;
}
/**
* Get ancestor
* @return ancestor
**/
@Schema(description = "")
public ColumnRuleAncestorInputV1 getAncestor() {
return ancestor;
}
public void setAncestor(ColumnRuleAncestorInputV1 ancestor) {
this.ancestor = ancestor;
}
public ColumnRuleInputV1 concat(ColumnRuleConcatInputV1 concat) {
this.concat = concat;
return this;
}
/**
* Get concat
* @return concat
**/
@Schema(description = "")
public ColumnRuleConcatInputV1 getConcat() {
return concat;
}
public void setConcat(ColumnRuleConcatInputV1 concat) {
this.concat = concat;
}
public ColumnRuleInputV1 eventProperty(ColumnRuleEventPropertyInputV1 eventProperty) {
this.eventProperty = eventProperty;
return this;
}
/**
* Get eventProperty
* @return eventProperty
**/
@Schema(description = "")
public ColumnRuleEventPropertyInputV1 getEventProperty() {
return eventProperty;
}
public void setEventProperty(ColumnRuleEventPropertyInputV1 eventProperty) {
this.eventProperty = eventProperty;
}
public ColumnRuleInputV1 itemProperty(ColumnRuleItemPropertyInputV1 itemProperty) {
this.itemProperty = itemProperty;
return this;
}
/**
* Get itemProperty
* @return itemProperty
**/
@Schema(description = "")
public ColumnRuleItemPropertyInputV1 getItemProperty() {
return itemProperty;
}
public void setItemProperty(ColumnRuleItemPropertyInputV1 itemProperty) {
this.itemProperty = itemProperty;
}
public ColumnRuleInputV1 path(ColumnRulePathInputV1 path) {
this.path = path;
return this;
}
/**
* Get path
* @return path
**/
@Schema(description = "")
public ColumnRulePathInputV1 getPath() {
return path;
}
public void setPath(ColumnRulePathInputV1 path) {
this.path = path;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ColumnRuleInputV1 columnRuleInputV1 = (ColumnRuleInputV1) o;
return Objects.equals(this.ancestor, columnRuleInputV1.ancestor) &&
Objects.equals(this.concat, columnRuleInputV1.concat) &&
Objects.equals(this.eventProperty, columnRuleInputV1.eventProperty) &&
Objects.equals(this.itemProperty, columnRuleInputV1.itemProperty) &&
Objects.equals(this.path, columnRuleInputV1.path);
}
@Override
public int hashCode() {
return Objects.hash(ancestor, concat, eventProperty, itemProperty, path);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ColumnRuleInputV1 {\n");
sb.append(" ancestor: ").append(toIndentedString(ancestor)).append("\n");
sb.append(" concat: ").append(toIndentedString(concat)).append("\n");
sb.append(" eventProperty: ").append(toIndentedString(eventProperty)).append("\n");
sb.append(" itemProperty: ").append(toIndentedString(itemProperty)).append("\n");
sb.append(" path: ").append(toIndentedString(path)).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 ");
}
}