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

org.apache.jclouds.profitbricks.rest.domain.AutoValue_Metadata Maven / Gradle / Ivy

The newest version!

package org.apache.jclouds.profitbricks.rest.domain;

import java.util.Date;
import javax.annotation.Generated;

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

  private final Date createdDate;
  private final String createdBy;
  private final String etag;
  private final Date lastModifiedDate;
  private final String lastModifiedBy;
  private final State state;

  AutoValue_Metadata(
      Date createdDate,
      String createdBy,
      String etag,
      Date lastModifiedDate,
      String lastModifiedBy,
      State state) {
    if (createdDate == null) {
      throw new NullPointerException("Null createdDate");
    }
    this.createdDate = createdDate;
    if (createdBy == null) {
      throw new NullPointerException("Null createdBy");
    }
    this.createdBy = createdBy;
    if (etag == null) {
      throw new NullPointerException("Null etag");
    }
    this.etag = etag;
    if (lastModifiedDate == null) {
      throw new NullPointerException("Null lastModifiedDate");
    }
    this.lastModifiedDate = lastModifiedDate;
    if (lastModifiedBy == null) {
      throw new NullPointerException("Null lastModifiedBy");
    }
    this.lastModifiedBy = lastModifiedBy;
    if (state == null) {
      throw new NullPointerException("Null state");
    }
    this.state = state;
  }

  @Override
  public Date createdDate() {
    return createdDate;
  }

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

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

  @Override
  public Date lastModifiedDate() {
    return lastModifiedDate;
  }

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

  @Override
  public State state() {
    return state;
  }

  @Override
  public String toString() {
    return "Metadata{"
        + "createdDate=" + createdDate + ", "
        + "createdBy=" + createdBy + ", "
        + "etag=" + etag + ", "
        + "lastModifiedDate=" + lastModifiedDate + ", "
        + "lastModifiedBy=" + lastModifiedBy + ", "
        + "state=" + state
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof Metadata) {
      Metadata that = (Metadata) o;
      return (this.createdDate.equals(that.createdDate()))
           && (this.createdBy.equals(that.createdBy()))
           && (this.etag.equals(that.etag()))
           && (this.lastModifiedDate.equals(that.lastModifiedDate()))
           && (this.lastModifiedBy.equals(that.lastModifiedBy()))
           && (this.state.equals(that.state()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= this.createdDate.hashCode();
    h *= 1000003;
    h ^= this.createdBy.hashCode();
    h *= 1000003;
    h ^= this.etag.hashCode();
    h *= 1000003;
    h ^= this.lastModifiedDate.hashCode();
    h *= 1000003;
    h ^= this.lastModifiedBy.hashCode();
    h *= 1000003;
    h ^= this.state.hashCode();
    return h;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy