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

org.jclouds.azurecompute.arm.domain.loadbalancer.AutoValue_LoadBalancingRule Maven / Gradle / Ivy

The newest version!

package org.jclouds.azurecompute.arm.domain.loadbalancer;

import javax.annotation.Generated;
import org.jclouds.javax.annotation.Nullable;

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

  private final String name;
  private final String id;
  private final LoadBalancingRuleProperties properties;
  private final String etag;

  AutoValue_LoadBalancingRule(
      @Nullable String name,
      @Nullable String id,
      @Nullable LoadBalancingRuleProperties properties,
      @Nullable String etag) {
    this.name = name;
    this.id = id;
    this.properties = properties;
    this.etag = etag;
  }

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

  @Nullable
  @Override
  public String id() {
    return id;
  }

  @Nullable
  @Override
  public LoadBalancingRuleProperties properties() {
    return properties;
  }

  @Nullable
  @Override
  public String etag() {
    return etag;
  }

  @Override
  public String toString() {
    return "LoadBalancingRule{"
        + "name=" + name + ", "
        + "id=" + id + ", "
        + "properties=" + properties + ", "
        + "etag=" + etag
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof LoadBalancingRule) {
      LoadBalancingRule that = (LoadBalancingRule) o;
      return ((this.name == null) ? (that.name() == null) : this.name.equals(that.name()))
           && ((this.id == null) ? (that.id() == null) : this.id.equals(that.id()))
           && ((this.properties == null) ? (that.properties() == null) : this.properties.equals(that.properties()))
           && ((this.etag == null) ? (that.etag() == null) : this.etag.equals(that.etag()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= (name == null) ? 0 : this.name.hashCode();
    h *= 1000003;
    h ^= (id == null) ? 0 : this.id.hashCode();
    h *= 1000003;
    h ^= (properties == null) ? 0 : this.properties.hashCode();
    h *= 1000003;
    h ^= (etag == null) ? 0 : this.etag.hashCode();
    return h;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy