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

org.graylog.scheduler.rest.AutoValue_JobTriggerDetails Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
package org.graylog.scheduler.rest;

import javax.annotation.processing.Generated;

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

  private final String info;

  private final String description;

  private final String systemJobName;

  private final boolean isCancellable;

  AutoValue_JobTriggerDetails(
      String info,
      String description,
      String systemJobName,
      boolean isCancellable) {
    if (info == null) {
      throw new NullPointerException("Null info");
    }
    this.info = info;
    if (description == null) {
      throw new NullPointerException("Null description");
    }
    this.description = description;
    if (systemJobName == null) {
      throw new NullPointerException("Null systemJobName");
    }
    this.systemJobName = systemJobName;
    this.isCancellable = isCancellable;
  }

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

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

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

  @Override
  public boolean isCancellable() {
    return isCancellable;
  }

  @Override
  public String toString() {
    return "JobTriggerDetails{"
        + "info=" + info + ", "
        + "description=" + description + ", "
        + "systemJobName=" + systemJobName + ", "
        + "isCancellable=" + isCancellable
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof JobTriggerDetails) {
      JobTriggerDetails that = (JobTriggerDetails) o;
      return this.info.equals(that.info())
          && this.description.equals(that.description())
          && this.systemJobName.equals(that.systemJobName())
          && this.isCancellable == that.isCancellable();
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= info.hashCode();
    h$ *= 1000003;
    h$ ^= description.hashCode();
    h$ *= 1000003;
    h$ ^= systemJobName.hashCode();
    h$ *= 1000003;
    h$ ^= isCancellable ? 1231 : 1237;
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy