io.dekorate.servicebinding.config.ServiceBindingConfig Maven / Gradle / Ivy
package io.dekorate.servicebinding.config;
import io.dekorate.kubernetes.config.ConfigKey;
import java.lang.String;
import io.dekorate.kubernetes.config.Env;
import io.dekorate.project.Project;
import java.lang.Object;
import java.lang.Boolean;
import io.dekorate.kubernetes.config.ApplicationConfiguration;
import java.util.Map;
import io.sundr.builder.annotations.Buildable;
/**
* Generated
*/
@Buildable(builderPackage = "io.fabric8.kubernetes.api.builder")
public class ServiceBindingConfig extends ApplicationConfiguration{
public ServiceBindingConfig() {
}
public ServiceBindingConfig(Project project,Map attributes,String partOf,String name,String version,ApplicationConfig application,ServiceConfig[] services,String envVarPrefix,Boolean detectBindingResources,Boolean bindAsFiles,String mountPath,Env[] customEnvVar,BindingPathConfig bindingPath) {
super(project, attributes, partOf, name, version);
this.application = application;
this.services = services != null ? services : new ServiceConfig[0];
this.envVarPrefix = envVarPrefix;
this.detectBindingResources = detectBindingResources;
this.bindAsFiles = bindAsFiles;
this.mountPath = mountPath;
this.customEnvVar = customEnvVar != null ? customEnvVar : new Env[0];
this.bindingPath = bindingPath;
}
private ApplicationConfig application;
private ServiceConfig[] services = new ServiceConfig[0];
private String envVarPrefix;
private Boolean detectBindingResources;
private Boolean bindAsFiles;
private String mountPath;
private Env[] customEnvVar = new Env[0];
private BindingPathConfig bindingPath;
public ApplicationConfig getApplication() {
return this.application;
}
public ServiceConfig[] getServices() {
return this.services;
}
public String getEnvVarPrefix() {
return this.envVarPrefix;
}
public Boolean getDetectBindingResources() {
return this.detectBindingResources;
}
public boolean isDetectBindingResources() {
return this.detectBindingResources != null && this.detectBindingResources;
}
public Boolean getBindAsFiles() {
return this.bindAsFiles;
}
public boolean isBindAsFiles() {
return this.bindAsFiles != null && this.bindAsFiles;
}
public String getMountPath() {
return this.mountPath;
}
public Env[] getCustomEnvVar() {
return this.customEnvVar;
}
public BindingPathConfig getBindingPath() {
return this.bindingPath;
}
public static ServiceBindingConfigBuilder newServiceBindingConfigBuilder() {
return new ServiceBindingConfigBuilder();
}
public static ServiceBindingConfigBuilder newServiceBindingConfigBuilderFromDefaults() {
return new ServiceBindingConfigBuilder().withApplication(new ApplicationConfig()).withDetectBindingResources(false).withBindAsFiles(false).withBindingPath(new BindingPathConfig());
}
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
ServiceBindingConfig that = (ServiceBindingConfig) o;
if (application != null ? !application.equals(that.application) :that.application != null) return false;
if (services != null ? !services.equals(that.services) :that.services != null) return false;
if (envVarPrefix != null ? !envVarPrefix.equals(that.envVarPrefix) :that.envVarPrefix != null) return false;
if (detectBindingResources != null ? !detectBindingResources.equals(that.detectBindingResources) :that.detectBindingResources != null) return false;
if (bindAsFiles != null ? !bindAsFiles.equals(that.bindAsFiles) :that.bindAsFiles != null) return false;
if (mountPath != null ? !mountPath.equals(that.mountPath) :that.mountPath != null) return false;
if (customEnvVar != null ? !customEnvVar.equals(that.customEnvVar) :that.customEnvVar != null) return false;
if (bindingPath != null ? !bindingPath.equals(that.bindingPath) :that.bindingPath != null) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(application, services, envVarPrefix, detectBindingResources, bindAsFiles, mountPath, customEnvVar, bindingPath, super.hashCode());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy