org.flyte.api.v1.AutoValue_OnFailurePolicy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of flytekit-api Show documentation
Show all versions of flytekit-api Show documentation
Java friendly representation of flyteidl protos.
package org.flyte.api.v1;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_OnFailurePolicy extends OnFailurePolicy {
private final OnFailurePolicy.Kind kind;
private AutoValue_OnFailurePolicy(
OnFailurePolicy.Kind kind) {
this.kind = kind;
}
@Override
public OnFailurePolicy.Kind getKind() {
return kind;
}
@Override
public String toString() {
return "OnFailurePolicy{"
+ "kind=" + kind
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof OnFailurePolicy) {
OnFailurePolicy that = (OnFailurePolicy) o;
return this.kind.equals(that.getKind());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= kind.hashCode();
return h$;
}
static final class Builder extends OnFailurePolicy.Builder {
private OnFailurePolicy.Kind kind;
Builder() {
}
@Override
public OnFailurePolicy.Builder kind(OnFailurePolicy.Kind kind) {
if (kind == null) {
throw new NullPointerException("Null kind");
}
this.kind = kind;
return this;
}
@Override
public OnFailurePolicy build() {
if (this.kind == null) {
String missing = " kind";
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_OnFailurePolicy(
this.kind);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy