All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.seeq.model.FunctionInputV1 Maven / Gradle / Ivy

There is a newer version: 66.0.0-v202410141803
Show newest version
/*
 * 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 com.seeq.model.FormulaParameterInputV1;
import com.seeq.model.ScalarPropertyV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
 * The list of functions to be added or modified
 */
@Schema(description = "The list of functions to be added or modified")
public class FunctionInputV1 {
  @JsonProperty("additionalProperties")
  private List additionalProperties = new ArrayList();

  @JsonProperty("dataId")
  private String dataId = null;

  @JsonProperty("description")
  private String description = null;

  @JsonProperty("formula")
  private String formula = null;

  @JsonProperty("hostId")
  private String hostId = null;

  @JsonProperty("name")
  private String name = null;

  @JsonProperty("packageName")
  private String packageName = null;

  @JsonProperty("parameters")
  private List parameters = new ArrayList();

  @JsonProperty("properties")
  private List properties = new ArrayList();

  @JsonProperty("scopedTo")
  private String scopedTo = null;

  @JsonProperty("syncToken")
  private String syncToken = null;

  @JsonProperty("type")
  private String type = null;

  public FunctionInputV1 additionalProperties(List additionalProperties) {
    this.additionalProperties = additionalProperties;
    return this;
  }

  public FunctionInputV1 addAdditionalPropertiesItem(ScalarPropertyV1 additionalPropertiesItem) {
    if (this.additionalProperties == null) {
      this.additionalProperties = new ArrayList();
    }
    this.additionalProperties.add(additionalPropertiesItem);
    return this;
  }

   /**
   * Get additionalProperties
   * @return additionalProperties
  **/
  @Schema(description = "")
  public List getAdditionalProperties() {
    return additionalProperties;
  }

  public void setAdditionalProperties(List additionalProperties) {
    this.additionalProperties = additionalProperties;
  }

  public FunctionInputV1 dataId(String dataId) {
    this.dataId = dataId;
    return this;
  }

   /**
   * The data ID of this item. Note: This is not the Seeq ID, but the unique identifier that the remote datasource uses.
   * @return dataId
  **/
  @Schema(description = "The data ID of this item. Note: This is not the Seeq ID, but the unique identifier that the remote datasource uses.")
  public String getDataId() {
    return dataId;
  }

  public void setDataId(String dataId) {
    this.dataId = dataId;
  }

  public FunctionInputV1 description(String description) {
    this.description = description;
    return this;
  }

   /**
   * Clarifying information or other plain language description of this item. An input of just whitespaces is equivalent to a null input.
   * @return description
  **/
  @Schema(description = "Clarifying information or other plain language description of this item. An input of just whitespaces is equivalent to a null input.")
  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public FunctionInputV1 formula(String formula) {
    this.formula = formula;
    return this;
  }

   /**
   * The formula that represents the body of the function
   * @return formula
  **/
  @Schema(required = true, description = "The formula that represents the body of the function")
  public String getFormula() {
    return formula;
  }

  public void setFormula(String formula) {
    this.formula = formula;
  }

  public FunctionInputV1 hostId(String hostId) {
    this.hostId = hostId;
    return this;
  }

   /**
   * The ID of the datasource hosting this item. Note that this is a Seeq-generated ID, not the way that the datasource identifies itself.
   * @return hostId
  **/
  @Schema(description = "The ID of the datasource hosting this item. Note that this is a Seeq-generated ID, not the way that the datasource identifies itself.")
  public String getHostId() {
    return hostId;
  }

  public void setHostId(String hostId) {
    this.hostId = hostId;
  }

  public FunctionInputV1 name(String name) {
    this.name = name;
    return this;
  }

   /**
   * Human readable name. Required during creation. An input of just whitespaces is equivalent to a null input.
   * @return name
  **/
  @Schema(required = true, description = "Human readable name. Required during creation. An input of just whitespaces is equivalent to a null input.")
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public FunctionInputV1 packageName(String packageName) {
    this.packageName = packageName;
    return this;
  }

   /**
   * The name of the package that contains this function. Valid only for UserDefinedFormulaFunctions when creating the function, cannot be changed for existing UDFs.
   * @return packageName
  **/
  @Schema(description = "The name of the package that contains this function. Valid only for UserDefinedFormulaFunctions when creating the function, cannot be changed for existing UDFs.")
  public String getPackageName() {
    return packageName;
  }

  public void setPackageName(String packageName) {
    this.packageName = packageName;
  }

  public FunctionInputV1 parameters(List parameters) {
    this.parameters = parameters;
    return this;
  }

  public FunctionInputV1 addParametersItem(FormulaParameterInputV1 parametersItem) {
    if (this.parameters == null) {
      this.parameters = new ArrayList();
    }
    this.parameters.add(parametersItem);
    return this;
  }

   /**
   * Any parameters that should be placed in the context of the executing formula. At least one unbound parameter is required for AggregatingFormulaFunctions and Charts.
   * @return parameters
  **/
  @Schema(description = "Any parameters that should be placed in the context of the executing formula. At least one unbound parameter is required for AggregatingFormulaFunctions and Charts.")
  public List getParameters() {
    return parameters;
  }

  public void setParameters(List parameters) {
    this.parameters = parameters;
  }

  public FunctionInputV1 properties(List properties) {
    this.properties = properties;
    return this;
  }

  public FunctionInputV1 addPropertiesItem(ScalarPropertyV1 propertiesItem) {
    if (this.properties == null) {
      this.properties = new ArrayList();
    }
    this.properties.add(propertiesItem);
    return this;
  }

   /**
   * Get properties
   * @return properties
  **/
  @Schema(description = "")
  public List getProperties() {
    return properties;
  }

  public void setProperties(List properties) {
    this.properties = properties;
  }

  public FunctionInputV1 scopedTo(String scopedTo) {
    this.scopedTo = scopedTo;
    return this;
  }

   /**
   * The ID of the workbook to which this item will be scoped.
   * @return scopedTo
  **/
  @Schema(description = "The ID of the workbook to which this item will be scoped.")
  public String getScopedTo() {
    return scopedTo;
  }

  public void setScopedTo(String scopedTo) {
    this.scopedTo = scopedTo;
  }

  public FunctionInputV1 syncToken(String syncToken) {
    this.syncToken = syncToken;
    return this;
  }

   /**
   * An arbitrary token (often a date or random ID) that is used during metadata syncs. At the end of a full sync, items with mismatching sync tokens are identified as stale and may be archived using the Datasources clean-up API.
   * @return syncToken
  **/
  @Schema(description = "An arbitrary token (often a date or random ID) that is used during metadata syncs. At the end of a full sync, items with mismatching sync tokens are identified as stale and may be archived using the Datasources clean-up API.")
  public String getSyncToken() {
    return syncToken;
  }

  public void setSyncToken(String syncToken) {
    this.syncToken = syncToken;
  }

  public FunctionInputV1 type(String type) {
    this.type = type;
    return this;
  }

   /**
   * The item subtype for this function. Valid types include AggregatingFormulaFunction, UserDefinedFormulaFunction, and Chart
   * @return type
  **/
  @Schema(required = true, description = "The item subtype for this function. Valid types include AggregatingFormulaFunction, UserDefinedFormulaFunction, and Chart")
  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    FunctionInputV1 functionInputV1 = (FunctionInputV1) o;
    return Objects.equals(this.additionalProperties, functionInputV1.additionalProperties) &&
        Objects.equals(this.dataId, functionInputV1.dataId) &&
        Objects.equals(this.description, functionInputV1.description) &&
        Objects.equals(this.formula, functionInputV1.formula) &&
        Objects.equals(this.hostId, functionInputV1.hostId) &&
        Objects.equals(this.name, functionInputV1.name) &&
        Objects.equals(this.packageName, functionInputV1.packageName) &&
        Objects.equals(this.parameters, functionInputV1.parameters) &&
        Objects.equals(this.properties, functionInputV1.properties) &&
        Objects.equals(this.scopedTo, functionInputV1.scopedTo) &&
        Objects.equals(this.syncToken, functionInputV1.syncToken) &&
        Objects.equals(this.type, functionInputV1.type);
  }

  @Override
  public int hashCode() {
    return Objects.hash(additionalProperties, dataId, description, formula, hostId, name, packageName, parameters, properties, scopedTo, syncToken, type);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class FunctionInputV1 {\n");
    
    sb.append("    additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
    sb.append("    dataId: ").append(toIndentedString(dataId)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    formula: ").append(toIndentedString(formula)).append("\n");
    sb.append("    hostId: ").append(toIndentedString(hostId)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    packageName: ").append(toIndentedString(packageName)).append("\n");
    sb.append("    parameters: ").append(toIndentedString(parameters)).append("\n");
    sb.append("    properties: ").append(toIndentedString(properties)).append("\n");
    sb.append("    scopedTo: ").append(toIndentedString(scopedTo)).append("\n");
    sb.append("    syncToken: ").append(toIndentedString(syncToken)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).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    ");
  }
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy