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

com.bekioui.maven.plugin.client.model.AutoValue_Properties Maven / Gradle / Ivy

There is a newer version: 1.0.1
Show newest version

package com.bekioui.maven.plugin.client.model;

import javax.annotation.Generated;

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

  private final String apiUrl;
  private final String apiArtifactId;
  private final String clientArtifactId;
  private final String clientPrefix;
  private final String resourcePackageName;

  private AutoValue_Properties(
      String apiUrl,
      String apiArtifactId,
      String clientArtifactId,
      String clientPrefix,
      String resourcePackageName) {
    if (apiUrl == null) {
      throw new NullPointerException("Null apiUrl");
    }
    this.apiUrl = apiUrl;
    if (apiArtifactId == null) {
      throw new NullPointerException("Null apiArtifactId");
    }
    this.apiArtifactId = apiArtifactId;
    if (clientArtifactId == null) {
      throw new NullPointerException("Null clientArtifactId");
    }
    this.clientArtifactId = clientArtifactId;
    if (clientPrefix == null) {
      throw new NullPointerException("Null clientPrefix");
    }
    this.clientPrefix = clientPrefix;
    if (resourcePackageName == null) {
      throw new NullPointerException("Null resourcePackageName");
    }
    this.resourcePackageName = resourcePackageName;
  }

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

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

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

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

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

  @Override
  public String toString() {
    return "Properties{"
        + "apiUrl=" + apiUrl + ", "
        + "apiArtifactId=" + apiArtifactId + ", "
        + "clientArtifactId=" + clientArtifactId + ", "
        + "clientPrefix=" + clientPrefix + ", "
        + "resourcePackageName=" + resourcePackageName
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof Properties) {
      Properties that = (Properties) o;
      return (this.apiUrl.equals(that.apiUrl()))
           && (this.apiArtifactId.equals(that.apiArtifactId()))
           && (this.clientArtifactId.equals(that.clientArtifactId()))
           && (this.clientPrefix.equals(that.clientPrefix()))
           && (this.resourcePackageName.equals(that.resourcePackageName()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= apiUrl.hashCode();
    h *= 1000003;
    h ^= apiArtifactId.hashCode();
    h *= 1000003;
    h ^= clientArtifactId.hashCode();
    h *= 1000003;
    h ^= clientPrefix.hashCode();
    h *= 1000003;
    h ^= resourcePackageName.hashCode();
    return h;
  }

  static final class Builder extends Properties.Builder {
    private String apiUrl;
    private String apiArtifactId;
    private String clientArtifactId;
    private String clientPrefix;
    private String resourcePackageName;
    Builder() {
    }
    Builder(Properties source) {
      this.apiUrl = source.apiUrl();
      this.apiArtifactId = source.apiArtifactId();
      this.clientArtifactId = source.clientArtifactId();
      this.clientPrefix = source.clientPrefix();
      this.resourcePackageName = source.resourcePackageName();
    }
    @Override
    public Properties.Builder apiUrl(String apiUrl) {
      this.apiUrl = apiUrl;
      return this;
    }
    @Override
    public Properties.Builder apiArtifactId(String apiArtifactId) {
      this.apiArtifactId = apiArtifactId;
      return this;
    }
    @Override
    public Properties.Builder clientArtifactId(String clientArtifactId) {
      this.clientArtifactId = clientArtifactId;
      return this;
    }
    @Override
    public Properties.Builder clientPrefix(String clientPrefix) {
      this.clientPrefix = clientPrefix;
      return this;
    }
    @Override
    public Properties.Builder resourcePackageName(String resourcePackageName) {
      this.resourcePackageName = resourcePackageName;
      return this;
    }
    @Override
    public Properties build() {
      String missing = "";
      if (apiUrl == null) {
        missing += " apiUrl";
      }
      if (apiArtifactId == null) {
        missing += " apiArtifactId";
      }
      if (clientArtifactId == null) {
        missing += " clientArtifactId";
      }
      if (clientPrefix == null) {
        missing += " clientPrefix";
      }
      if (resourcePackageName == null) {
        missing += " resourcePackageName";
      }
      if (!missing.isEmpty()) {
        throw new IllegalStateException("Missing required properties:" + missing);
      }
      return new AutoValue_Properties(
          this.apiUrl,
          this.apiArtifactId,
          this.clientArtifactId,
          this.clientPrefix,
          this.resourcePackageName);
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy