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

com.seeq.model.FunctionVariantOutputV1 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.FunctionParameterOutputV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
 * Functions in this document
 */
@Schema(description = "Functions in this document")
public class FunctionVariantOutputV1 {
  @JsonProperty("description")
  private String description = null;

  @JsonProperty("fluent")
  private Boolean fluent = false;

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

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

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

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

   /**
   * The description of the function
   * @return description
  **/
  @Schema(description = "The description of the function")
  public String getDescription() {
    return description;
  }

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

  public FunctionVariantOutputV1 fluent(Boolean fluent) {
    this.fluent = fluent;
    return this;
  }

   /**
   * True if this function is written in the fluent style
   * @return fluent
  **/
  @Schema(description = "True if this function is written in the fluent style")
  public Boolean getFluent() {
    return fluent;
  }

  public void setFluent(Boolean fluent) {
    this.fluent = fluent;
  }

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

   /**
   * The name of the function
   * @return name
  **/
  @Schema(description = "The name of the function")
  public String getName() {
    return name;
  }

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

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

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

   /**
   * The parameters of the function
   * @return parameters
  **/
  @Schema(description = "The parameters of the function")
  public List getParameters() {
    return parameters;
  }

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

  public FunctionVariantOutputV1 returnType(String returnType) {
    this.returnType = returnType;
    return this;
  }

   /**
   * The type of the function
   * @return returnType
  **/
  @Schema(description = "The type of the function")
  public String getReturnType() {
    return returnType;
  }

  public void setReturnType(String returnType) {
    this.returnType = returnType;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    FunctionVariantOutputV1 functionVariantOutputV1 = (FunctionVariantOutputV1) o;
    return Objects.equals(this.description, functionVariantOutputV1.description) &&
        Objects.equals(this.fluent, functionVariantOutputV1.fluent) &&
        Objects.equals(this.name, functionVariantOutputV1.name) &&
        Objects.equals(this.parameters, functionVariantOutputV1.parameters) &&
        Objects.equals(this.returnType, functionVariantOutputV1.returnType);
  }

  @Override
  public int hashCode() {
    return Objects.hash(description, fluent, name, parameters, returnType);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class FunctionVariantOutputV1 {\n");
    
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    fluent: ").append(toIndentedString(fluent)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    parameters: ").append(toIndentedString(parameters)).append("\n");
    sb.append("    returnType: ").append(toIndentedString(returnType)).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