Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 65.1.3-v202408082312
*
*
* 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;
/**
* Returns an item descendant that matches certain properties. Note that only a single descendant can be returned. If multiple descendants match, or none match, null is returned. Column type must be UUID
*/
@Schema(description = "Returns an item descendant that matches certain properties. Note that only a single descendant can be returned. If multiple descendants match, or none match, null is returned. Column type must be UUID")
public class ColumnRuleDescendantInputV1 {
@JsonProperty("columnIndex")
private Integer columnIndex = null;
@JsonProperty("itemType")
private String itemType = null;
/**
* The operator to use for matching the property value. Available options are EQUALS, EQUALS_IGNORE_CASE, NOT_EQUALS, WITHIN and STRING_CONTAINS
*/
public enum PropertyMatchOperatorEnum {
EQUALS("EQUALS"),
EQUALS_IGNORE_CASE("EQUALS_IGNORE_CASE"),
NOT_EQUALS("NOT_EQUALS"),
WITHIN("WITHIN"),
STRING_CONTAINS("STRING_CONTAINS");
private String value;
PropertyMatchOperatorEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static PropertyMatchOperatorEnum fromValue(String input) {
for (PropertyMatchOperatorEnum b : PropertyMatchOperatorEnum.values()) {
if (b.value.equals(input)) {
return b;
}
}
return null;
}
} @JsonProperty("propertyMatchOperator")
private PropertyMatchOperatorEnum propertyMatchOperator = null;
@JsonProperty("propertyName")
private String propertyName = null;
@JsonProperty("propertyValue")
private String propertyValue = null;
public ColumnRuleDescendantInputV1 columnIndex(Integer columnIndex) {
this.columnIndex = columnIndex;
return this;
}
/**
* The index of the column that references the item to search descendants for. The column index is 1-based
* @return columnIndex
**/
@Schema(required = true, description = "The index of the column that references the item to search descendants for. The column index is 1-based")
public Integer getColumnIndex() {
return columnIndex;
}
public void setColumnIndex(Integer columnIndex) {
this.columnIndex = columnIndex;
}
public ColumnRuleDescendantInputV1 itemType(String itemType) {
this.itemType = itemType;
return this;
}
/**
* The type of item to search for. If not specified, the rule will search for all item types. If specified, it must be a valid item type. For example, if the column references an Area, the itemType could be \"Asset\" to search for all assets under the area. If the column references an Asset, the itemType could be \"Condition\" to search for all conditions under the asset
* @return itemType
**/
@Schema(description = "The type of item to search for. If not specified, the rule will search for all item types. If specified, it must be a valid item type. For example, if the column references an Area, the itemType could be \"Asset\" to search for all assets under the area. If the column references an Asset, the itemType could be \"Condition\" to search for all conditions under the asset")
public String getItemType() {
return itemType;
}
public void setItemType(String itemType) {
this.itemType = itemType;
}
public ColumnRuleDescendantInputV1 propertyMatchOperator(PropertyMatchOperatorEnum propertyMatchOperator) {
this.propertyMatchOperator = propertyMatchOperator;
return this;
}
/**
* The operator to use for matching the property value. Available options are EQUALS, EQUALS_IGNORE_CASE, NOT_EQUALS, WITHIN and STRING_CONTAINS
* @return propertyMatchOperator
**/
@Schema(required = true, description = "The operator to use for matching the property value. Available options are EQUALS, EQUALS_IGNORE_CASE, NOT_EQUALS, WITHIN and STRING_CONTAINS")
public PropertyMatchOperatorEnum getPropertyMatchOperator() {
return propertyMatchOperator;
}
public void setPropertyMatchOperator(PropertyMatchOperatorEnum propertyMatchOperator) {
this.propertyMatchOperator = propertyMatchOperator;
}
public ColumnRuleDescendantInputV1 propertyName(String propertyName) {
this.propertyName = propertyName;
return this;
}
/**
* The property name to search
* @return propertyName
**/
@Schema(required = true, description = "The property name to search")
public String getPropertyName() {
return propertyName;
}
public void setPropertyName(String propertyName) {
this.propertyName = propertyName;
}
public ColumnRuleDescendantInputV1 propertyValue(String propertyValue) {
this.propertyValue = propertyValue;
return this;
}
/**
* The property value to search for
* @return propertyValue
**/
@Schema(required = true, description = "The property value to search for")
public String getPropertyValue() {
return propertyValue;
}
public void setPropertyValue(String propertyValue) {
this.propertyValue = propertyValue;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ColumnRuleDescendantInputV1 columnRuleDescendantInputV1 = (ColumnRuleDescendantInputV1) o;
return Objects.equals(this.columnIndex, columnRuleDescendantInputV1.columnIndex) &&
Objects.equals(this.itemType, columnRuleDescendantInputV1.itemType) &&
Objects.equals(this.propertyMatchOperator, columnRuleDescendantInputV1.propertyMatchOperator) &&
Objects.equals(this.propertyName, columnRuleDescendantInputV1.propertyName) &&
Objects.equals(this.propertyValue, columnRuleDescendantInputV1.propertyValue);
}
@Override
public int hashCode() {
return Objects.hash(columnIndex, itemType, propertyMatchOperator, propertyName, propertyValue);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ColumnRuleDescendantInputV1 {\n");
sb.append(" columnIndex: ").append(toIndentedString(columnIndex)).append("\n");
sb.append(" itemType: ").append(toIndentedString(itemType)).append("\n");
sb.append(" propertyMatchOperator: ").append(toIndentedString(propertyMatchOperator)).append("\n");
sb.append(" propertyName: ").append(toIndentedString(propertyName)).append("\n");
sb.append(" propertyValue: ").append(toIndentedString(propertyValue)).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 ");
}
}