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

org.jclouds.azurecompute.arm.domain.AutoValue_ExtensionProperties Maven / Gradle / Ivy

The newest version!

package org.jclouds.azurecompute.arm.domain;

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

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

  private final String publisher;
  private final String type;
  private final String typeHandlerVersion;
  private final Boolean autoUpgradeMinorVersion;
  private final ExtensionProfileSettings settings;
  private final Map protectedSettings;

  AutoValue_ExtensionProperties(
      String publisher,
      String type,
      String typeHandlerVersion,
      Boolean autoUpgradeMinorVersion,
      ExtensionProfileSettings settings,
      Map protectedSettings) {
    if (publisher == null) {
      throw new NullPointerException("Null publisher");
    }
    this.publisher = publisher;
    if (type == null) {
      throw new NullPointerException("Null type");
    }
    this.type = type;
    if (typeHandlerVersion == null) {
      throw new NullPointerException("Null typeHandlerVersion");
    }
    this.typeHandlerVersion = typeHandlerVersion;
    if (autoUpgradeMinorVersion == null) {
      throw new NullPointerException("Null autoUpgradeMinorVersion");
    }
    this.autoUpgradeMinorVersion = autoUpgradeMinorVersion;
    if (settings == null) {
      throw new NullPointerException("Null settings");
    }
    this.settings = settings;
    if (protectedSettings == null) {
      throw new NullPointerException("Null protectedSettings");
    }
    this.protectedSettings = protectedSettings;
  }

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

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

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

  @Override
  public Boolean autoUpgradeMinorVersion() {
    return autoUpgradeMinorVersion;
  }

  @Override
  public ExtensionProfileSettings settings() {
    return settings;
  }

  @Override
  public Map protectedSettings() {
    return protectedSettings;
  }

  @Override
  public String toString() {
    return "ExtensionProperties{"
        + "publisher=" + publisher + ", "
        + "type=" + type + ", "
        + "typeHandlerVersion=" + typeHandlerVersion + ", "
        + "autoUpgradeMinorVersion=" + autoUpgradeMinorVersion + ", "
        + "settings=" + settings + ", "
        + "protectedSettings=" + protectedSettings
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ExtensionProperties) {
      ExtensionProperties that = (ExtensionProperties) o;
      return (this.publisher.equals(that.publisher()))
           && (this.type.equals(that.type()))
           && (this.typeHandlerVersion.equals(that.typeHandlerVersion()))
           && (this.autoUpgradeMinorVersion.equals(that.autoUpgradeMinorVersion()))
           && (this.settings.equals(that.settings()))
           && (this.protectedSettings.equals(that.protectedSettings()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= this.publisher.hashCode();
    h *= 1000003;
    h ^= this.type.hashCode();
    h *= 1000003;
    h ^= this.typeHandlerVersion.hashCode();
    h *= 1000003;
    h ^= this.autoUpgradeMinorVersion.hashCode();
    h *= 1000003;
    h ^= this.settings.hashCode();
    h *= 1000003;
    h ^= this.protectedSettings.hashCode();
    return h;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy