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

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

The newest version!

package org.jclouds.azurecompute.arm.domain;

import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
 final class AutoValue_Resource_Identity extends Resource.Identity {

  private final String principalId;
  private final String tenantId;
  private final String type;

  AutoValue_Resource_Identity(
      String principalId,
      String tenantId,
      String type) {
    if (principalId == null) {
      throw new NullPointerException("Null principalId");
    }
    this.principalId = principalId;
    if (tenantId == null) {
      throw new NullPointerException("Null tenantId");
    }
    this.tenantId = tenantId;
    if (type == null) {
      throw new NullPointerException("Null type");
    }
    this.type = type;
  }

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

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

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

  @Override
  public String toString() {
    return "Identity{"
        + "principalId=" + principalId + ", "
        + "tenantId=" + tenantId + ", "
        + "type=" + type
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof Resource.Identity) {
      Resource.Identity that = (Resource.Identity) o;
      return (this.principalId.equals(that.principalId()))
           && (this.tenantId.equals(that.tenantId()))
           && (this.type.equals(that.type()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= this.principalId.hashCode();
    h *= 1000003;
    h ^= this.tenantId.hashCode();
    h *= 1000003;
    h ^= this.type.hashCode();
    return h;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy