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

org.jclouds.googlecloudstorage.domain.templates.AutoValue_ObjectAccessControlsTemplate Maven / Gradle / Ivy

The newest version!

package org.jclouds.googlecloudstorage.domain.templates;

import javax.annotation.Generated;
import org.jclouds.googlecloudstorage.domain.DomainResourceReferences;

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

  private final String entity;
  private final DomainResourceReferences.ObjectRole role;

  AutoValue_ObjectAccessControlsTemplate(
      String entity,
      DomainResourceReferences.ObjectRole role) {
    if (entity == null) {
      throw new NullPointerException("Null entity");
    }
    this.entity = entity;
    if (role == null) {
      throw new NullPointerException("Null role");
    }
    this.role = role;
  }

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

  @Override
  public DomainResourceReferences.ObjectRole role() {
    return role;
  }

  @Override
  public String toString() {
    return "ObjectAccessControlsTemplate{"
        + "entity=" + entity + ", "
        + "role=" + role
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ObjectAccessControlsTemplate) {
      ObjectAccessControlsTemplate that = (ObjectAccessControlsTemplate) o;
      return (this.entity.equals(that.entity()))
           && (this.role.equals(that.role()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= this.entity.hashCode();
    h *= 1000003;
    h ^= this.role.hashCode();
    return h;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy