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

com.airbus_cyber_security.graylog.config.rest.AutoValue_AlertWizardConfig Maven / Gradle / Ivy

There is a newer version: 5.2.1
Show newest version


package com.airbus_cyber_security.graylog.config.rest;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import javax.annotation.Generated;
import javax.annotation.Nullable;
import javax.validation.constraints.NotNull;

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

  private final @NotNull List accessFieldOrder;

  private final DefaultValues accessDefaultValues;

  private final ImportPolicyType accessImportPolicy;

  private AutoValue_AlertWizardConfig(
      @NotNull List accessFieldOrder,
      @Nullable DefaultValues accessDefaultValues,
      @Nullable ImportPolicyType accessImportPolicy) {
    this.accessFieldOrder = accessFieldOrder;
    this.accessDefaultValues = accessDefaultValues;
    this.accessImportPolicy = accessImportPolicy;
  }

  @JsonProperty(value = "field_order")
  @Override
  public @NotNull List accessFieldOrder() {
    return accessFieldOrder;
  }

  @JsonProperty(value = "default_values")
  @Nullable
  @Override
  public DefaultValues accessDefaultValues() {
    return accessDefaultValues;
  }

  @JsonProperty(value = "import_policy")
  @Nullable
  @Override
  public ImportPolicyType accessImportPolicy() {
    return accessImportPolicy;
  }

  @Override
  public String toString() {
    return "AlertWizardConfig{"
         + "accessFieldOrder=" + accessFieldOrder + ", "
         + "accessDefaultValues=" + accessDefaultValues + ", "
         + "accessImportPolicy=" + accessImportPolicy
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof AlertWizardConfig) {
      AlertWizardConfig that = (AlertWizardConfig) o;
      return this.accessFieldOrder.equals(that.accessFieldOrder())
          && (this.accessDefaultValues == null ? that.accessDefaultValues() == null : this.accessDefaultValues.equals(that.accessDefaultValues()))
          && (this.accessImportPolicy == null ? that.accessImportPolicy() == null : this.accessImportPolicy.equals(that.accessImportPolicy()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= accessFieldOrder.hashCode();
    h$ *= 1000003;
    h$ ^= (accessDefaultValues == null) ? 0 : accessDefaultValues.hashCode();
    h$ *= 1000003;
    h$ ^= (accessImportPolicy == null) ? 0 : accessImportPolicy.hashCode();
    return h$;
  }

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

  static final class Builder extends AlertWizardConfig.Builder {
    private @NotNull List accessFieldOrder;
    private DefaultValues accessDefaultValues;
    private ImportPolicyType accessImportPolicy;
    Builder() {
    }
    private Builder(AlertWizardConfig source) {
      this.accessFieldOrder = source.accessFieldOrder();
      this.accessDefaultValues = source.accessDefaultValues();
      this.accessImportPolicy = source.accessImportPolicy();
    }
    @Override
    public AlertWizardConfig.Builder accessFieldOrder(List accessFieldOrder) {
      if (accessFieldOrder == null) {
        throw new NullPointerException("Null accessFieldOrder");
      }
      this.accessFieldOrder = accessFieldOrder;
      return this;
    }
    @Override
    public AlertWizardConfig.Builder accessDefaultValues(DefaultValues accessDefaultValues) {
      this.accessDefaultValues = accessDefaultValues;
      return this;
    }
    @Override
    public AlertWizardConfig.Builder accessImportPolicy(ImportPolicyType accessImportPolicy) {
      this.accessImportPolicy = accessImportPolicy;
      return this;
    }
    @Override
    public AlertWizardConfig build() {
      String missing = "";
      if (this.accessFieldOrder == null) {
        missing += " accessFieldOrder";
      }
      if (!missing.isEmpty()) {
        throw new IllegalStateException("Missing required properties:" + missing);
      }
      return new AutoValue_AlertWizardConfig(
          this.accessFieldOrder,
          this.accessDefaultValues,
          this.accessImportPolicy);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy