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

org.jclouds.b2.domain.AutoValue_Bucket Maven / Gradle / Ivy

The newest version!

package org.jclouds.b2.domain;

import javax.annotation.Generated;

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

  private final String bucketId;
  private final String accountId;
  private final String bucketName;
  private final BucketType bucketType;

  AutoValue_Bucket(
      String bucketId,
      String accountId,
      String bucketName,
      BucketType bucketType) {
    if (bucketId == null) {
      throw new NullPointerException("Null bucketId");
    }
    this.bucketId = bucketId;
    if (accountId == null) {
      throw new NullPointerException("Null accountId");
    }
    this.accountId = accountId;
    if (bucketName == null) {
      throw new NullPointerException("Null bucketName");
    }
    this.bucketName = bucketName;
    if (bucketType == null) {
      throw new NullPointerException("Null bucketType");
    }
    this.bucketType = bucketType;
  }

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

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

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

  @Override
  public BucketType bucketType() {
    return bucketType;
  }

  @Override
  public String toString() {
    return "Bucket{"
        + "bucketId=" + bucketId + ", "
        + "accountId=" + accountId + ", "
        + "bucketName=" + bucketName + ", "
        + "bucketType=" + bucketType
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof Bucket) {
      Bucket that = (Bucket) o;
      return (this.bucketId.equals(that.bucketId()))
           && (this.accountId.equals(that.accountId()))
           && (this.bucketName.equals(that.bucketName()))
           && (this.bucketType.equals(that.bucketType()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= this.bucketId.hashCode();
    h *= 1000003;
    h ^= this.accountId.hashCode();
    h *= 1000003;
    h ^= this.bucketName.hashCode();
    h *= 1000003;
    h ^= this.bucketType.hashCode();
    return h;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy