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

io.logicdrop.openapi.models.ProcessorPayload Maven / Gradle / Ivy

There is a newer version: 4.10.0
Show newest version
/*
 * Sparks OpenAPI
 * Generated documentation for the Logicdrop Sparks API and OpenAPI clients.  Logicdrop Sparks lets users build rules, analyze data, and automate documents.  Use it to make decisions faster, generate documents better, and learn from your data.  ### Documentation - [User Documentation](https://docs.logicdrop.com)  ### Modules - [Sparks Compute](https://docs.logicdrop.com/rules/introduction) - [Sparks Decision Tables](https://docs.logicdrop.com/rules/authoring-decision-tables) - [Sparks Documents](https://docs.logicdrop.com/documents/introduction)  ### Clients - [OpenAPI Clients](https://docs.logicdrop.com/development/sample-clients)  ### Security - [Authorizing API Requests](https://docs.logicdrop.com/development/authorization) 
 *
 * The version of the OpenAPI document: v_VERSION_, build# _BUILD_
 * Contact: [email protected]
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package io.logicdrop.openapi.models;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;

/**
 * Processor Payload
 */
@ApiModel(description = "Processor Payload")
@JsonPropertyOrder({
  ProcessorPayload.JSON_PROPERTY_INPUTS,
  ProcessorPayload.JSON_PROPERTY_OUTPUTS,
  ProcessorPayload.JSON_PROPERTY_PROPERTIES
})

public class ProcessorPayload {
  public static final String JSON_PROPERTY_INPUTS = "inputs";
  private List> inputs = null;

  public static final String JSON_PROPERTY_OUTPUTS = "outputs";
  private Map outputs = null;

  public static final String JSON_PROPERTY_PROPERTIES = "properties";
  private Map properties = null;


  public ProcessorPayload inputs(List> inputs) {
    
    this.inputs = inputs;
    return this;
  }

  public ProcessorPayload addInputsItem(Map inputsItem) {
    if (this.inputs == null) {
      this.inputs = new ArrayList<>();
    }
    this.inputs.add(inputsItem);
    return this;
  }

   /**
   * Inputs to process
   * @return inputs
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Inputs to process")
  @JsonProperty(JSON_PROPERTY_INPUTS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public List> getInputs() {
    return inputs;
  }


  public void setInputs(List> inputs) {
    this.inputs = inputs;
  }


  public ProcessorPayload outputs(Map outputs) {
    
    this.outputs = outputs;
    return this;
  }

  public ProcessorPayload putOutputsItem(String key, Object outputsItem) {
    if (this.outputs == null) {
      this.outputs = new HashMap<>();
    }
    this.outputs.put(key, outputsItem);
    return this;
  }

   /**
   * Results of process
   * @return outputs
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Results of process")
  @JsonProperty(JSON_PROPERTY_OUTPUTS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Map getOutputs() {
    return outputs;
  }


  public void setOutputs(Map outputs) {
    this.outputs = outputs;
  }


  public ProcessorPayload properties(Map properties) {
    
    this.properties = properties;
    return this;
  }

  public ProcessorPayload putPropertiesItem(String key, Object propertiesItem) {
    if (this.properties == null) {
      this.properties = new HashMap<>();
    }
    this.properties.put(key, propertiesItem);
    return this;
  }

   /**
   * Properties
   * @return properties
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Properties")
  @JsonProperty(JSON_PROPERTY_PROPERTIES)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Map getProperties() {
    return properties;
  }


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


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ProcessorPayload processorPayload = (ProcessorPayload) o;
    return Objects.equals(this.inputs, processorPayload.inputs) &&
        Objects.equals(this.outputs, processorPayload.outputs) &&
        Objects.equals(this.properties, processorPayload.properties);
  }

  @Override
  public int hashCode() {
    return Objects.hash(inputs, outputs, properties);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ProcessorPayload {\n");
    sb.append("    inputs: ").append(toIndentedString(inputs)).append("\n");
    sb.append("    outputs: ").append(toIndentedString(outputs)).append("\n");
    sb.append("    properties: ").append(toIndentedString(properties)).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