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

io.github.microcks.operator.api.base.v1alpha1.OpenAISpecFluent Maven / Gradle / Ivy

There is a newer version: 0.0.2
Show newest version
package io.github.microcks.operator.api.base.v1alpha1;

import java.lang.SuppressWarnings;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.String;

/**
 * Generated
 */
@SuppressWarnings("unchecked")
public class OpenAISpecFluent> extends BaseFluent{
  public OpenAISpecFluent() {
  }
  
  public OpenAISpecFluent(OpenAISpec instance) {
    this.copyInstance(instance);
  }
  private String apiKey;
  private int timeout;
  private String model;
  private int maxTokens;
  
  protected void copyInstance(OpenAISpec instance) {
    instance = (instance != null ? instance : new OpenAISpec());
    if (instance != null) {
          this.withApiKey(instance.getApiKey());
          this.withTimeout(instance.getTimeout());
          this.withModel(instance.getModel());
          this.withMaxTokens(instance.getMaxTokens());
        }
  }
  
  public String getApiKey() {
    return this.apiKey;
  }
  
  public A withApiKey(String apiKey) {
    this.apiKey = apiKey;
    return (A) this;
  }
  
  public boolean hasApiKey() {
    return this.apiKey != null;
  }
  
  public int getTimeout() {
    return this.timeout;
  }
  
  public A withTimeout(int timeout) {
    this.timeout = timeout;
    return (A) this;
  }
  
  public boolean hasTimeout() {
    return true;
  }
  
  public String getModel() {
    return this.model;
  }
  
  public A withModel(String model) {
    this.model = model;
    return (A) this;
  }
  
  public boolean hasModel() {
    return this.model != null;
  }
  
  public int getMaxTokens() {
    return this.maxTokens;
  }
  
  public A withMaxTokens(int maxTokens) {
    this.maxTokens = maxTokens;
    return (A) this;
  }
  
  public boolean hasMaxTokens() {
    return true;
  }
  
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    OpenAISpecFluent that = (OpenAISpecFluent) o;
    if (!java.util.Objects.equals(apiKey, that.apiKey)) return false;
    if (timeout != that.timeout) return false;
    if (!java.util.Objects.equals(model, that.model)) return false;
    if (maxTokens != that.maxTokens) return false;
    return true;
  }
  
  public int hashCode() {
    return java.util.Objects.hash(apiKey,  timeout,  model,  maxTokens,  super.hashCode());
  }
  
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("{");
    if (apiKey != null) { sb.append("apiKey:"); sb.append(apiKey + ","); }
    sb.append("timeout:"); sb.append(timeout + ",");
    if (model != null) { sb.append("model:"); sb.append(model + ","); }
    sb.append("maxTokens:"); sb.append(maxTokens);
    sb.append("}");
    return sb.toString();
  }
  

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy