org.flyte.jflyte.utils.AutoValue_ExecutionConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jflyte-utils Show documentation
Show all versions of jflyte-utils Show documentation
Primarily used by jflyte, but can also be used to extend or build a jflyte alternative
package org.flyte.jflyte.utils;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ExecutionConfig extends ExecutionConfig {
private final String image;
private final String project;
private final String domain;
private final String version;
private AutoValue_ExecutionConfig(
String image,
String project,
String domain,
String version) {
this.image = image;
this.project = project;
this.domain = domain;
this.version = version;
}
@Override
String image() {
return image;
}
@Override
public String project() {
return project;
}
@Override
public String domain() {
return domain;
}
@Override
public String version() {
return version;
}
@Override
public String toString() {
return "ExecutionConfig{"
+ "image=" + image + ", "
+ "project=" + project + ", "
+ "domain=" + domain + ", "
+ "version=" + version
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ExecutionConfig) {
ExecutionConfig that = (ExecutionConfig) o;
return this.image.equals(that.image())
&& this.project.equals(that.project())
&& this.domain.equals(that.domain())
&& this.version.equals(that.version());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= image.hashCode();
h$ *= 1000003;
h$ ^= project.hashCode();
h$ *= 1000003;
h$ ^= domain.hashCode();
h$ *= 1000003;
h$ ^= version.hashCode();
return h$;
}
static final class Builder extends ExecutionConfig.Builder {
private String image;
private String project;
private String domain;
private String version;
Builder() {
}
@Override
public ExecutionConfig.Builder image(String image) {
if (image == null) {
throw new NullPointerException("Null image");
}
this.image = image;
return this;
}
@Override
public ExecutionConfig.Builder project(String project) {
if (project == null) {
throw new NullPointerException("Null project");
}
this.project = project;
return this;
}
@Override
public ExecutionConfig.Builder domain(String domain) {
if (domain == null) {
throw new NullPointerException("Null domain");
}
this.domain = domain;
return this;
}
@Override
public ExecutionConfig.Builder version(String version) {
if (version == null) {
throw new NullPointerException("Null version");
}
this.version = version;
return this;
}
@Override
public ExecutionConfig build() {
if (this.image == null
|| this.project == null
|| this.domain == null
|| this.version == null) {
StringBuilder missing = new StringBuilder();
if (this.image == null) {
missing.append(" image");
}
if (this.project == null) {
missing.append(" project");
}
if (this.domain == null) {
missing.append(" domain");
}
if (this.version == null) {
missing.append(" version");
}
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_ExecutionConfig(
this.image,
this.project,
this.domain,
this.version);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy