com.distelli.objectStore.ObjectPartKey Maven / Gradle / Ivy
// Generated by delombok at Fri Sep 21 11:00:51 PDT 2018
package com.distelli.objectStore;
public class ObjectPartKey {
private String bucket;
private String key;
private String uploadId;
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
ObjectPartKey(final String bucket, final String key, final String uploadId) {
this.bucket = bucket;
this.key = key;
this.uploadId = uploadId;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public static class ObjectPartKeyBuilder {
@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 String uploadId;
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
ObjectPartKeyBuilder() {
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public ObjectPartKeyBuilder bucket(final String bucket) {
this.bucket = bucket;
return this;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public ObjectPartKeyBuilder key(final String key) {
this.key = key;
return this;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public ObjectPartKeyBuilder uploadId(final String uploadId) {
this.uploadId = uploadId;
return this;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public ObjectPartKey build() {
return new ObjectPartKey(bucket, key, uploadId);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "ObjectPartKey.ObjectPartKeyBuilder(bucket=" + this.bucket + ", key=" + this.key + ", uploadId=" + this.uploadId + ")";
}
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public static ObjectPartKeyBuilder builder() {
return new ObjectPartKeyBuilder();
}
@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 String getUploadId() {
return this.uploadId;
}
@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 setUploadId(final String uploadId) {
this.uploadId = uploadId;
}
@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 ObjectPartKey)) return false;
final ObjectPartKey other = (ObjectPartKey) 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$uploadId = this.getUploadId();
final java.lang.Object other$uploadId = other.getUploadId();
if (this$uploadId == null ? other$uploadId != null : !this$uploadId.equals(other$uploadId)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof ObjectPartKey;
}
@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 $uploadId = this.getUploadId();
result = result * PRIME + ($uploadId == null ? 43 : $uploadId.hashCode());
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "ObjectPartKey(bucket=" + this.getBucket() + ", key=" + this.getKey() + ", uploadId=" + this.getUploadId() + ")";
}
}