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

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

There is a newer version: 2.0.24
Show newest version

package com.spotify.styx.model;

import javax.annotation.Generated;

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

  private final String componentId;
  private final String endpointId;

  AutoValue_WorkflowId(
      String componentId,
      String endpointId) {
    if (componentId == null) {
      throw new NullPointerException("Null componentId");
    }
    this.componentId = componentId;
    if (endpointId == null) {
      throw new NullPointerException("Null endpointId");
    }
    this.endpointId = endpointId;
  }

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

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

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

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy