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

org.flyte.api.v1.AutoValue_LaunchPlanIdentifier 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_LaunchPlanIdentifier extends LaunchPlanIdentifier {

  private final String name;

  private final String domain;

  private final String project;

  private final String version;

  private AutoValue_LaunchPlanIdentifier(
      String name,
      String domain,
      String project,
      String version) {
    this.name = name;
    this.domain = domain;
    this.project = project;
    this.version = version;
  }

  @Override
  public String name() {
    return name;
  }

  @Override
  public String domain() {
    return domain;
  }

  @Override
  public String project() {
    return project;
  }

  @Override
  public String version() {
    return version;
  }

  @Override
  public String toString() {
    return "LaunchPlanIdentifier{"
        + "name=" + name + ", "
        + "domain=" + domain + ", "
        + "project=" + project + ", "
        + "version=" + version
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof LaunchPlanIdentifier) {
      LaunchPlanIdentifier that = (LaunchPlanIdentifier) o;
      return this.name.equals(that.name())
          && this.domain.equals(that.domain())
          && this.project.equals(that.project())
          && this.version.equals(that.version());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= name.hashCode();
    h$ *= 1000003;
    h$ ^= domain.hashCode();
    h$ *= 1000003;
    h$ ^= project.hashCode();
    h$ *= 1000003;
    h$ ^= version.hashCode();
    return h$;
  }

  static final class Builder extends LaunchPlanIdentifier.Builder {
    private String name;
    private String domain;
    private String project;
    private String version;
    Builder() {
    }
    @Override
    public LaunchPlanIdentifier.Builder name(String name) {
      if (name == null) {
        throw new NullPointerException("Null name");
      }
      this.name = name;
      return this;
    }
    @Override
    public LaunchPlanIdentifier.Builder domain(String domain) {
      if (domain == null) {
        throw new NullPointerException("Null domain");
      }
      this.domain = domain;
      return this;
    }
    @Override
    public LaunchPlanIdentifier.Builder project(String project) {
      if (project == null) {
        throw new NullPointerException("Null project");
      }
      this.project = project;
      return this;
    }
    @Override
    public LaunchPlanIdentifier.Builder version(String version) {
      if (version == null) {
        throw new NullPointerException("Null version");
      }
      this.version = version;
      return this;
    }
    @Override
    public LaunchPlanIdentifier build() {
      if (this.name == null
          || this.domain == null
          || this.project == null
          || this.version == null) {
        StringBuilder missing = new StringBuilder();
        if (this.name == null) {
          missing.append(" name");
        }
        if (this.domain == null) {
          missing.append(" domain");
        }
        if (this.project == null) {
          missing.append(" project");
        }
        if (this.version == null) {
          missing.append(" version");
        }
        throw new IllegalStateException("Missing required properties:" + missing);
      }
      return new AutoValue_LaunchPlanIdentifier(
          this.name,
          this.domain,
          this.project,
          this.version);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy