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

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

There is a newer version: 2.0.24
Show newest version

package com.spotify.styx.model;

import java.net.URI;
import javax.annotation.Generated;

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

  private final String componentId;
  private final String endpointId;
  private final URI componentUri;
  private final DataEndpoint schedule;

  AutoValue_Workflow(
      String componentId,
      String endpointId,
      URI componentUri,
      DataEndpoint schedule) {
    if (componentId == null) {
      throw new NullPointerException("Null componentId");
    }
    this.componentId = componentId;
    if (endpointId == null) {
      throw new NullPointerException("Null endpointId");
    }
    this.endpointId = endpointId;
    if (componentUri == null) {
      throw new NullPointerException("Null componentUri");
    }
    this.componentUri = componentUri;
    if (schedule == null) {
      throw new NullPointerException("Null schedule");
    }
    this.schedule = schedule;
  }

  @com.fasterxml.jackson.annotation.JsonProperty
  @Override
  public String componentId() {
    return componentId;
  }

  @com.fasterxml.jackson.annotation.JsonProperty
  @Override
  public String endpointId() {
    return endpointId;
  }

  @com.fasterxml.jackson.annotation.JsonProperty
  @Override
  public URI componentUri() {
    return componentUri;
  }

  @com.fasterxml.jackson.annotation.JsonProperty
  @Override
  public DataEndpoint schedule() {
    return schedule;
  }

  @Override
  public String toString() {
    return "Workflow{"
        + "componentId=" + componentId + ", "
        + "endpointId=" + endpointId + ", "
        + "componentUri=" + componentUri + ", "
        + "schedule=" + schedule
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof Workflow) {
      Workflow that = (Workflow) o;
      return (this.componentId.equals(that.componentId()))
           && (this.endpointId.equals(that.endpointId()))
           && (this.componentUri.equals(that.componentUri()))
           && (this.schedule.equals(that.schedule()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= componentId.hashCode();
    h *= 1000003;
    h ^= endpointId.hashCode();
    h *= 1000003;
    h ^= componentUri.hashCode();
    h *= 1000003;
    h ^= schedule.hashCode();
    return h;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy