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

com.google.apphosting.utils.config.AutoValue_AppEngineWebXml_VpcAccessConnector Maven / Gradle / Ivy

There is a newer version: 2.0.31
Show newest version
package com.google.apphosting.utils.config;

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

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_AppEngineWebXml_VpcAccessConnector extends AppEngineWebXml.VpcAccessConnector {

  private final String name;

  private final Optional egressSetting;

  private AutoValue_AppEngineWebXml_VpcAccessConnector(
      String name,
      Optional egressSetting) {
    this.name = name;
    this.egressSetting = egressSetting;
  }

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

  @Override
  public Optional getEgressSetting() {
    return egressSetting;
  }

  @Override
  public String toString() {
    return "VpcAccessConnector{"
        + "name=" + name + ", "
        + "egressSetting=" + egressSetting
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof AppEngineWebXml.VpcAccessConnector) {
      AppEngineWebXml.VpcAccessConnector that = (AppEngineWebXml.VpcAccessConnector) o;
      return this.name.equals(that.getName())
          && this.egressSetting.equals(that.getEgressSetting());
    }
    return false;
  }

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

  static final class Builder extends AppEngineWebXml.VpcAccessConnector.Builder {
    private String name;
    private Optional egressSetting = Optional.empty();
    Builder() {
    }
    @Override
    public AppEngineWebXml.VpcAccessConnector.Builder setName(String name) {
      if (name == null) {
        throw new NullPointerException("Null name");
      }
      this.name = name;
      return this;
    }
    @Override
    public AppEngineWebXml.VpcAccessConnector.Builder setEgressSetting(String egressSetting) {
      this.egressSetting = Optional.of(egressSetting);
      return this;
    }
    @Override
    public AppEngineWebXml.VpcAccessConnector build() {
      if (this.name == null) {
        String missing = " name";
        throw new IllegalStateException("Missing required properties:" + missing);
      }
      return new AutoValue_AppEngineWebXml_VpcAccessConnector(
          this.name,
          this.egressSetting);
    }
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy