io.honnix.rkt.launcher.output.CatManifestOutputBuilder Maven / Gradle / Ivy
package io.honnix.rkt.launcher.output;
import io.honnix.rkt.launcher.model.schema.PodManifest;
import io.norberg.automatter.AutoMatter;
import javax.annotation.Generated;
@Generated("io.norberg.automatter.processor.AutoMatterProcessor")
public final class CatManifestOutputBuilder {
private PodManifest podManifest;
public CatManifestOutputBuilder() {
}
private CatManifestOutputBuilder(CatManifestOutput v) {
this.podManifest = v.podManifest();
}
private CatManifestOutputBuilder(CatManifestOutputBuilder v) {
this.podManifest = v.podManifest;
}
public PodManifest podManifest() {
return podManifest;
}
public CatManifestOutputBuilder podManifest(PodManifest podManifest) {
if (podManifest == null) {
throw new NullPointerException("podManifest");
}
this.podManifest = podManifest;
return this;
}
public CatManifestOutput build() {
return new Value(podManifest);
}
public static CatManifestOutputBuilder from(CatManifestOutput v) {
return new CatManifestOutputBuilder(v);
}
public static CatManifestOutputBuilder from(CatManifestOutputBuilder v) {
return new CatManifestOutputBuilder(v);
}
private static final class Value implements CatManifestOutput {
private final PodManifest podManifest;
private Value(@AutoMatter.Field("podManifest") PodManifest podManifest) {
if (podManifest == null) {
throw new NullPointerException("podManifest");
}
this.podManifest = podManifest;
}
@AutoMatter.Field
@Override
public PodManifest podManifest() {
return podManifest;
}
public CatManifestOutputBuilder builder() {
return new CatManifestOutputBuilder(this);
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof CatManifestOutput)) {
return false;
}
final CatManifestOutput that = (CatManifestOutput) o;
if (podManifest != null ? !podManifest.equals(that.podManifest()) : that.podManifest() != null) {
return false;
}
return true;
}
@Override
public int hashCode() {
int result = 1;
long temp;
result = 31 * result + (podManifest != null ? podManifest.hashCode() : 0);
return result;
}
@Override
public String toString() {
return "CatManifestOutput{" +
"podManifest=" + podManifest +
'}';
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy