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

io.dekorate.jib.config.JibBuildConfigFluent Maven / Gradle / Ivy

The newest version!
package io.dekorate.jib.config;

import java.lang.SuppressWarnings;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;
import io.dekorate.kubernetes.config.ImageConfigurationFluent;

/**
 * Generated
 */
@SuppressWarnings("unchecked")
public class JibBuildConfigFluent> extends ImageConfigurationFluent{
  public JibBuildConfigFluent() {
  }
  
  public JibBuildConfigFluent(JibBuildConfig instance) {
    this.copyInstance(instance);
  }
  private Boolean dockerBuild;
  private String from;
  private Boolean autoDeployEnabled;
  
  protected void copyInstance(JibBuildConfig instance) {
    instance = (instance != null ? instance : new JibBuildConfig());
    if (instance != null) {
          this.withProject(instance.getProject());
          this.withAttributes(instance.getAttributes());
          this.withEnabled(instance.getEnabled());
          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.getAutoBuildEnabled());
          this.withAutoPushEnabled(instance.getAutoPushEnabled());
          this.withAutoLoadEnabled(instance.isAutoLoadEnabled());
          this.withDockerBuild(instance.getDockerBuild());
          this.withFrom(instance.getFrom());
          this.withAutoDeployEnabled(instance.getAutoDeployEnabled());
          this.withPartOf(instance.getPartOf());
        }
  }
  
  public Boolean getDockerBuild() {
    return this.dockerBuild;
  }
  
  public A withDockerBuild(Boolean dockerBuild) {
    this.dockerBuild = dockerBuild;
    return (A) this;
  }
  
  public boolean hasDockerBuild() {
    return this.dockerBuild != null;
  }
  
  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 Boolean getAutoDeployEnabled() {
    return this.autoDeployEnabled;
  }
  
  public A withAutoDeployEnabled(Boolean autoDeployEnabled) {
    this.autoDeployEnabled = autoDeployEnabled;
    return (A) this;
  }
  
  public boolean hasAutoDeployEnabled() {
    return this.autoDeployEnabled != null;
  }
  
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    JibBuildConfigFluent that = (JibBuildConfigFluent) o;
    if (!java.util.Objects.equals(dockerBuild, that.dockerBuild)) return false;
    if (!java.util.Objects.equals(from, that.from)) return false;
    if (!java.util.Objects.equals(autoDeployEnabled, that.autoDeployEnabled)) return false;
    return true;
  }
  
  public int hashCode() {
    return java.util.Objects.hash(dockerBuild,  from,  autoDeployEnabled,  super.hashCode());
  }
  
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("{");
    if (dockerBuild != null) { sb.append("dockerBuild:"); sb.append(dockerBuild + ","); }
    if (from != null) { sb.append("from:"); sb.append(from + ","); }
    if (autoDeployEnabled != null) { sb.append("autoDeployEnabled:"); sb.append(autoDeployEnabled); }
    sb.append("}");
    return sb.toString();
  }
  
  public A withDockerBuild() {
    return withDockerBuild(true);
  }
  
  public A withAutoDeployEnabled() {
    return withAutoDeployEnabled(true);
  }
  

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy