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

org.graylog.aws.config.AutoValue_AWSPluginConfigurationUpdate Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
package org.graylog.aws.config;

import java.util.Optional;
import javax.annotation.processing.Generated;

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

  private final boolean lookupsEnabled;

  private final String lookupRegions;

  private final String accessKey;

  private final Optional secretKey;

  private final boolean proxyEnabled;

  AutoValue_AWSPluginConfigurationUpdate(
      boolean lookupsEnabled,
      String lookupRegions,
      String accessKey,
      Optional secretKey,
      boolean proxyEnabled) {
    this.lookupsEnabled = lookupsEnabled;
    if (lookupRegions == null) {
      throw new NullPointerException("Null lookupRegions");
    }
    this.lookupRegions = lookupRegions;
    if (accessKey == null) {
      throw new NullPointerException("Null accessKey");
    }
    this.accessKey = accessKey;
    if (secretKey == null) {
      throw new NullPointerException("Null secretKey");
    }
    this.secretKey = secretKey;
    this.proxyEnabled = proxyEnabled;
  }

  @Override
  boolean lookupsEnabled() {
    return lookupsEnabled;
  }

  @Override
  String lookupRegions() {
    return lookupRegions;
  }

  @Override
  String accessKey() {
    return accessKey;
  }

  @Override
  Optional secretKey() {
    return secretKey;
  }

  @Override
  boolean proxyEnabled() {
    return proxyEnabled;
  }

  @Override
  public String toString() {
    return "AWSPluginConfigurationUpdate{"
        + "lookupsEnabled=" + lookupsEnabled + ", "
        + "lookupRegions=" + lookupRegions + ", "
        + "accessKey=" + accessKey + ", "
        + "secretKey=" + secretKey + ", "
        + "proxyEnabled=" + proxyEnabled
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof AWSPluginConfigurationUpdate) {
      AWSPluginConfigurationUpdate that = (AWSPluginConfigurationUpdate) o;
      return this.lookupsEnabled == that.lookupsEnabled()
          && this.lookupRegions.equals(that.lookupRegions())
          && this.accessKey.equals(that.accessKey())
          && this.secretKey.equals(that.secretKey())
          && this.proxyEnabled == that.proxyEnabled();
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= lookupsEnabled ? 1231 : 1237;
    h$ *= 1000003;
    h$ ^= lookupRegions.hashCode();
    h$ *= 1000003;
    h$ ^= accessKey.hashCode();
    h$ *= 1000003;
    h$ ^= secretKey.hashCode();
    h$ *= 1000003;
    h$ ^= proxyEnabled ? 1231 : 1237;
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy