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