All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.flyte.api.v1.AutoValue_OnFailurePolicy Maven / Gradle / Ivy

There is a newer version: 0.4.60
Show newest version
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