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

com.google.cloud.hadoop.util.AutoValue_AccessBoundary Maven / Gradle / Ivy

The newest version!
package com.google.cloud.hadoop.util;

import javax.annotation.processing.Generated;

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

  private final String bucketName;

  private final String objectName;

  private final AccessBoundary.Action action;

  AutoValue_AccessBoundary(
      String bucketName,
      String objectName,
      AccessBoundary.Action action) {
    if (bucketName == null) {
      throw new NullPointerException("Null bucketName");
    }
    this.bucketName = bucketName;
    if (objectName == null) {
      throw new NullPointerException("Null objectName");
    }
    this.objectName = objectName;
    if (action == null) {
      throw new NullPointerException("Null action");
    }
    this.action = action;
  }

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

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

  @Override
  public AccessBoundary.Action action() {
    return action;
  }

  @Override
  public String toString() {
    return "AccessBoundary{"
        + "bucketName=" + bucketName + ", "
        + "objectName=" + objectName + ", "
        + "action=" + action
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof AccessBoundary) {
      AccessBoundary that = (AccessBoundary) o;
      return this.bucketName.equals(that.bucketName())
          && this.objectName.equals(that.objectName())
          && this.action.equals(that.action());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= bucketName.hashCode();
    h$ *= 1000003;
    h$ ^= objectName.hashCode();
    h$ *= 1000003;
    h$ ^= action.hashCode();
    return h$;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy