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

com.spotify.styx.model.AutoValue_DataEndpoint_Secret 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_DataEndpoint_Secret extends DataEndpoint.Secret {

  private final String name;
  private final String mountPath;

  AutoValue_DataEndpoint_Secret(
      String name,
      String mountPath) {
    if (name == null) {
      throw new NullPointerException("Null name");
    }
    this.name = name;
    if (mountPath == null) {
      throw new NullPointerException("Null mountPath");
    }
    this.mountPath = mountPath;
  }

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

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

  @Override
  public String toString() {
    return "Secret{"
        + "name=" + name + ", "
        + "mountPath=" + mountPath
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof DataEndpoint.Secret) {
      DataEndpoint.Secret that = (DataEndpoint.Secret) o;
      return (this.name.equals(that.name()))
           && (this.mountPath.equals(that.mountPath()));
    }
    return false;
  }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy