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

io.dekorate.testing.config.KubernetesIntegrationTestConfigFluentImpl Maven / Gradle / Ivy

There is a newer version: 4.1.4
Show newest version
package io.dekorate.testing.config;

import java.lang.Integer;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.util.ArrayList;
import java.util.Collection;
import java.lang.Object;
import java.util.List;
import java.lang.String;
import java.lang.Boolean;

 /**
  * Generated
  */
public class KubernetesIntegrationTestConfigFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements io.dekorate.testing.config.KubernetesIntegrationTestConfigFluent{
  public KubernetesIntegrationTestConfigFluentImpl() {
  }
  public KubernetesIntegrationTestConfigFluentImpl(io.dekorate.testing.config.KubernetesIntegrationTestConfig instance) {
    this.withDeployEnabled(instance.isDeployEnabled()); 
    this.withBuildEnabled(instance.isBuildEnabled()); 
    this.withReadinessTimeout(instance.getReadinessTimeout()); 
    this.withAdditionalModules(instance.getAdditionalModules()); 
  }
  private boolean deployEnabled;
  private boolean buildEnabled;
  private long readinessTimeout;
  private java.util.List additionalModules = new java.util.ArrayList();
  public boolean isDeployEnabled() {
    return this.deployEnabled;
  }
  public A withDeployEnabled(boolean deployEnabled) {
    this.deployEnabled=deployEnabled; return (A) this;
  }
  public java.lang.Boolean hasDeployEnabled() {
    return true;
  }
  public boolean isBuildEnabled() {
    return this.buildEnabled;
  }
  public A withBuildEnabled(boolean buildEnabled) {
    this.buildEnabled=buildEnabled; return (A) this;
  }
  public java.lang.Boolean hasBuildEnabled() {
    return true;
  }
  public long getReadinessTimeout() {
    return this.readinessTimeout;
  }
  public A withReadinessTimeout(long readinessTimeout) {
    this.readinessTimeout=readinessTimeout; return (A) this;
  }
  public java.lang.Boolean hasReadinessTimeout() {
    return true;
  }
  public A withAdditionalModules(java.lang.String... additionalModules) {
    if (this.additionalModules != null) {this.additionalModules.clear();}
    if (additionalModules != null) {for (java.lang.String item :additionalModules){ this.addToAdditionalModules(item);}} return (A) this;
  }
  public java.lang.String[] getAdditionalModules() {
    //This needs to work with primitives, so we use arrays.
int size = additionalModules != null ? additionalModules.size() : 0;
java.lang.String[] result = new java.lang.String[size];
if (size == 0) {
   return result;
}
int index = 0;
for (java.lang.String item : additionalModules) {
    result[index++]=item;
}
return result;

  }
  public A addToAdditionalModules(java.lang.Integer index,java.lang.String item) {
    if (this.additionalModules == null) {this.additionalModules = new java.util.ArrayList();}
    this.additionalModules.add(index, item);
    return (A)this;
  }
  public A setToAdditionalModules(java.lang.Integer index,java.lang.String item) {
    if (this.additionalModules == null) {this.additionalModules = new java.util.ArrayList();}
    this.additionalModules.set(index, item); return (A)this;
  }
  public A addToAdditionalModules(java.lang.String... items) {
    if (this.additionalModules == null) {this.additionalModules = new java.util.ArrayList();}
    for (java.lang.String item : items) {this.additionalModules.add(item);} return (A)this;
  }
  public A addAllToAdditionalModules(java.util.Collection items) {
    if (this.additionalModules == null) {this.additionalModules = new java.util.ArrayList();}
    for (java.lang.String item : items) {this.additionalModules.add(item);} return (A)this;
  }
  public A removeFromAdditionalModules(java.lang.String... items) {
    for (java.lang.String item : items) {if (this.additionalModules!= null){ this.additionalModules.remove(item);}} return (A)this;
  }
  public A removeAllFromAdditionalModules(java.util.Collection items) {
    for (java.lang.String item : items) {if (this.additionalModules!= null){ this.additionalModules.remove(item);}} return (A)this;
  }
  public java.lang.Boolean hasAdditionalModules() {
    return additionalModules != null && !additionalModules.isEmpty();
  }
  public A addNewAdditionalModule(java.lang.String arg0) {
    return (A)addToAdditionalModules(new String(arg0));
  }
  public boolean equals(java.lang.Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    KubernetesIntegrationTestConfigFluentImpl that = (KubernetesIntegrationTestConfigFluentImpl) o;
    if (deployEnabled != that.deployEnabled) return false;
    if (buildEnabled != that.buildEnabled) return false;
    if (readinessTimeout != that.readinessTimeout) return false;
    if (additionalModules != null ? !additionalModules.equals(that.additionalModules) :that.additionalModules != null) return false;
    return true;
  }
  public int hashCode() {
    return java.util.Objects.hash(deployEnabled,  buildEnabled,  readinessTimeout,  additionalModules,  super.hashCode());
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy