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