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: 60.1.3-v202304250417
*
*
* 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.FormulaCompilerErrorOutputV1;
import com.seeq.model.FormulaLogV1;
import com.seeq.model.FormulaUpgradeOutputV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* ScalarEvaluateOutputV1
*/
public class ScalarEvaluateOutputV1 {
@JsonProperty("errors")
private List errors = new ArrayList();
@JsonProperty("isUncertain")
private Boolean isUncertain = false;
@JsonProperty("metadata")
private Map metadata = new HashMap();
@JsonProperty("returnType")
private String returnType = null;
@JsonProperty("statusMessage")
private String statusMessage = null;
@JsonProperty("uom")
private String uom = null;
@JsonProperty("upgradeDetails")
private FormulaUpgradeOutputV1 upgradeDetails = null;
@JsonProperty("value")
private Object value = null;
@JsonProperty("warningCount")
private Integer warningCount = null;
@JsonProperty("warningLogs")
private List warningLogs = new ArrayList();
public ScalarEvaluateOutputV1 errors(List errors) {
this.errors = errors;
return this;
}
public ScalarEvaluateOutputV1 addErrorsItem(FormulaCompilerErrorOutputV1 errorsItem) {
if (this.errors == null) {
this.errors = new ArrayList();
}
this.errors.add(errorsItem);
return this;
}
/**
* Errors (if any) from the formula
* @return errors
**/
@Schema(description = "Errors (if any) from the formula")
public List getErrors() {
return errors;
}
public void setErrors(List errors) {
this.errors = errors;
}
public ScalarEvaluateOutputV1 isUncertain(Boolean isUncertain) {
this.isUncertain = isUncertain;
return this;
}
/**
* True if this scalar is uncertain
* @return isUncertain
**/
@Schema(description = "True if this scalar is uncertain")
public Boolean getIsUncertain() {
return isUncertain;
}
public void setIsUncertain(Boolean isUncertain) {
this.isUncertain = isUncertain;
}
public ScalarEvaluateOutputV1 metadata(Map metadata) {
this.metadata = metadata;
return this;
}
public ScalarEvaluateOutputV1 putMetadataItem(String key, String metadataItem) {
if (this.metadata == null) {
this.metadata = new HashMap();
}
this.metadata.put(key, metadataItem);
return this;
}
/**
* Metadata describing the compiled formula's result
* @return metadata
**/
@Schema(description = "Metadata describing the compiled formula's result")
public Map getMetadata() {
return metadata;
}
public void setMetadata(Map metadata) {
this.metadata = metadata;
}
public ScalarEvaluateOutputV1 returnType(String returnType) {
this.returnType = returnType;
return this;
}
/**
* The data type of the compiled formula's result
* @return returnType
**/
@Schema(description = "The data type of the compiled formula's result")
public String getReturnType() {
return returnType;
}
public void setReturnType(String returnType) {
this.returnType = returnType;
}
public ScalarEvaluateOutputV1 statusMessage(String statusMessage) {
this.statusMessage = statusMessage;
return this;
}
/**
* A plain language status message with information about any issues that may have been encountered during an operation. Null if the status message has not been set.
* @return statusMessage
**/
@Schema(description = "A plain language status message with information about any issues that may have been encountered during an operation. Null if the status message has not been set.")
public String getStatusMessage() {
return statusMessage;
}
public void setStatusMessage(String statusMessage) {
this.statusMessage = statusMessage;
}
public ScalarEvaluateOutputV1 uom(String uom) {
this.uom = uom;
return this;
}
/**
* The unit of measure of the scalar
* @return uom
**/
@Schema(required = true, description = "The unit of measure of the scalar")
public String getUom() {
return uom;
}
public void setUom(String uom) {
this.uom = uom;
}
public ScalarEvaluateOutputV1 upgradeDetails(FormulaUpgradeOutputV1 upgradeDetails) {
this.upgradeDetails = upgradeDetails;
return this;
}
/**
* Get upgradeDetails
* @return upgradeDetails
**/
@Schema(description = "")
public FormulaUpgradeOutputV1 getUpgradeDetails() {
return upgradeDetails;
}
public void setUpgradeDetails(FormulaUpgradeOutputV1 upgradeDetails) {
this.upgradeDetails = upgradeDetails;
}
public ScalarEvaluateOutputV1 value(Object value) {
this.value = value;
return this;
}
/**
* The value of the scalar
* @return value
**/
@Schema(required = true, description = "The value of the scalar")
public Object getValue() {
return value;
}
public void setValue(Object value) {
this.value = value;
}
public ScalarEvaluateOutputV1 warningCount(Integer warningCount) {
this.warningCount = warningCount;
return this;
}
/**
* The total number of warnings that have occurred
* @return warningCount
**/
@Schema(description = "The total number of warnings that have occurred")
public Integer getWarningCount() {
return warningCount;
}
public void setWarningCount(Integer warningCount) {
this.warningCount = warningCount;
}
public ScalarEvaluateOutputV1 warningLogs(List warningLogs) {
this.warningLogs = warningLogs;
return this;
}
public ScalarEvaluateOutputV1 addWarningLogsItem(FormulaLogV1 warningLogsItem) {
if (this.warningLogs == null) {
this.warningLogs = new ArrayList();
}
this.warningLogs.add(warningLogsItem);
return this;
}
/**
* The Formula warning logs, which includes the text, line number, and column number where the warning occurred in addition to the warning details
* @return warningLogs
**/
@Schema(description = "The Formula warning logs, which includes the text, line number, and column number where the warning occurred in addition to the warning details")
public List getWarningLogs() {
return warningLogs;
}
public void setWarningLogs(List warningLogs) {
this.warningLogs = warningLogs;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ScalarEvaluateOutputV1 scalarEvaluateOutputV1 = (ScalarEvaluateOutputV1) o;
return Objects.equals(this.errors, scalarEvaluateOutputV1.errors) &&
Objects.equals(this.isUncertain, scalarEvaluateOutputV1.isUncertain) &&
Objects.equals(this.metadata, scalarEvaluateOutputV1.metadata) &&
Objects.equals(this.returnType, scalarEvaluateOutputV1.returnType) &&
Objects.equals(this.statusMessage, scalarEvaluateOutputV1.statusMessage) &&
Objects.equals(this.uom, scalarEvaluateOutputV1.uom) &&
Objects.equals(this.upgradeDetails, scalarEvaluateOutputV1.upgradeDetails) &&
Objects.equals(this.value, scalarEvaluateOutputV1.value) &&
Objects.equals(this.warningCount, scalarEvaluateOutputV1.warningCount) &&
Objects.equals(this.warningLogs, scalarEvaluateOutputV1.warningLogs);
}
@Override
public int hashCode() {
return Objects.hash(errors, isUncertain, metadata, returnType, statusMessage, uom, upgradeDetails, value, warningCount, warningLogs);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ScalarEvaluateOutputV1 {\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append(" isUncertain: ").append(toIndentedString(isUncertain)).append("\n");
sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
sb.append(" returnType: ").append(toIndentedString(returnType)).append("\n");
sb.append(" statusMessage: ").append(toIndentedString(statusMessage)).append("\n");
sb.append(" uom: ").append(toIndentedString(uom)).append("\n");
sb.append(" upgradeDetails: ").append(toIndentedString(upgradeDetails)).append("\n");
sb.append(" value: ").append(toIndentedString(value)).append("\n");
sb.append(" warningCount: ").append(toIndentedString(warningCount)).append("\n");
sb.append(" warningLogs: ").append(toIndentedString(warningLogs)).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 ");
}
}