
annotations.io.fabric8.kubernetes.api.model.EnvVarSourceFluentImpl Maven / Gradle / Ivy
package io.fabric8.kubernetes.api.model;
import java.util.HashMap;
import java.io.Serializable;
import java.util.Map;
import java.util.Map;
import java.util.AbstractMap;
import io.fabric8.kubernetes.api.builder.Visitable;
import io.fabric8.kubernetes.api.builder.Builder;
import io.fabric8.kubernetes.api.builder.Visitable;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import io.fabric8.kubernetes.api.builder.Fluent;
import io.fabric8.kubernetes.api.builder.Nested;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class EnvVarSourceFluentImpl> extends BaseFluent implements EnvVarSourceFluent{
VisitableBuilder configMapKeyRef; VisitableBuilder fieldRef; VisitableBuilder secretKeyRef;
public EnvVarSourceFluentImpl(){
}
public EnvVarSourceFluentImpl( EnvVarSource instance ){
this.withConfigMapKeyRef(instance.getConfigMapKeyRef()); this.withFieldRef(instance.getFieldRef()); this.withSecretKeyRef(instance.getSecretKeyRef());
}
public ConfigMapKeySelector getConfigMapKeyRef(){
return this.configMapKeyRef!=null?this.configMapKeyRef.build():null;
}
public A withConfigMapKeyRef( ConfigMapKeySelector configMapKeyRef){
if (configMapKeyRef!=null){ this.configMapKeyRef= new ConfigMapKeySelectorBuilder(configMapKeyRef); _visitables.add(this.configMapKeyRef);} return (A) this;
}
public ConfigMapKeyRefNested withNewConfigMapKeyRef(){
return new ConfigMapKeyRefNestedImpl();
}
public ConfigMapKeyRefNested withNewConfigMapKeyRefLike( ConfigMapKeySelector item){
return new ConfigMapKeyRefNestedImpl(item);
}
public ConfigMapKeyRefNested editConfigMapKeyRef(){
return withNewConfigMapKeyRefLike(getConfigMapKeyRef());
}
public A withNewConfigMapKeyRef( String key, String name){
return withConfigMapKeyRef(new ConfigMapKeySelector(key, name));
}
public ObjectFieldSelector getFieldRef(){
return this.fieldRef!=null?this.fieldRef.build():null;
}
public A withFieldRef( ObjectFieldSelector fieldRef){
if (fieldRef!=null){ this.fieldRef= new ObjectFieldSelectorBuilder(fieldRef); _visitables.add(this.fieldRef);} return (A) this;
}
public FieldRefNested withNewFieldRef(){
return new FieldRefNestedImpl();
}
public FieldRefNested withNewFieldRefLike( ObjectFieldSelector item){
return new FieldRefNestedImpl(item);
}
public FieldRefNested editFieldRef(){
return withNewFieldRefLike(getFieldRef());
}
public A withNewFieldRef( String apiVersion, String fieldPath){
return withFieldRef(new ObjectFieldSelector(apiVersion, fieldPath));
}
public SecretKeySelector getSecretKeyRef(){
return this.secretKeyRef!=null?this.secretKeyRef.build():null;
}
public A withSecretKeyRef( SecretKeySelector secretKeyRef){
if (secretKeyRef!=null){ this.secretKeyRef= new SecretKeySelectorBuilder(secretKeyRef); _visitables.add(this.secretKeyRef);} return (A) this;
}
public SecretKeyRefNested withNewSecretKeyRef(){
return new SecretKeyRefNestedImpl();
}
public SecretKeyRefNested withNewSecretKeyRefLike( SecretKeySelector item){
return new SecretKeyRefNestedImpl(item);
}
public SecretKeyRefNested editSecretKeyRef(){
return withNewSecretKeyRefLike(getSecretKeyRef());
}
public A withNewSecretKeyRef( String key, String name){
return withSecretKeyRef(new SecretKeySelector(key, name));
}
public boolean equals( Object o){
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
EnvVarSourceFluentImpl that = (EnvVarSourceFluentImpl) o;
if (configMapKeyRef != null ? !configMapKeyRef.equals(that.configMapKeyRef) :that.configMapKeyRef != null) return false;
if (fieldRef != null ? !fieldRef.equals(that.fieldRef) :that.fieldRef != null) return false;
if (secretKeyRef != null ? !secretKeyRef.equals(that.secretKeyRef) :that.secretKeyRef != null) return false;
return true;
}
public class ConfigMapKeyRefNestedImpl extends ConfigMapKeySelectorFluentImpl> implements ConfigMapKeyRefNested{
private final ConfigMapKeySelectorBuilder builder;
ConfigMapKeyRefNestedImpl (){
this.builder = new ConfigMapKeySelectorBuilder(this);
}
ConfigMapKeyRefNestedImpl ( ConfigMapKeySelector item){
this.builder = new ConfigMapKeySelectorBuilder(this, item);
}
public N endConfigMapKeyRef(){
return and();
}
public N and(){
return (N) EnvVarSourceFluentImpl.this.withConfigMapKeyRef(builder.build());
}
}
public class FieldRefNestedImpl extends ObjectFieldSelectorFluentImpl> implements FieldRefNested{
private final ObjectFieldSelectorBuilder builder;
FieldRefNestedImpl (){
this.builder = new ObjectFieldSelectorBuilder(this);
}
FieldRefNestedImpl ( ObjectFieldSelector item){
this.builder = new ObjectFieldSelectorBuilder(this, item);
}
public N and(){
return (N) EnvVarSourceFluentImpl.this.withFieldRef(builder.build());
}
public N endFieldRef(){
return and();
}
}
public class SecretKeyRefNestedImpl extends SecretKeySelectorFluentImpl> implements SecretKeyRefNested{
private final SecretKeySelectorBuilder builder;
SecretKeyRefNestedImpl (){
this.builder = new SecretKeySelectorBuilder(this);
}
SecretKeyRefNestedImpl ( SecretKeySelector item){
this.builder = new SecretKeySelectorBuilder(this, item);
}
public N endSecretKeyRef(){
return and();
}
public N and(){
return (N) EnvVarSourceFluentImpl.this.withSecretKeyRef(builder.build());
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy