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

io.dekorate.docker.config.DockerBuildConfig Maven / Gradle / Ivy

package io.dekorate.docker.config;

import io.dekorate.project.Project;
import io.dekorate.kubernetes.config.ConfigKey;
import io.dekorate.kubernetes.config.ImageConfiguration;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;
import java.util.Map;
import io.sundr.builder.annotations.Buildable;

 /**
  * Generated
  */
  @Buildable(builderPackage = "io.fabric8.kubernetes.api.builder")
  public class DockerBuildConfig extends ImageConfiguration{
  public DockerBuildConfig() {
  }
  public DockerBuildConfig(Project project,Map attributes,Boolean enabled,String registry,String group,String name,String version,String image,String dockerFile,Boolean autoBuildEnabled,Boolean autoPushEnabled,Boolean autoLoadEnabled,Boolean autoDeployEnabled) {
    super(project, attributes, enabled, registry, group, name, version, image, dockerFile, autoBuildEnabled, autoPushEnabled, autoLoadEnabled);
    this.autoDeployEnabled = autoDeployEnabled;
  }
  private Boolean autoDeployEnabled;
  
  /**
   * Flag to trigger the registration of the deploy hook. It's generally
   * preferable to use `-Ddekorate.deploy=true` instead of hardcoding this here.
   * @return True for automatic registration of the build hook.
   */
public Boolean getAutoDeployEnabled() {
    return this.autoDeployEnabled;
  }
  
  /**
   * Flag to trigger the registration of the deploy hook. It's generally
   * preferable to use `-Ddekorate.deploy=true` instead of hardcoding this here.
   * @return True for automatic registration of the build hook.
   */
public boolean isAutoDeployEnabled() {
    return this.autoDeployEnabled != null &&  this.autoDeployEnabled;
  }
  public static DockerBuildConfigBuilder newDockerBuildConfigBuilder() {
    return new DockerBuildConfigBuilder();
  }
  public static DockerBuildConfigBuilder newDockerBuildConfigBuilderFromDefaults() {
    return new DockerBuildConfigBuilder().withEnabled(true).withDockerFile("Dockerfile").withAutoPushEnabled(false).withAutoBuildEnabled(false).withAutoDeployEnabled(false);
  }
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    DockerBuildConfig that = (DockerBuildConfig) o;
    if (autoDeployEnabled != null ? !autoDeployEnabled.equals(that.autoDeployEnabled) :that.autoDeployEnabled != null) return false;
    return true;
  }
  public int hashCode() {
    return java.util.Objects.hash(autoDeployEnabled,  super.hashCode());
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy