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

org.graylog2.messageprocessors.$AutoValue_MessageProcessorsConfig Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
package org.graylog2.messageprocessors;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Set;
import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_MessageProcessorsConfig extends MessageProcessorsConfig {

  private final List processorOrder;

  private final Set disabledProcessors;

  $AutoValue_MessageProcessorsConfig(
      List processorOrder,
      Set disabledProcessors) {
    if (processorOrder == null) {
      throw new NullPointerException("Null processorOrder");
    }
    this.processorOrder = processorOrder;
    if (disabledProcessors == null) {
      throw new NullPointerException("Null disabledProcessors");
    }
    this.disabledProcessors = disabledProcessors;
  }

  @JsonProperty("processor_order")
  @Override
  public List processorOrder() {
    return processorOrder;
  }

  @JsonProperty("disabled_processors")
  @Override
  public Set disabledProcessors() {
    return disabledProcessors;
  }

  @Override
  public String toString() {
    return "MessageProcessorsConfig{"
        + "processorOrder=" + processorOrder + ", "
        + "disabledProcessors=" + disabledProcessors
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof MessageProcessorsConfig) {
      MessageProcessorsConfig that = (MessageProcessorsConfig) o;
      return this.processorOrder.equals(that.processorOrder())
          && this.disabledProcessors.equals(that.disabledProcessors());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= processorOrder.hashCode();
    h$ *= 1000003;
    h$ ^= disabledProcessors.hashCode();
    return h$;
  }

  @Override
  public MessageProcessorsConfig.Builder toBuilder() {
    return new Builder(this);
  }

  static class Builder extends MessageProcessorsConfig.Builder {
    private List processorOrder;
    private Set disabledProcessors;
    Builder() {
    }
    private Builder(MessageProcessorsConfig source) {
      this.processorOrder = source.processorOrder();
      this.disabledProcessors = source.disabledProcessors();
    }
    @Override
    public MessageProcessorsConfig.Builder processorOrder(List processorOrder) {
      if (processorOrder == null) {
        throw new NullPointerException("Null processorOrder");
      }
      this.processorOrder = processorOrder;
      return this;
    }
    @Override
    public MessageProcessorsConfig.Builder disabledProcessors(Set disabledProcessors) {
      if (disabledProcessors == null) {
        throw new NullPointerException("Null disabledProcessors");
      }
      this.disabledProcessors = disabledProcessors;
      return this;
    }
    @Override
    public MessageProcessorsConfig build() {
      if (this.processorOrder == null
          || this.disabledProcessors == null) {
        StringBuilder missing = new StringBuilder();
        if (this.processorOrder == null) {
          missing.append(" processorOrder");
        }
        if (this.disabledProcessors == null) {
          missing.append(" disabledProcessors");
        }
        throw new IllegalStateException("Missing required properties:" + missing);
      }
      return new AutoValue_MessageProcessorsConfig(
          this.processorOrder,
          this.disabledProcessors);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy