com.distelli.objectStore.ObjectMetadata Maven / Gradle / Ivy
// Generated by delombok at Thu Apr 18 14:11:16 PDT 2019
package com.distelli.objectStore;
public class ObjectMetadata {
private String bucket;
private String key;
private Long contentLength;
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
ObjectMetadata(final String bucket, final String key, final Long contentLength) {
this.bucket = bucket;
this.key = key;
this.contentLength = contentLength;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public static class ObjectMetadataBuilder {
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
private String bucket;
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
private String key;
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
private Long contentLength;
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
ObjectMetadataBuilder() {
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public ObjectMetadataBuilder bucket(final String bucket) {
this.bucket = bucket;
return this;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public ObjectMetadataBuilder key(final String key) {
this.key = key;
return this;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public ObjectMetadataBuilder contentLength(final Long contentLength) {
this.contentLength = contentLength;
return this;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public ObjectMetadata build() {
return new ObjectMetadata(bucket, key, contentLength);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "ObjectMetadata.ObjectMetadataBuilder(bucket=" + this.bucket + ", key=" + this.key + ", contentLength=" + this.contentLength + ")";
}
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public static ObjectMetadataBuilder builder() {
return new ObjectMetadataBuilder();
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public String getBucket() {
return this.bucket;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public String getKey() {
return this.key;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public Long getContentLength() {
return this.contentLength;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public void setBucket(final String bucket) {
this.bucket = bucket;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public void setKey(final String key) {
this.key = key;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public void setContentLength(final Long contentLength) {
this.contentLength = contentLength;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof ObjectMetadata)) return false;
final ObjectMetadata other = (ObjectMetadata) o;
if (!other.canEqual((java.lang.Object) this)) return false;
final java.lang.Object this$bucket = this.getBucket();
final java.lang.Object other$bucket = other.getBucket();
if (this$bucket == null ? other$bucket != null : !this$bucket.equals(other$bucket)) return false;
final java.lang.Object this$key = this.getKey();
final java.lang.Object other$key = other.getKey();
if (this$key == null ? other$key != null : !this$key.equals(other$key)) return false;
final java.lang.Object this$contentLength = this.getContentLength();
final java.lang.Object other$contentLength = other.getContentLength();
if (this$contentLength == null ? other$contentLength != null : !this$contentLength.equals(other$contentLength)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof ObjectMetadata;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public int hashCode() {
final int PRIME = 59;
int result = 1;
final java.lang.Object $bucket = this.getBucket();
result = result * PRIME + ($bucket == null ? 43 : $bucket.hashCode());
final java.lang.Object $key = this.getKey();
result = result * PRIME + ($key == null ? 43 : $key.hashCode());
final java.lang.Object $contentLength = this.getContentLength();
result = result * PRIME + ($contentLength == null ? 43 : $contentLength.hashCode());
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "ObjectMetadata(bucket=" + this.getBucket() + ", key=" + this.getKey() + ", contentLength=" + this.getContentLength() + ")";
}
}