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

com.spotify.styx.model.AutoValue_WorkflowState Maven / Gradle / Ivy

package com.spotify.styx.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.Instant;
import java.util.Optional;
import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_WorkflowState extends WorkflowState {

  private final Optional enabled;

  private final Optional nextNaturalTrigger;

  private final Optional nextNaturalOffsetTrigger;

  private AutoValue_WorkflowState(
      Optional enabled,
      Optional nextNaturalTrigger,
      Optional nextNaturalOffsetTrigger) {
    this.enabled = enabled;
    this.nextNaturalTrigger = nextNaturalTrigger;
    this.nextNaturalOffsetTrigger = nextNaturalOffsetTrigger;
  }

  @JsonProperty
  @Override
  public Optional enabled() {
    return enabled;
  }

  @JsonProperty
  @Override
  public Optional nextNaturalTrigger() {
    return nextNaturalTrigger;
  }

  @JsonProperty
  @Override
  public Optional nextNaturalOffsetTrigger() {
    return nextNaturalOffsetTrigger;
  }

  @Override
  public String toString() {
    return "WorkflowState{"
        + "enabled=" + enabled + ", "
        + "nextNaturalTrigger=" + nextNaturalTrigger + ", "
        + "nextNaturalOffsetTrigger=" + nextNaturalOffsetTrigger
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof WorkflowState) {
      WorkflowState that = (WorkflowState) o;
      return this.enabled.equals(that.enabled())
          && this.nextNaturalTrigger.equals(that.nextNaturalTrigger())
          && this.nextNaturalOffsetTrigger.equals(that.nextNaturalOffsetTrigger());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= enabled.hashCode();
    h$ *= 1000003;
    h$ ^= nextNaturalTrigger.hashCode();
    h$ *= 1000003;
    h$ ^= nextNaturalOffsetTrigger.hashCode();
    return h$;
  }

  @Override
  public WorkflowState.Builder toBuilder() {
    return new Builder(this);
  }

  static final class Builder extends WorkflowState.Builder {
    private Optional enabled = Optional.empty();
    private Optional nextNaturalTrigger = Optional.empty();
    private Optional nextNaturalOffsetTrigger = Optional.empty();
    Builder() {
    }
    private Builder(WorkflowState source) {
      this.enabled = source.enabled();
      this.nextNaturalTrigger = source.nextNaturalTrigger();
      this.nextNaturalOffsetTrigger = source.nextNaturalOffsetTrigger();
    }
    @Override
    public WorkflowState.Builder enabled(boolean enabled) {
      this.enabled = Optional.of(enabled);
      return this;
    }
    @Override
    public WorkflowState.Builder nextNaturalTrigger(Instant nextNaturalTrigger) {
      this.nextNaturalTrigger = Optional.of(nextNaturalTrigger);
      return this;
    }
    @Override
    public WorkflowState.Builder nextNaturalOffsetTrigger(Instant nextNaturalOffsetTrigger) {
      this.nextNaturalOffsetTrigger = Optional.of(nextNaturalOffsetTrigger);
      return this;
    }
    @Override
    public WorkflowState build() {
      return new AutoValue_WorkflowState(
          this.enabled,
          this.nextNaturalTrigger,
          this.nextNaturalOffsetTrigger);
    }
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy