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

com.github.fluid_cloudnative.fluid.AlluxioCompTemplateSpec Maven / Gradle / Ivy

/*
 * fluid
 * Python SDK for fluid
 *
 * OpenAPI spec version: v0.1
 * 
 *
 * 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.github.fluid_cloudnative.fluid;

import com.google.gson.annotations.SerializedName;
import io.kubernetes.client.openapi.models.V1ResourceRequirements;
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 java.util.Objects;

/**
 * AlluxioCompTemplateSpec is a description of the Alluxio commponents
 */
@ApiModel(description = "AlluxioCompTemplateSpec is a description of the Alluxio commponents")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2021-05-14T16:48:53.494+08:00")
public class AlluxioCompTemplateSpec {
  @SerializedName("enabled")
  private Boolean enabled = null;

  @SerializedName("env")
  private Map env = null;

  @SerializedName("jvmOptions")
  private List jvmOptions = null;

  @SerializedName("nodeSelector")
  private Map nodeSelector = null;

  @SerializedName("ports")
  private Map ports = null;

  @SerializedName("properties")
  private Map properties = null;

  @SerializedName("replicas")
  private Integer replicas = null;

  @SerializedName("resources")
  private V1ResourceRequirements resources = null;

  public AlluxioCompTemplateSpec enabled(Boolean enabled) {
    this.enabled = enabled;
    return this;
  }

   /**
   * Enabled or Disabled for the components. For now, only  API Gateway is enabled or disabled.
   * @return enabled
  **/
  @ApiModelProperty(value = "Enabled or Disabled for the components. For now, only  API Gateway is enabled or disabled.")
  public Boolean isEnabled() {
    return enabled;
  }

  public void setEnabled(Boolean enabled) {
    this.enabled = enabled;
  }

  public AlluxioCompTemplateSpec env(Map env) {
    this.env = env;
    return this;
  }

  public AlluxioCompTemplateSpec putEnvItem(String key, String envItem) {
    if (this.env == null) {
      this.env = new HashMap();
    }
    this.env.put(key, envItem);
    return this;
  }

   /**
   * Environment variables that will be used by Alluxio component. <br>
   * @return env
  **/
  @ApiModelProperty(value = "Environment variables that will be used by Alluxio component. 
") public Map getEnv() { return env; } public void setEnv(Map env) { this.env = env; } public AlluxioCompTemplateSpec jvmOptions(List jvmOptions) { this.jvmOptions = jvmOptions; return this; } public AlluxioCompTemplateSpec addJvmOptionsItem(String jvmOptionsItem) { if (this.jvmOptions == null) { this.jvmOptions = new ArrayList(); } this.jvmOptions.add(jvmOptionsItem); return this; } /** * Options for JVM * @return jvmOptions **/ @ApiModelProperty(value = "Options for JVM") public List getJvmOptions() { return jvmOptions; } public void setJvmOptions(List jvmOptions) { this.jvmOptions = jvmOptions; } public AlluxioCompTemplateSpec nodeSelector(Map nodeSelector) { this.nodeSelector = nodeSelector; return this; } public AlluxioCompTemplateSpec putNodeSelectorItem(String key, String nodeSelectorItem) { if (this.nodeSelector == null) { this.nodeSelector = new HashMap(); } this.nodeSelector.put(key, nodeSelectorItem); return this; } /** * NodeSelector is a selector which must be true for the master to fit on a node * @return nodeSelector **/ @ApiModelProperty(value = "NodeSelector is a selector which must be true for the master to fit on a node") public Map getNodeSelector() { return nodeSelector; } public void setNodeSelector(Map nodeSelector) { this.nodeSelector = nodeSelector; } public AlluxioCompTemplateSpec ports(Map ports) { this.ports = ports; return this; } public AlluxioCompTemplateSpec putPortsItem(String key, Integer portsItem) { if (this.ports == null) { this.ports = new HashMap(); } this.ports.put(key, portsItem); return this; } /** * Ports used by Alluxio(e.g. rpc: 19998 for master) * @return ports **/ @ApiModelProperty(value = "Ports used by Alluxio(e.g. rpc: 19998 for master)") public Map getPorts() { return ports; } public void setPorts(Map ports) { this.ports = ports; } public AlluxioCompTemplateSpec properties(Map properties) { this.properties = properties; return this; } public AlluxioCompTemplateSpec putPropertiesItem(String key, String propertiesItem) { if (this.properties == null) { this.properties = new HashMap(); } this.properties.put(key, propertiesItem); return this; } /** * Configurable properties for the Alluxio component. <br> Refer to <a href=\"https://docs.alluxio.io/os/user/stable/en/reference/Properties-List.html\">Alluxio Configuration Properties</a> for more info * @return properties **/ @ApiModelProperty(value = "Configurable properties for the Alluxio component.
Refer to Alluxio Configuration Properties for more info") public Map getProperties() { return properties; } public void setProperties(Map properties) { this.properties = properties; } public AlluxioCompTemplateSpec replicas(Integer replicas) { this.replicas = replicas; return this; } /** * Replicas is the desired number of replicas of the given template. If unspecified, defaults to 1. replicas is the min replicas of dataset in the cluster * @return replicas **/ @ApiModelProperty(value = "Replicas is the desired number of replicas of the given template. If unspecified, defaults to 1. replicas is the min replicas of dataset in the cluster") public Integer getReplicas() { return replicas; } public void setReplicas(Integer replicas) { this.replicas = replicas; } public AlluxioCompTemplateSpec resources(V1ResourceRequirements resources) { this.resources = resources; return this; } /** * Resources that will be requested by the Alluxio component. <br> <br> Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. * @return resources **/ @ApiModelProperty(value = "Resources that will be requested by the Alluxio component.

Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod.") public V1ResourceRequirements getResources() { return resources; } public void setResources(V1ResourceRequirements resources) { this.resources = resources; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } AlluxioCompTemplateSpec alluxioCompTemplateSpec = (AlluxioCompTemplateSpec) o; return Objects.equals(this.enabled, alluxioCompTemplateSpec.enabled) && Objects.equals(this.env, alluxioCompTemplateSpec.env) && Objects.equals(this.jvmOptions, alluxioCompTemplateSpec.jvmOptions) && Objects.equals(this.nodeSelector, alluxioCompTemplateSpec.nodeSelector) && Objects.equals(this.ports, alluxioCompTemplateSpec.ports) && Objects.equals(this.properties, alluxioCompTemplateSpec.properties) && Objects.equals(this.replicas, alluxioCompTemplateSpec.replicas) && Objects.equals(this.resources, alluxioCompTemplateSpec.resources); } @Override public int hashCode() { return Objects.hash(enabled, env, jvmOptions, nodeSelector, ports, properties, replicas, resources); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AlluxioCompTemplateSpec {\n"); sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); sb.append(" env: ").append(toIndentedString(env)).append("\n"); sb.append(" jvmOptions: ").append(toIndentedString(jvmOptions)).append("\n"); sb.append(" nodeSelector: ").append(toIndentedString(nodeSelector)).append("\n"); sb.append(" ports: ").append(toIndentedString(ports)).append("\n"); sb.append(" properties: ").append(toIndentedString(properties)).append("\n"); sb.append(" replicas: ").append(toIndentedString(replicas)).append("\n"); sb.append(" resources: ").append(toIndentedString(resources)).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