io.kubernetes.client.openapi.models.V1ContainerFluent Maven / Gradle / Ivy
package io.kubernetes.client.openapi.models;
import io.kubernetes.client.fluent.VisitableBuilder;
import java.util.ArrayList;
import java.lang.String;
import java.util.function.Predicate;
import io.kubernetes.client.fluent.BaseFluent;
import java.util.List;
import java.lang.Boolean;
import java.util.Collection;
import java.lang.Object;
import java.lang.SuppressWarnings;
import io.kubernetes.client.fluent.Nested;
import java.util.Iterator;
/**
* Generated
*/
@SuppressWarnings("unchecked")
public class V1ContainerFluent> extends BaseFluent{
public V1ContainerFluent() {
}
public V1ContainerFluent(V1Container instance) {
this.copyInstance(instance);
}
private List args;
private List command;
private ArrayList env;
private ArrayList envFrom;
private String image;
private String imagePullPolicy;
private V1LifecycleBuilder lifecycle;
private V1ProbeBuilder livenessProbe;
private String name;
private ArrayList ports;
private V1ProbeBuilder readinessProbe;
private ArrayList resizePolicy;
private V1ResourceRequirementsBuilder resources;
private String restartPolicy;
private V1SecurityContextBuilder securityContext;
private V1ProbeBuilder startupProbe;
private Boolean stdin;
private Boolean stdinOnce;
private String terminationMessagePath;
private String terminationMessagePolicy;
private Boolean tty;
private ArrayList volumeDevices;
private ArrayList volumeMounts;
private String workingDir;
protected void copyInstance(V1Container instance) {
instance = (instance != null ? instance : new V1Container());
if (instance != null) {
this.withArgs(instance.getArgs());
this.withCommand(instance.getCommand());
this.withEnv(instance.getEnv());
this.withEnvFrom(instance.getEnvFrom());
this.withImage(instance.getImage());
this.withImagePullPolicy(instance.getImagePullPolicy());
this.withLifecycle(instance.getLifecycle());
this.withLivenessProbe(instance.getLivenessProbe());
this.withName(instance.getName());
this.withPorts(instance.getPorts());
this.withReadinessProbe(instance.getReadinessProbe());
this.withResizePolicy(instance.getResizePolicy());
this.withResources(instance.getResources());
this.withRestartPolicy(instance.getRestartPolicy());
this.withSecurityContext(instance.getSecurityContext());
this.withStartupProbe(instance.getStartupProbe());
this.withStdin(instance.getStdin());
this.withStdinOnce(instance.getStdinOnce());
this.withTerminationMessagePath(instance.getTerminationMessagePath());
this.withTerminationMessagePolicy(instance.getTerminationMessagePolicy());
this.withTty(instance.getTty());
this.withVolumeDevices(instance.getVolumeDevices());
this.withVolumeMounts(instance.getVolumeMounts());
this.withWorkingDir(instance.getWorkingDir());
}
}
public A addToArgs(int index,String item) {
if (this.args == null) {this.args = new ArrayList();}
this.args.add(index, item);
return (A)this;
}
public A setToArgs(int index,String item) {
if (this.args == null) {this.args = new ArrayList();}
this.args.set(index, item); return (A)this;
}
public A addToArgs(java.lang.String... items) {
if (this.args == null) {this.args = new ArrayList();}
for (String item : items) {this.args.add(item);} return (A)this;
}
public A addAllToArgs(Collection items) {
if (this.args == null) {this.args = new ArrayList();}
for (String item : items) {this.args.add(item);} return (A)this;
}
public A removeFromArgs(java.lang.String... items) {
if (this.args == null) return (A)this;
for (String item : items) { this.args.remove(item);} return (A)this;
}
public A removeAllFromArgs(Collection items) {
if (this.args == null) return (A)this;
for (String item : items) { this.args.remove(item);} return (A)this;
}
public List getArgs() {
return this.args;
}
public String getArg(int index) {
return this.args.get(index);
}
public String getFirstArg() {
return this.args.get(0);
}
public String getLastArg() {
return this.args.get(args.size() - 1);
}
public String getMatchingArg(Predicate predicate) {
for (String item : args) {
if (predicate.test(item)) {
return item;
}
}
return null;
}
public boolean hasMatchingArg(Predicate predicate) {
for (String item : args) {
if (predicate.test(item)) {
return true;
}
}
return false;
}
public A withArgs(List args) {
if (args != null) {
this.args = new ArrayList();
for (String item : args) {
this.addToArgs(item);
}
} else {
this.args = null;
}
return (A) this;
}
public A withArgs(java.lang.String... args) {
if (this.args != null) {
this.args.clear();
_visitables.remove("args");
}
if (args != null) {
for (String item : args) {
this.addToArgs(item);
}
}
return (A) this;
}
public boolean hasArgs() {
return this.args != null && !this.args.isEmpty();
}
public A addToCommand(int index,String item) {
if (this.command == null) {this.command = new ArrayList();}
this.command.add(index, item);
return (A)this;
}
public A setToCommand(int index,String item) {
if (this.command == null) {this.command = new ArrayList();}
this.command.set(index, item); return (A)this;
}
public A addToCommand(java.lang.String... items) {
if (this.command == null) {this.command = new ArrayList();}
for (String item : items) {this.command.add(item);} return (A)this;
}
public A addAllToCommand(Collection items) {
if (this.command == null) {this.command = new ArrayList();}
for (String item : items) {this.command.add(item);} return (A)this;
}
public A removeFromCommand(java.lang.String... items) {
if (this.command == null) return (A)this;
for (String item : items) { this.command.remove(item);} return (A)this;
}
public A removeAllFromCommand(Collection items) {
if (this.command == null) return (A)this;
for (String item : items) { this.command.remove(item);} return (A)this;
}
public List getCommand() {
return this.command;
}
public String getCommand(int index) {
return this.command.get(index);
}
public String getFirstCommand() {
return this.command.get(0);
}
public String getLastCommand() {
return this.command.get(command.size() - 1);
}
public String getMatchingCommand(Predicate predicate) {
for (String item : command) {
if (predicate.test(item)) {
return item;
}
}
return null;
}
public boolean hasMatchingCommand(Predicate predicate) {
for (String item : command) {
if (predicate.test(item)) {
return true;
}
}
return false;
}
public A withCommand(List command) {
if (command != null) {
this.command = new ArrayList();
for (String item : command) {
this.addToCommand(item);
}
} else {
this.command = null;
}
return (A) this;
}
public A withCommand(java.lang.String... command) {
if (this.command != null) {
this.command.clear();
_visitables.remove("command");
}
if (command != null) {
for (String item : command) {
this.addToCommand(item);
}
}
return (A) this;
}
public boolean hasCommand() {
return this.command != null && !this.command.isEmpty();
}
public A addToEnv(int index,V1EnvVar item) {
if (this.env == null) {this.env = new ArrayList();}
V1EnvVarBuilder builder = new V1EnvVarBuilder(item);
if (index < 0 || index >= env.size()) { _visitables.get("env").add(builder); env.add(builder); } else { _visitables.get("env").add(index, builder); env.add(index, builder);}
return (A)this;
}
public A setToEnv(int index,V1EnvVar item) {
if (this.env == null) {this.env = new ArrayList();}
V1EnvVarBuilder builder = new V1EnvVarBuilder(item);
if (index < 0 || index >= env.size()) { _visitables.get("env").add(builder); env.add(builder); } else { _visitables.get("env").set(index, builder); env.set(index, builder);}
return (A)this;
}
public A addToEnv(io.kubernetes.client.openapi.models.V1EnvVar... items) {
if (this.env == null) {this.env = new ArrayList();}
for (V1EnvVar item : items) {V1EnvVarBuilder builder = new V1EnvVarBuilder(item);_visitables.get("env").add(builder);this.env.add(builder);} return (A)this;
}
public A addAllToEnv(Collection items) {
if (this.env == null) {this.env = new ArrayList();}
for (V1EnvVar item : items) {V1EnvVarBuilder builder = new V1EnvVarBuilder(item);_visitables.get("env").add(builder);this.env.add(builder);} return (A)this;
}
public A removeFromEnv(io.kubernetes.client.openapi.models.V1EnvVar... items) {
if (this.env == null) return (A)this;
for (V1EnvVar item : items) {V1EnvVarBuilder builder = new V1EnvVarBuilder(item);_visitables.get("env").remove(builder); this.env.remove(builder);} return (A)this;
}
public A removeAllFromEnv(Collection items) {
if (this.env == null) return (A)this;
for (V1EnvVar item : items) {V1EnvVarBuilder builder = new V1EnvVarBuilder(item);_visitables.get("env").remove(builder); this.env.remove(builder);} return (A)this;
}
public A removeMatchingFromEnv(Predicate predicate) {
if (env == null) return (A) this;
final Iterator each = env.iterator();
final List visitables = _visitables.get("env");
while (each.hasNext()) {
V1EnvVarBuilder builder = each.next();
if (predicate.test(builder)) {
visitables.remove(builder);
each.remove();
}
}
return (A)this;
}
public List buildEnv() {
return this.env != null ? build(env) : null;
}
public V1EnvVar buildEnv(int index) {
return this.env.get(index).build();
}
public V1EnvVar buildFirstEnv() {
return this.env.get(0).build();
}
public V1EnvVar buildLastEnv() {
return this.env.get(env.size() - 1).build();
}
public V1EnvVar buildMatchingEnv(Predicate predicate) {
for (V1EnvVarBuilder item : env) {
if (predicate.test(item)) {
return item.build();
}
}
return null;
}
public boolean hasMatchingEnv(Predicate predicate) {
for (V1EnvVarBuilder item : env) {
if (predicate.test(item)) {
return true;
}
}
return false;
}
public A withEnv(List env) {
if (this.env != null) {
this._visitables.get("env").clear();
}
if (env != null) {
this.env = new ArrayList();
for (V1EnvVar item : env) {
this.addToEnv(item);
}
} else {
this.env = null;
}
return (A) this;
}
public A withEnv(io.kubernetes.client.openapi.models.V1EnvVar... env) {
if (this.env != null) {
this.env.clear();
_visitables.remove("env");
}
if (env != null) {
for (V1EnvVar item : env) {
this.addToEnv(item);
}
}
return (A) this;
}
public boolean hasEnv() {
return this.env != null && !this.env.isEmpty();
}
public EnvNested addNewEnv() {
return new EnvNested(-1, null);
}
public EnvNested addNewEnvLike(V1EnvVar item) {
return new EnvNested(-1, item);
}
public EnvNested setNewEnvLike(int index,V1EnvVar item) {
return new EnvNested(index, item);
}
public EnvNested editEnv(int index) {
if (env.size() <= index) throw new RuntimeException("Can't edit env. Index exceeds size.");
return setNewEnvLike(index, buildEnv(index));
}
public EnvNested editFirstEnv() {
if (env.size() == 0) throw new RuntimeException("Can't edit first env. The list is empty.");
return setNewEnvLike(0, buildEnv(0));
}
public EnvNested editLastEnv() {
int index = env.size() - 1;
if (index < 0) throw new RuntimeException("Can't edit last env. The list is empty.");
return setNewEnvLike(index, buildEnv(index));
}
public EnvNested editMatchingEnv(Predicate predicate) {
int index = -1;
for (int i=0;i();}
V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item);
if (index < 0 || index >= envFrom.size()) { _visitables.get("envFrom").add(builder); envFrom.add(builder); } else { _visitables.get("envFrom").add(index, builder); envFrom.add(index, builder);}
return (A)this;
}
public A setToEnvFrom(int index,V1EnvFromSource item) {
if (this.envFrom == null) {this.envFrom = new ArrayList();}
V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item);
if (index < 0 || index >= envFrom.size()) { _visitables.get("envFrom").add(builder); envFrom.add(builder); } else { _visitables.get("envFrom").set(index, builder); envFrom.set(index, builder);}
return (A)this;
}
public A addToEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... items) {
if (this.envFrom == null) {this.envFrom = new ArrayList();}
for (V1EnvFromSource item : items) {V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item);_visitables.get("envFrom").add(builder);this.envFrom.add(builder);} return (A)this;
}
public A addAllToEnvFrom(Collection items) {
if (this.envFrom == null) {this.envFrom = new ArrayList();}
for (V1EnvFromSource item : items) {V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item);_visitables.get("envFrom").add(builder);this.envFrom.add(builder);} return (A)this;
}
public A removeFromEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... items) {
if (this.envFrom == null) return (A)this;
for (V1EnvFromSource item : items) {V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item);_visitables.get("envFrom").remove(builder); this.envFrom.remove(builder);} return (A)this;
}
public A removeAllFromEnvFrom(Collection items) {
if (this.envFrom == null) return (A)this;
for (V1EnvFromSource item : items) {V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item);_visitables.get("envFrom").remove(builder); this.envFrom.remove(builder);} return (A)this;
}
public A removeMatchingFromEnvFrom(Predicate predicate) {
if (envFrom == null) return (A) this;
final Iterator each = envFrom.iterator();
final List visitables = _visitables.get("envFrom");
while (each.hasNext()) {
V1EnvFromSourceBuilder builder = each.next();
if (predicate.test(builder)) {
visitables.remove(builder);
each.remove();
}
}
return (A)this;
}
public List buildEnvFrom() {
return this.envFrom != null ? build(envFrom) : null;
}
public V1EnvFromSource buildEnvFrom(int index) {
return this.envFrom.get(index).build();
}
public V1EnvFromSource buildFirstEnvFrom() {
return this.envFrom.get(0).build();
}
public V1EnvFromSource buildLastEnvFrom() {
return this.envFrom.get(envFrom.size() - 1).build();
}
public V1EnvFromSource buildMatchingEnvFrom(Predicate predicate) {
for (V1EnvFromSourceBuilder item : envFrom) {
if (predicate.test(item)) {
return item.build();
}
}
return null;
}
public boolean hasMatchingEnvFrom(Predicate predicate) {
for (V1EnvFromSourceBuilder item : envFrom) {
if (predicate.test(item)) {
return true;
}
}
return false;
}
public A withEnvFrom(List envFrom) {
if (this.envFrom != null) {
this._visitables.get("envFrom").clear();
}
if (envFrom != null) {
this.envFrom = new ArrayList();
for (V1EnvFromSource item : envFrom) {
this.addToEnvFrom(item);
}
} else {
this.envFrom = null;
}
return (A) this;
}
public A withEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... envFrom) {
if (this.envFrom != null) {
this.envFrom.clear();
_visitables.remove("envFrom");
}
if (envFrom != null) {
for (V1EnvFromSource item : envFrom) {
this.addToEnvFrom(item);
}
}
return (A) this;
}
public boolean hasEnvFrom() {
return this.envFrom != null && !this.envFrom.isEmpty();
}
public EnvFromNested addNewEnvFrom() {
return new EnvFromNested(-1, null);
}
public EnvFromNested addNewEnvFromLike(V1EnvFromSource item) {
return new EnvFromNested(-1, item);
}
public EnvFromNested setNewEnvFromLike(int index,V1EnvFromSource item) {
return new EnvFromNested(index, item);
}
public EnvFromNested editEnvFrom(int index) {
if (envFrom.size() <= index) throw new RuntimeException("Can't edit envFrom. Index exceeds size.");
return setNewEnvFromLike(index, buildEnvFrom(index));
}
public EnvFromNested editFirstEnvFrom() {
if (envFrom.size() == 0) throw new RuntimeException("Can't edit first envFrom. The list is empty.");
return setNewEnvFromLike(0, buildEnvFrom(0));
}
public EnvFromNested editLastEnvFrom() {
int index = envFrom.size() - 1;
if (index < 0) throw new RuntimeException("Can't edit last envFrom. The list is empty.");
return setNewEnvFromLike(index, buildEnvFrom(index));
}
public EnvFromNested editMatchingEnvFrom(Predicate predicate) {
int index = -1;
for (int i=0;i withNewLifecycle() {
return new LifecycleNested(null);
}
public LifecycleNested withNewLifecycleLike(V1Lifecycle item) {
return new LifecycleNested(item);
}
public LifecycleNested editLifecycle() {
return withNewLifecycleLike(java.util.Optional.ofNullable(buildLifecycle()).orElse(null));
}
public LifecycleNested editOrNewLifecycle() {
return withNewLifecycleLike(java.util.Optional.ofNullable(buildLifecycle()).orElse(new V1LifecycleBuilder().build()));
}
public LifecycleNested editOrNewLifecycleLike(V1Lifecycle item) {
return withNewLifecycleLike(java.util.Optional.ofNullable(buildLifecycle()).orElse(item));
}
public V1Probe buildLivenessProbe() {
return this.livenessProbe != null ? this.livenessProbe.build() : null;
}
public A withLivenessProbe(V1Probe livenessProbe) {
this._visitables.remove("livenessProbe");
if (livenessProbe != null) {
this.livenessProbe = new V1ProbeBuilder(livenessProbe);
this._visitables.get("livenessProbe").add(this.livenessProbe);
} else {
this.livenessProbe = null;
this._visitables.get("livenessProbe").remove(this.livenessProbe);
}
return (A) this;
}
public boolean hasLivenessProbe() {
return this.livenessProbe != null;
}
public LivenessProbeNested withNewLivenessProbe() {
return new LivenessProbeNested(null);
}
public LivenessProbeNested withNewLivenessProbeLike(V1Probe item) {
return new LivenessProbeNested(item);
}
public LivenessProbeNested editLivenessProbe() {
return withNewLivenessProbeLike(java.util.Optional.ofNullable(buildLivenessProbe()).orElse(null));
}
public LivenessProbeNested editOrNewLivenessProbe() {
return withNewLivenessProbeLike(java.util.Optional.ofNullable(buildLivenessProbe()).orElse(new V1ProbeBuilder().build()));
}
public LivenessProbeNested editOrNewLivenessProbeLike(V1Probe item) {
return withNewLivenessProbeLike(java.util.Optional.ofNullable(buildLivenessProbe()).orElse(item));
}
public String getName() {
return this.name;
}
public A withName(String name) {
this.name = name;
return (A) this;
}
public boolean hasName() {
return this.name != null;
}
public A addToPorts(int index,V1ContainerPort item) {
if (this.ports == null) {this.ports = new ArrayList();}
V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item);
if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").add(index, builder); ports.add(index, builder);}
return (A)this;
}
public A setToPorts(int index,V1ContainerPort item) {
if (this.ports == null) {this.ports = new ArrayList();}
V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item);
if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); ports.add(builder); } else { _visitables.get("ports").set(index, builder); ports.set(index, builder);}
return (A)this;
}
public A addToPorts(io.kubernetes.client.openapi.models.V1ContainerPort... items) {
if (this.ports == null) {this.ports = new ArrayList();}
for (V1ContainerPort item : items) {V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this;
}
public A addAllToPorts(Collection items) {
if (this.ports == null) {this.ports = new ArrayList();}
for (V1ContainerPort item : items) {V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this;
}
public A removeFromPorts(io.kubernetes.client.openapi.models.V1ContainerPort... items) {
if (this.ports == null) return (A)this;
for (V1ContainerPort item : items) {V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(builder);} return (A)this;
}
public A removeAllFromPorts(Collection items) {
if (this.ports == null) return (A)this;
for (V1ContainerPort item : items) {V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(builder);} return (A)this;
}
public A removeMatchingFromPorts(Predicate predicate) {
if (ports == null) return (A) this;
final Iterator each = ports.iterator();
final List visitables = _visitables.get("ports");
while (each.hasNext()) {
V1ContainerPortBuilder builder = each.next();
if (predicate.test(builder)) {
visitables.remove(builder);
each.remove();
}
}
return (A)this;
}
public List buildPorts() {
return this.ports != null ? build(ports) : null;
}
public V1ContainerPort buildPort(int index) {
return this.ports.get(index).build();
}
public V1ContainerPort buildFirstPort() {
return this.ports.get(0).build();
}
public V1ContainerPort buildLastPort() {
return this.ports.get(ports.size() - 1).build();
}
public V1ContainerPort buildMatchingPort(Predicate predicate) {
for (V1ContainerPortBuilder item : ports) {
if (predicate.test(item)) {
return item.build();
}
}
return null;
}
public boolean hasMatchingPort(Predicate predicate) {
for (V1ContainerPortBuilder item : ports) {
if (predicate.test(item)) {
return true;
}
}
return false;
}
public A withPorts(List ports) {
if (this.ports != null) {
this._visitables.get("ports").clear();
}
if (ports != null) {
this.ports = new ArrayList();
for (V1ContainerPort item : ports) {
this.addToPorts(item);
}
} else {
this.ports = null;
}
return (A) this;
}
public A withPorts(io.kubernetes.client.openapi.models.V1ContainerPort... ports) {
if (this.ports != null) {
this.ports.clear();
_visitables.remove("ports");
}
if (ports != null) {
for (V1ContainerPort item : ports) {
this.addToPorts(item);
}
}
return (A) this;
}
public boolean hasPorts() {
return this.ports != null && !this.ports.isEmpty();
}
public PortsNested addNewPort() {
return new PortsNested(-1, null);
}
public PortsNested addNewPortLike(V1ContainerPort item) {
return new PortsNested(-1, item);
}
public PortsNested setNewPortLike(int index,V1ContainerPort item) {
return new PortsNested(index, item);
}
public PortsNested editPort(int index) {
if (ports.size() <= index) throw new RuntimeException("Can't edit ports. Index exceeds size.");
return setNewPortLike(index, buildPort(index));
}
public PortsNested editFirstPort() {
if (ports.size() == 0) throw new RuntimeException("Can't edit first ports. The list is empty.");
return setNewPortLike(0, buildPort(0));
}
public PortsNested editLastPort() {
int index = ports.size() - 1;
if (index < 0) throw new RuntimeException("Can't edit last ports. The list is empty.");
return setNewPortLike(index, buildPort(index));
}
public PortsNested editMatchingPort(Predicate predicate) {
int index = -1;
for (int i=0;i withNewReadinessProbe() {
return new ReadinessProbeNested(null);
}
public ReadinessProbeNested withNewReadinessProbeLike(V1Probe item) {
return new ReadinessProbeNested(item);
}
public ReadinessProbeNested editReadinessProbe() {
return withNewReadinessProbeLike(java.util.Optional.ofNullable(buildReadinessProbe()).orElse(null));
}
public ReadinessProbeNested editOrNewReadinessProbe() {
return withNewReadinessProbeLike(java.util.Optional.ofNullable(buildReadinessProbe()).orElse(new V1ProbeBuilder().build()));
}
public ReadinessProbeNested editOrNewReadinessProbeLike(V1Probe item) {
return withNewReadinessProbeLike(java.util.Optional.ofNullable(buildReadinessProbe()).orElse(item));
}
public A addToResizePolicy(int index,V1ContainerResizePolicy item) {
if (this.resizePolicy == null) {this.resizePolicy = new ArrayList();}
V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item);
if (index < 0 || index >= resizePolicy.size()) { _visitables.get("resizePolicy").add(builder); resizePolicy.add(builder); } else { _visitables.get("resizePolicy").add(index, builder); resizePolicy.add(index, builder);}
return (A)this;
}
public A setToResizePolicy(int index,V1ContainerResizePolicy item) {
if (this.resizePolicy == null) {this.resizePolicy = new ArrayList();}
V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item);
if (index < 0 || index >= resizePolicy.size()) { _visitables.get("resizePolicy").add(builder); resizePolicy.add(builder); } else { _visitables.get("resizePolicy").set(index, builder); resizePolicy.set(index, builder);}
return (A)this;
}
public A addToResizePolicy(io.kubernetes.client.openapi.models.V1ContainerResizePolicy... items) {
if (this.resizePolicy == null) {this.resizePolicy = new ArrayList();}
for (V1ContainerResizePolicy item : items) {V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item);_visitables.get("resizePolicy").add(builder);this.resizePolicy.add(builder);} return (A)this;
}
public A addAllToResizePolicy(Collection items) {
if (this.resizePolicy == null) {this.resizePolicy = new ArrayList();}
for (V1ContainerResizePolicy item : items) {V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item);_visitables.get("resizePolicy").add(builder);this.resizePolicy.add(builder);} return (A)this;
}
public A removeFromResizePolicy(io.kubernetes.client.openapi.models.V1ContainerResizePolicy... items) {
if (this.resizePolicy == null) return (A)this;
for (V1ContainerResizePolicy item : items) {V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item);_visitables.get("resizePolicy").remove(builder); this.resizePolicy.remove(builder);} return (A)this;
}
public A removeAllFromResizePolicy(Collection items) {
if (this.resizePolicy == null) return (A)this;
for (V1ContainerResizePolicy item : items) {V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item);_visitables.get("resizePolicy").remove(builder); this.resizePolicy.remove(builder);} return (A)this;
}
public A removeMatchingFromResizePolicy(Predicate predicate) {
if (resizePolicy == null) return (A) this;
final Iterator each = resizePolicy.iterator();
final List visitables = _visitables.get("resizePolicy");
while (each.hasNext()) {
V1ContainerResizePolicyBuilder builder = each.next();
if (predicate.test(builder)) {
visitables.remove(builder);
each.remove();
}
}
return (A)this;
}
public List buildResizePolicy() {
return this.resizePolicy != null ? build(resizePolicy) : null;
}
public V1ContainerResizePolicy buildResizePolicy(int index) {
return this.resizePolicy.get(index).build();
}
public V1ContainerResizePolicy buildFirstResizePolicy() {
return this.resizePolicy.get(0).build();
}
public V1ContainerResizePolicy buildLastResizePolicy() {
return this.resizePolicy.get(resizePolicy.size() - 1).build();
}
public V1ContainerResizePolicy buildMatchingResizePolicy(Predicate predicate) {
for (V1ContainerResizePolicyBuilder item : resizePolicy) {
if (predicate.test(item)) {
return item.build();
}
}
return null;
}
public boolean hasMatchingResizePolicy(Predicate predicate) {
for (V1ContainerResizePolicyBuilder item : resizePolicy) {
if (predicate.test(item)) {
return true;
}
}
return false;
}
public A withResizePolicy(List resizePolicy) {
if (this.resizePolicy != null) {
this._visitables.get("resizePolicy").clear();
}
if (resizePolicy != null) {
this.resizePolicy = new ArrayList();
for (V1ContainerResizePolicy item : resizePolicy) {
this.addToResizePolicy(item);
}
} else {
this.resizePolicy = null;
}
return (A) this;
}
public A withResizePolicy(io.kubernetes.client.openapi.models.V1ContainerResizePolicy... resizePolicy) {
if (this.resizePolicy != null) {
this.resizePolicy.clear();
_visitables.remove("resizePolicy");
}
if (resizePolicy != null) {
for (V1ContainerResizePolicy item : resizePolicy) {
this.addToResizePolicy(item);
}
}
return (A) this;
}
public boolean hasResizePolicy() {
return this.resizePolicy != null && !this.resizePolicy.isEmpty();
}
public ResizePolicyNested addNewResizePolicy() {
return new ResizePolicyNested(-1, null);
}
public ResizePolicyNested addNewResizePolicyLike(V1ContainerResizePolicy item) {
return new ResizePolicyNested(-1, item);
}
public ResizePolicyNested setNewResizePolicyLike(int index,V1ContainerResizePolicy item) {
return new ResizePolicyNested(index, item);
}
public ResizePolicyNested editResizePolicy(int index) {
if (resizePolicy.size() <= index) throw new RuntimeException("Can't edit resizePolicy. Index exceeds size.");
return setNewResizePolicyLike(index, buildResizePolicy(index));
}
public ResizePolicyNested editFirstResizePolicy() {
if (resizePolicy.size() == 0) throw new RuntimeException("Can't edit first resizePolicy. The list is empty.");
return setNewResizePolicyLike(0, buildResizePolicy(0));
}
public ResizePolicyNested editLastResizePolicy() {
int index = resizePolicy.size() - 1;
if (index < 0) throw new RuntimeException("Can't edit last resizePolicy. The list is empty.");
return setNewResizePolicyLike(index, buildResizePolicy(index));
}
public ResizePolicyNested editMatchingResizePolicy(Predicate predicate) {
int index = -1;
for (int i=0;i withNewResources() {
return new ResourcesNested(null);
}
public ResourcesNested withNewResourcesLike(V1ResourceRequirements item) {
return new ResourcesNested(item);
}
public ResourcesNested editResources() {
return withNewResourcesLike(java.util.Optional.ofNullable(buildResources()).orElse(null));
}
public ResourcesNested editOrNewResources() {
return withNewResourcesLike(java.util.Optional.ofNullable(buildResources()).orElse(new V1ResourceRequirementsBuilder().build()));
}
public ResourcesNested editOrNewResourcesLike(V1ResourceRequirements item) {
return withNewResourcesLike(java.util.Optional.ofNullable(buildResources()).orElse(item));
}
public String getRestartPolicy() {
return this.restartPolicy;
}
public A withRestartPolicy(String restartPolicy) {
this.restartPolicy = restartPolicy;
return (A) this;
}
public boolean hasRestartPolicy() {
return this.restartPolicy != null;
}
public V1SecurityContext buildSecurityContext() {
return this.securityContext != null ? this.securityContext.build() : null;
}
public A withSecurityContext(V1SecurityContext securityContext) {
this._visitables.remove("securityContext");
if (securityContext != null) {
this.securityContext = new V1SecurityContextBuilder(securityContext);
this._visitables.get("securityContext").add(this.securityContext);
} else {
this.securityContext = null;
this._visitables.get("securityContext").remove(this.securityContext);
}
return (A) this;
}
public boolean hasSecurityContext() {
return this.securityContext != null;
}
public SecurityContextNested withNewSecurityContext() {
return new SecurityContextNested(null);
}
public SecurityContextNested withNewSecurityContextLike(V1SecurityContext item) {
return new SecurityContextNested(item);
}
public SecurityContextNested editSecurityContext() {
return withNewSecurityContextLike(java.util.Optional.ofNullable(buildSecurityContext()).orElse(null));
}
public SecurityContextNested editOrNewSecurityContext() {
return withNewSecurityContextLike(java.util.Optional.ofNullable(buildSecurityContext()).orElse(new V1SecurityContextBuilder().build()));
}
public SecurityContextNested editOrNewSecurityContextLike(V1SecurityContext item) {
return withNewSecurityContextLike(java.util.Optional.ofNullable(buildSecurityContext()).orElse(item));
}
public V1Probe buildStartupProbe() {
return this.startupProbe != null ? this.startupProbe.build() : null;
}
public A withStartupProbe(V1Probe startupProbe) {
this._visitables.remove("startupProbe");
if (startupProbe != null) {
this.startupProbe = new V1ProbeBuilder(startupProbe);
this._visitables.get("startupProbe").add(this.startupProbe);
} else {
this.startupProbe = null;
this._visitables.get("startupProbe").remove(this.startupProbe);
}
return (A) this;
}
public boolean hasStartupProbe() {
return this.startupProbe != null;
}
public StartupProbeNested withNewStartupProbe() {
return new StartupProbeNested(null);
}
public StartupProbeNested withNewStartupProbeLike(V1Probe item) {
return new StartupProbeNested(item);
}
public StartupProbeNested editStartupProbe() {
return withNewStartupProbeLike(java.util.Optional.ofNullable(buildStartupProbe()).orElse(null));
}
public StartupProbeNested editOrNewStartupProbe() {
return withNewStartupProbeLike(java.util.Optional.ofNullable(buildStartupProbe()).orElse(new V1ProbeBuilder().build()));
}
public StartupProbeNested editOrNewStartupProbeLike(V1Probe item) {
return withNewStartupProbeLike(java.util.Optional.ofNullable(buildStartupProbe()).orElse(item));
}
public Boolean getStdin() {
return this.stdin;
}
public A withStdin(Boolean stdin) {
this.stdin = stdin;
return (A) this;
}
public boolean hasStdin() {
return this.stdin != null;
}
public Boolean getStdinOnce() {
return this.stdinOnce;
}
public A withStdinOnce(Boolean stdinOnce) {
this.stdinOnce = stdinOnce;
return (A) this;
}
public boolean hasStdinOnce() {
return this.stdinOnce != null;
}
public String getTerminationMessagePath() {
return this.terminationMessagePath;
}
public A withTerminationMessagePath(String terminationMessagePath) {
this.terminationMessagePath = terminationMessagePath;
return (A) this;
}
public boolean hasTerminationMessagePath() {
return this.terminationMessagePath != null;
}
public String getTerminationMessagePolicy() {
return this.terminationMessagePolicy;
}
public A withTerminationMessagePolicy(String terminationMessagePolicy) {
this.terminationMessagePolicy = terminationMessagePolicy;
return (A) this;
}
public boolean hasTerminationMessagePolicy() {
return this.terminationMessagePolicy != null;
}
public Boolean getTty() {
return this.tty;
}
public A withTty(Boolean tty) {
this.tty = tty;
return (A) this;
}
public boolean hasTty() {
return this.tty != null;
}
public A addToVolumeDevices(int index,V1VolumeDevice item) {
if (this.volumeDevices == null) {this.volumeDevices = new ArrayList();}
V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item);
if (index < 0 || index >= volumeDevices.size()) { _visitables.get("volumeDevices").add(builder); volumeDevices.add(builder); } else { _visitables.get("volumeDevices").add(index, builder); volumeDevices.add(index, builder);}
return (A)this;
}
public A setToVolumeDevices(int index,V1VolumeDevice item) {
if (this.volumeDevices == null) {this.volumeDevices = new ArrayList();}
V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item);
if (index < 0 || index >= volumeDevices.size()) { _visitables.get("volumeDevices").add(builder); volumeDevices.add(builder); } else { _visitables.get("volumeDevices").set(index, builder); volumeDevices.set(index, builder);}
return (A)this;
}
public A addToVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... items) {
if (this.volumeDevices == null) {this.volumeDevices = new ArrayList();}
for (V1VolumeDevice item : items) {V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item);_visitables.get("volumeDevices").add(builder);this.volumeDevices.add(builder);} return (A)this;
}
public A addAllToVolumeDevices(Collection items) {
if (this.volumeDevices == null) {this.volumeDevices = new ArrayList();}
for (V1VolumeDevice item : items) {V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item);_visitables.get("volumeDevices").add(builder);this.volumeDevices.add(builder);} return (A)this;
}
public A removeFromVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... items) {
if (this.volumeDevices == null) return (A)this;
for (V1VolumeDevice item : items) {V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item);_visitables.get("volumeDevices").remove(builder); this.volumeDevices.remove(builder);} return (A)this;
}
public A removeAllFromVolumeDevices(Collection items) {
if (this.volumeDevices == null) return (A)this;
for (V1VolumeDevice item : items) {V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item);_visitables.get("volumeDevices").remove(builder); this.volumeDevices.remove(builder);} return (A)this;
}
public A removeMatchingFromVolumeDevices(Predicate predicate) {
if (volumeDevices == null) return (A) this;
final Iterator each = volumeDevices.iterator();
final List visitables = _visitables.get("volumeDevices");
while (each.hasNext()) {
V1VolumeDeviceBuilder builder = each.next();
if (predicate.test(builder)) {
visitables.remove(builder);
each.remove();
}
}
return (A)this;
}
public List buildVolumeDevices() {
return this.volumeDevices != null ? build(volumeDevices) : null;
}
public V1VolumeDevice buildVolumeDevice(int index) {
return this.volumeDevices.get(index).build();
}
public V1VolumeDevice buildFirstVolumeDevice() {
return this.volumeDevices.get(0).build();
}
public V1VolumeDevice buildLastVolumeDevice() {
return this.volumeDevices.get(volumeDevices.size() - 1).build();
}
public V1VolumeDevice buildMatchingVolumeDevice(Predicate predicate) {
for (V1VolumeDeviceBuilder item : volumeDevices) {
if (predicate.test(item)) {
return item.build();
}
}
return null;
}
public boolean hasMatchingVolumeDevice(Predicate predicate) {
for (V1VolumeDeviceBuilder item : volumeDevices) {
if (predicate.test(item)) {
return true;
}
}
return false;
}
public A withVolumeDevices(List volumeDevices) {
if (this.volumeDevices != null) {
this._visitables.get("volumeDevices").clear();
}
if (volumeDevices != null) {
this.volumeDevices = new ArrayList();
for (V1VolumeDevice item : volumeDevices) {
this.addToVolumeDevices(item);
}
} else {
this.volumeDevices = null;
}
return (A) this;
}
public A withVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... volumeDevices) {
if (this.volumeDevices != null) {
this.volumeDevices.clear();
_visitables.remove("volumeDevices");
}
if (volumeDevices != null) {
for (V1VolumeDevice item : volumeDevices) {
this.addToVolumeDevices(item);
}
}
return (A) this;
}
public boolean hasVolumeDevices() {
return this.volumeDevices != null && !this.volumeDevices.isEmpty();
}
public VolumeDevicesNested addNewVolumeDevice() {
return new VolumeDevicesNested(-1, null);
}
public VolumeDevicesNested addNewVolumeDeviceLike(V1VolumeDevice item) {
return new VolumeDevicesNested(-1, item);
}
public VolumeDevicesNested setNewVolumeDeviceLike(int index,V1VolumeDevice item) {
return new VolumeDevicesNested(index, item);
}
public VolumeDevicesNested editVolumeDevice(int index) {
if (volumeDevices.size() <= index) throw new RuntimeException("Can't edit volumeDevices. Index exceeds size.");
return setNewVolumeDeviceLike(index, buildVolumeDevice(index));
}
public VolumeDevicesNested editFirstVolumeDevice() {
if (volumeDevices.size() == 0) throw new RuntimeException("Can't edit first volumeDevices. The list is empty.");
return setNewVolumeDeviceLike(0, buildVolumeDevice(0));
}
public VolumeDevicesNested editLastVolumeDevice() {
int index = volumeDevices.size() - 1;
if (index < 0) throw new RuntimeException("Can't edit last volumeDevices. The list is empty.");
return setNewVolumeDeviceLike(index, buildVolumeDevice(index));
}
public VolumeDevicesNested editMatchingVolumeDevice(Predicate predicate) {
int index = -1;
for (int i=0;i();}
V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item);
if (index < 0 || index >= volumeMounts.size()) { _visitables.get("volumeMounts").add(builder); volumeMounts.add(builder); } else { _visitables.get("volumeMounts").add(index, builder); volumeMounts.add(index, builder);}
return (A)this;
}
public A setToVolumeMounts(int index,V1VolumeMount item) {
if (this.volumeMounts == null) {this.volumeMounts = new ArrayList();}
V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item);
if (index < 0 || index >= volumeMounts.size()) { _visitables.get("volumeMounts").add(builder); volumeMounts.add(builder); } else { _visitables.get("volumeMounts").set(index, builder); volumeMounts.set(index, builder);}
return (A)this;
}
public A addToVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... items) {
if (this.volumeMounts == null) {this.volumeMounts = new ArrayList();}
for (V1VolumeMount item : items) {V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item);_visitables.get("volumeMounts").add(builder);this.volumeMounts.add(builder);} return (A)this;
}
public A addAllToVolumeMounts(Collection items) {
if (this.volumeMounts == null) {this.volumeMounts = new ArrayList();}
for (V1VolumeMount item : items) {V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item);_visitables.get("volumeMounts").add(builder);this.volumeMounts.add(builder);} return (A)this;
}
public A removeFromVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... items) {
if (this.volumeMounts == null) return (A)this;
for (V1VolumeMount item : items) {V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item);_visitables.get("volumeMounts").remove(builder); this.volumeMounts.remove(builder);} return (A)this;
}
public A removeAllFromVolumeMounts(Collection items) {
if (this.volumeMounts == null) return (A)this;
for (V1VolumeMount item : items) {V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item);_visitables.get("volumeMounts").remove(builder); this.volumeMounts.remove(builder);} return (A)this;
}
public A removeMatchingFromVolumeMounts(Predicate predicate) {
if (volumeMounts == null) return (A) this;
final Iterator each = volumeMounts.iterator();
final List visitables = _visitables.get("volumeMounts");
while (each.hasNext()) {
V1VolumeMountBuilder builder = each.next();
if (predicate.test(builder)) {
visitables.remove(builder);
each.remove();
}
}
return (A)this;
}
public List buildVolumeMounts() {
return this.volumeMounts != null ? build(volumeMounts) : null;
}
public V1VolumeMount buildVolumeMount(int index) {
return this.volumeMounts.get(index).build();
}
public V1VolumeMount buildFirstVolumeMount() {
return this.volumeMounts.get(0).build();
}
public V1VolumeMount buildLastVolumeMount() {
return this.volumeMounts.get(volumeMounts.size() - 1).build();
}
public V1VolumeMount buildMatchingVolumeMount(Predicate predicate) {
for (V1VolumeMountBuilder item : volumeMounts) {
if (predicate.test(item)) {
return item.build();
}
}
return null;
}
public boolean hasMatchingVolumeMount(Predicate predicate) {
for (V1VolumeMountBuilder item : volumeMounts) {
if (predicate.test(item)) {
return true;
}
}
return false;
}
public A withVolumeMounts(List volumeMounts) {
if (this.volumeMounts != null) {
this._visitables.get("volumeMounts").clear();
}
if (volumeMounts != null) {
this.volumeMounts = new ArrayList();
for (V1VolumeMount item : volumeMounts) {
this.addToVolumeMounts(item);
}
} else {
this.volumeMounts = null;
}
return (A) this;
}
public A withVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... volumeMounts) {
if (this.volumeMounts != null) {
this.volumeMounts.clear();
_visitables.remove("volumeMounts");
}
if (volumeMounts != null) {
for (V1VolumeMount item : volumeMounts) {
this.addToVolumeMounts(item);
}
}
return (A) this;
}
public boolean hasVolumeMounts() {
return this.volumeMounts != null && !this.volumeMounts.isEmpty();
}
public VolumeMountsNested addNewVolumeMount() {
return new VolumeMountsNested(-1, null);
}
public VolumeMountsNested addNewVolumeMountLike(V1VolumeMount item) {
return new VolumeMountsNested(-1, item);
}
public VolumeMountsNested setNewVolumeMountLike(int index,V1VolumeMount item) {
return new VolumeMountsNested(index, item);
}
public VolumeMountsNested editVolumeMount(int index) {
if (volumeMounts.size() <= index) throw new RuntimeException("Can't edit volumeMounts. Index exceeds size.");
return setNewVolumeMountLike(index, buildVolumeMount(index));
}
public VolumeMountsNested editFirstVolumeMount() {
if (volumeMounts.size() == 0) throw new RuntimeException("Can't edit first volumeMounts. The list is empty.");
return setNewVolumeMountLike(0, buildVolumeMount(0));
}
public VolumeMountsNested editLastVolumeMount() {
int index = volumeMounts.size() - 1;
if (index < 0) throw new RuntimeException("Can't edit last volumeMounts. The list is empty.");
return setNewVolumeMountLike(index, buildVolumeMount(index));
}
public VolumeMountsNested editMatchingVolumeMount(Predicate predicate) {
int index = -1;
for (int i=0;i extends V1EnvVarFluent> implements Nested{
EnvNested(int index,V1EnvVar item) {
this.index = index;
this.builder = new V1EnvVarBuilder(this, item);
}
V1EnvVarBuilder builder;
int index;
public N and() {
return (N) V1ContainerFluent.this.setToEnv(index,builder.build());
}
public N endEnv() {
return and();
}
}
public class EnvFromNested extends V1EnvFromSourceFluent> implements Nested{
EnvFromNested(int index,V1EnvFromSource item) {
this.index = index;
this.builder = new V1EnvFromSourceBuilder(this, item);
}
V1EnvFromSourceBuilder builder;
int index;
public N and() {
return (N) V1ContainerFluent.this.setToEnvFrom(index,builder.build());
}
public N endEnvFrom() {
return and();
}
}
public class LifecycleNested extends V1LifecycleFluent> implements Nested{
LifecycleNested(V1Lifecycle item) {
this.builder = new V1LifecycleBuilder(this, item);
}
V1LifecycleBuilder builder;
public N and() {
return (N) V1ContainerFluent.this.withLifecycle(builder.build());
}
public N endLifecycle() {
return and();
}
}
public class LivenessProbeNested extends V1ProbeFluent> implements Nested{
LivenessProbeNested(V1Probe item) {
this.builder = new V1ProbeBuilder(this, item);
}
V1ProbeBuilder builder;
public N and() {
return (N) V1ContainerFluent.this.withLivenessProbe(builder.build());
}
public N endLivenessProbe() {
return and();
}
}
public class PortsNested extends V1ContainerPortFluent> implements Nested{
PortsNested(int index,V1ContainerPort item) {
this.index = index;
this.builder = new V1ContainerPortBuilder(this, item);
}
V1ContainerPortBuilder builder;
int index;
public N and() {
return (N) V1ContainerFluent.this.setToPorts(index,builder.build());
}
public N endPort() {
return and();
}
}
public class ReadinessProbeNested extends V1ProbeFluent> implements Nested{
ReadinessProbeNested(V1Probe item) {
this.builder = new V1ProbeBuilder(this, item);
}
V1ProbeBuilder builder;
public N and() {
return (N) V1ContainerFluent.this.withReadinessProbe(builder.build());
}
public N endReadinessProbe() {
return and();
}
}
public class ResizePolicyNested extends V1ContainerResizePolicyFluent> implements Nested{
ResizePolicyNested(int index,V1ContainerResizePolicy item) {
this.index = index;
this.builder = new V1ContainerResizePolicyBuilder(this, item);
}
V1ContainerResizePolicyBuilder builder;
int index;
public N and() {
return (N) V1ContainerFluent.this.setToResizePolicy(index,builder.build());
}
public N endResizePolicy() {
return and();
}
}
public class ResourcesNested extends V1ResourceRequirementsFluent> implements Nested{
ResourcesNested(V1ResourceRequirements item) {
this.builder = new V1ResourceRequirementsBuilder(this, item);
}
V1ResourceRequirementsBuilder builder;
public N and() {
return (N) V1ContainerFluent.this.withResources(builder.build());
}
public N endResources() {
return and();
}
}
public class SecurityContextNested extends V1SecurityContextFluent> implements Nested{
SecurityContextNested(V1SecurityContext item) {
this.builder = new V1SecurityContextBuilder(this, item);
}
V1SecurityContextBuilder builder;
public N and() {
return (N) V1ContainerFluent.this.withSecurityContext(builder.build());
}
public N endSecurityContext() {
return and();
}
}
public class StartupProbeNested extends V1ProbeFluent> implements Nested{
StartupProbeNested(V1Probe item) {
this.builder = new V1ProbeBuilder(this, item);
}
V1ProbeBuilder builder;
public N and() {
return (N) V1ContainerFluent.this.withStartupProbe(builder.build());
}
public N endStartupProbe() {
return and();
}
}
public class VolumeDevicesNested extends V1VolumeDeviceFluent> implements Nested{
VolumeDevicesNested(int index,V1VolumeDevice item) {
this.index = index;
this.builder = new V1VolumeDeviceBuilder(this, item);
}
V1VolumeDeviceBuilder builder;
int index;
public N and() {
return (N) V1ContainerFluent.this.setToVolumeDevices(index,builder.build());
}
public N endVolumeDevice() {
return and();
}
}
public class VolumeMountsNested extends V1VolumeMountFluent> implements Nested{
VolumeMountsNested(int index,V1VolumeMount item) {
this.index = index;
this.builder = new V1VolumeMountBuilder(this, item);
}
V1VolumeMountBuilder builder;
int index;
public N and() {
return (N) V1ContainerFluent.this.setToVolumeMounts(index,builder.build());
}
public N endVolumeMount() {
return and();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy