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

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

There is a newer version: 66.0.0-v202407310200
Show newest version
/*
 * 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.ScalarPropertyV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
 * ProjectInputV1
 */
public class ProjectInputV1 {
  @JsonProperty("configuration")
  private List _configuration = new ArrayList();

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

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

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

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

  /**
   * The type of project. One of DATA_LAB (default) or DATA_LAB_FUNCTIONS.
   */
  public enum ProjectTypeEnum {
    LAB("DATA_LAB"),
    LAB_FUNCTIONS("DATA_LAB_FUNCTIONS");

    private String value;

    ProjectTypeEnum(String value) {
      this.value = value;
    }
    @JsonValue
    public String getValue() {
      return value;
    }

    @Override
    public String toString() {
      return String.valueOf(value);
    }
    @JsonCreator
    public static ProjectTypeEnum fromValue(String input) {
      for (ProjectTypeEnum b : ProjectTypeEnum.values()) {
        if (b.value.equals(input)) {
          return b;
        }
      }
      return null;
    }

  }  @JsonProperty("projectType")
  private ProjectTypeEnum projectType = null;

  /**
   * The size of the resources provisioned for this project. One of UI_S, GP_S (default), GP_M, ML_L, or ML_XL. The values represent a combination of Purpose (represents the use-case and workload) and Size. Purposes: UI = User Interaction, GP = General Purpose, ML = Machine Learning. Sizes: S = Small, M = Medium, L = Large, XL = Extra Large.
   */
  public enum ResourceSizeEnum {
    UI_S("UI_S"),
    GP_S("GP_S"),
    GP_M("GP_M"),
    ML_L("ML_L"),
    ML_XL("ML_XL");

    private String value;

    ResourceSizeEnum(String value) {
      this.value = value;
    }
    @JsonValue
    public String getValue() {
      return value;
    }

    @Override
    public String toString() {
      return String.valueOf(value);
    }
    @JsonCreator
    public static ResourceSizeEnum fromValue(String input) {
      for (ResourceSizeEnum b : ResourceSizeEnum.values()) {
        if (b.value.equals(input)) {
          return b;
        }
      }
      return null;
    }

  }  @JsonProperty("resourceSize")
  private ResourceSizeEnum resourceSize = null;

  public ProjectInputV1 _configuration(List _configuration) {
    this._configuration = _configuration;
    return this;
  }

  public ProjectInputV1 addConfigurationItem(ScalarPropertyV1 _configurationItem) {
    if (this._configuration == null) {
      this._configuration = new ArrayList();
    }
    this._configuration.add(_configurationItem);
    return this;
  }

   /**
   * The list of configuration settings for the project.
   * @return _configuration
  **/
  @Schema(description = "The list of configuration settings for the project.")
  public List getConfiguration() {
    return _configuration;
  }

  public void setConfiguration(List _configuration) {
    this._configuration = _configuration;
  }

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

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

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

  public ProjectInputV1 folderId(String folderId) {
    this.folderId = folderId;
    return this;
  }

   /**
   * The id of the folder to place the new project into. Special values of 'mine' or 'corporate' place the item in the authenticated user's home folder or the corporate folder, respectively. If null, the project will be created in the authenticated user's home folder.
   * @return folderId
  **/
  @Schema(description = "The id of the folder to place the new project into. Special values of 'mine' or 'corporate' place the item in the authenticated user's home folder or the corporate folder, respectively. If null, the project will be created in the authenticated user's home folder.")
  public String getFolderId() {
    return folderId;
  }

  public void setFolderId(String folderId) {
    this.folderId = folderId;
  }

  public ProjectInputV1 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 ProjectInputV1 ownerId(String ownerId) {
    this.ownerId = ownerId;
    return this;
  }

   /**
   * The ID of the User that owns this project. If omitted when creating a new project, the authenticated user is used by default.
   * @return ownerId
  **/
  @Schema(description = "The ID of the User that owns this project. If omitted when creating a new project, the authenticated user is used by default.")
  public String getOwnerId() {
    return ownerId;
  }

  public void setOwnerId(String ownerId) {
    this.ownerId = ownerId;
  }

  public ProjectInputV1 projectType(ProjectTypeEnum projectType) {
    this.projectType = projectType;
    return this;
  }

   /**
   * The type of project. One of DATA_LAB (default) or DATA_LAB_FUNCTIONS.
   * @return projectType
  **/
  @Schema(description = "The type of project. One of DATA_LAB (default) or DATA_LAB_FUNCTIONS.")
  public ProjectTypeEnum getProjectType() {
    return projectType;
  }

  public void setProjectType(ProjectTypeEnum projectType) {
    this.projectType = projectType;
  }

  public ProjectInputV1 resourceSize(ResourceSizeEnum resourceSize) {
    this.resourceSize = resourceSize;
    return this;
  }

   /**
   * The size of the resources provisioned for this project. One of UI_S, GP_S (default), GP_M, ML_L, or ML_XL. The values represent a combination of Purpose (represents the use-case and workload) and Size. Purposes: UI = User Interaction, GP = General Purpose, ML = Machine Learning. Sizes: S = Small, M = Medium, L = Large, XL = Extra Large.
   * @return resourceSize
  **/
  @Schema(description = "The size of the resources provisioned for this project. One of UI_S, GP_S (default), GP_M, ML_L, or ML_XL. The values represent a combination of Purpose (represents the use-case and workload) and Size. Purposes: UI = User Interaction, GP = General Purpose, ML = Machine Learning. Sizes: S = Small, M = Medium, L = Large, XL = Extra Large.")
  public ResourceSizeEnum getResourceSize() {
    return resourceSize;
  }

  public void setResourceSize(ResourceSizeEnum resourceSize) {
    this.resourceSize = resourceSize;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ProjectInputV1 projectInputV1 = (ProjectInputV1) o;
    return Objects.equals(this._configuration, projectInputV1._configuration) &&
        Objects.equals(this.description, projectInputV1.description) &&
        Objects.equals(this.folderId, projectInputV1.folderId) &&
        Objects.equals(this.name, projectInputV1.name) &&
        Objects.equals(this.ownerId, projectInputV1.ownerId) &&
        Objects.equals(this.projectType, projectInputV1.projectType) &&
        Objects.equals(this.resourceSize, projectInputV1.resourceSize);
  }

  @Override
  public int hashCode() {
    return Objects.hash(_configuration, description, folderId, name, ownerId, projectType, resourceSize);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ProjectInputV1 {\n");
    
    sb.append("    _configuration: ").append(toIndentedString(_configuration)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    folderId: ").append(toIndentedString(folderId)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    ownerId: ").append(toIndentedString(ownerId)).append("\n");
    sb.append("    projectType: ").append(toIndentedString(projectType)).append("\n");
    sb.append("    resourceSize: ").append(toIndentedString(resourceSize)).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