io.dekorate.jib.config.JibBuildConfigFluentImpl Maven / Gradle / Ivy
package io.dekorate.jib.config;
import java.lang.StringBuffer;
import io.dekorate.kubernetes.config.ImageConfigurationFluentImpl;
import java.lang.StringBuilder;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;
public class JibBuildConfigFluentImpl> extends ImageConfigurationFluentImpl implements JibBuildConfigFluent{
private boolean enabled = true;
private boolean dockerBuild = true;
private String from = "openjdk:8-jdk";
private boolean autoDeployEnabled = false;
public JibBuildConfigFluentImpl(){
}
public JibBuildConfigFluentImpl(JibBuildConfig instance){
this.withProject(instance.getProject());
this.withAttributes(instance.getAttributes());
this.withRegistry(instance.getRegistry());
this.withGroup(instance.getGroup());
this.withName(instance.getName());
this.withVersion(instance.getVersion());
this.withImage(instance.getImage());
this.withDockerFile(instance.getDockerFile());
this.withAutoBuildEnabled(instance.isAutoBuildEnabled());
this.withAutoPushEnabled(instance.isAutoPushEnabled());
this.withEnabled(instance.isEnabled());
this.withDockerBuild(instance.isDockerBuild());
this.withFrom(instance.getFrom());
this.withAutoDeployEnabled(instance.isAutoDeployEnabled());
}
public boolean isEnabled(){
return this.enabled;
}
public A withEnabled(boolean enabled){
this.enabled=enabled; return (A) this;
}
public Boolean hasEnabled(){
return true;
}
public boolean isDockerBuild(){
return this.dockerBuild;
}
public A withDockerBuild(boolean dockerBuild){
this.dockerBuild=dockerBuild; return (A) this;
}
public Boolean hasDockerBuild(){
return true;
}
public String getFrom(){
return this.from;
}
public A withFrom(String from){
this.from=from; return (A) this;
}
public Boolean hasFrom(){
return this.from != null;
}
public A withNewFrom(String arg1){
return (A)withFrom(new String(arg1));
}
public A withNewFrom(StringBuilder arg1){
return (A)withFrom(new String(arg1));
}
public A withNewFrom(StringBuffer arg1){
return (A)withFrom(new String(arg1));
}
public boolean isAutoDeployEnabled(){
return this.autoDeployEnabled;
}
public A withAutoDeployEnabled(boolean autoDeployEnabled){
this.autoDeployEnabled=autoDeployEnabled; return (A) this;
}
public Boolean hasAutoDeployEnabled(){
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;
JibBuildConfigFluentImpl that = (JibBuildConfigFluentImpl) o;
if (enabled != that.enabled) return false;
if (dockerBuild != that.dockerBuild) return false;
if (from != null ? !from.equals(that.from) :that.from != null) return false;
if (autoDeployEnabled != that.autoDeployEnabled) return false;
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy