All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.distelli.objectStore.ObjectStoreConfig Maven / Gradle / Ivy
// Generated by delombok at Thu Apr 18 14:11:16 PDT 2019
package com.distelli.objectStore;
import com.distelli.cred.CredProvider;
import java.net.URI;
import java.io.File;
public class ObjectStoreConfig {
public interface Factory {
ObjectStoreConfig create(File file);
}
private ObjectStoreType type;
private File diskStorageRoot;
private CredProvider credProvider;
private URI endpoint;
private String keyPrefix;
private Boolean forceV4Signature;
private Boolean serverSideEncryption;
private URI proxy;
private String bucket;
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
ObjectStoreConfig(final ObjectStoreType type, final File diskStorageRoot, final CredProvider credProvider, final URI endpoint, final String keyPrefix, final Boolean forceV4Signature, final Boolean serverSideEncryption, final URI proxy, final String bucket) {
this.type = type;
this.diskStorageRoot = diskStorageRoot;
this.credProvider = credProvider;
this.endpoint = endpoint;
this.keyPrefix = keyPrefix;
this.forceV4Signature = forceV4Signature;
this.serverSideEncryption = serverSideEncryption;
this.proxy = proxy;
this.bucket = bucket;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public static class ObjectStoreConfigBuilder {
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
private ObjectStoreType type;
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
private File diskStorageRoot;
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
private CredProvider credProvider;
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
private URI endpoint;
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
private String keyPrefix;
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
private Boolean forceV4Signature;
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
private Boolean serverSideEncryption;
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
private URI proxy;
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
private String bucket;
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
ObjectStoreConfigBuilder() {
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public ObjectStoreConfigBuilder type(final ObjectStoreType type) {
this.type = type;
return this;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public ObjectStoreConfigBuilder diskStorageRoot(final File diskStorageRoot) {
this.diskStorageRoot = diskStorageRoot;
return this;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public ObjectStoreConfigBuilder credProvider(final CredProvider credProvider) {
this.credProvider = credProvider;
return this;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public ObjectStoreConfigBuilder endpoint(final URI endpoint) {
this.endpoint = endpoint;
return this;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public ObjectStoreConfigBuilder keyPrefix(final String keyPrefix) {
this.keyPrefix = keyPrefix;
return this;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public ObjectStoreConfigBuilder forceV4Signature(final Boolean forceV4Signature) {
this.forceV4Signature = forceV4Signature;
return this;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public ObjectStoreConfigBuilder serverSideEncryption(final Boolean serverSideEncryption) {
this.serverSideEncryption = serverSideEncryption;
return this;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public ObjectStoreConfigBuilder proxy(final URI proxy) {
this.proxy = proxy;
return this;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public ObjectStoreConfigBuilder bucket(final String bucket) {
this.bucket = bucket;
return this;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public ObjectStoreConfig build() {
return new ObjectStoreConfig(type, diskStorageRoot, credProvider, endpoint, keyPrefix, forceV4Signature, serverSideEncryption, proxy, bucket);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "ObjectStoreConfig.ObjectStoreConfigBuilder(type=" + this.type + ", diskStorageRoot=" + this.diskStorageRoot + ", credProvider=" + this.credProvider + ", endpoint=" + this.endpoint + ", keyPrefix=" + this.keyPrefix + ", forceV4Signature=" + this.forceV4Signature + ", serverSideEncryption=" + this.serverSideEncryption + ", proxy=" + this.proxy + ", bucket=" + this.bucket + ")";
}
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public static ObjectStoreConfigBuilder builder() {
return new ObjectStoreConfigBuilder();
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public ObjectStoreType getType() {
return this.type;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public File getDiskStorageRoot() {
return this.diskStorageRoot;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public CredProvider getCredProvider() {
return this.credProvider;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public URI getEndpoint() {
return this.endpoint;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public String getKeyPrefix() {
return this.keyPrefix;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public Boolean getForceV4Signature() {
return this.forceV4Signature;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public Boolean getServerSideEncryption() {
return this.serverSideEncryption;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public URI getProxy() {
return this.proxy;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public String getBucket() {
return this.bucket;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public void setType(final ObjectStoreType type) {
this.type = type;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public void setDiskStorageRoot(final File diskStorageRoot) {
this.diskStorageRoot = diskStorageRoot;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public void setCredProvider(final CredProvider credProvider) {
this.credProvider = credProvider;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public void setEndpoint(final URI endpoint) {
this.endpoint = endpoint;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public void setKeyPrefix(final String keyPrefix) {
this.keyPrefix = keyPrefix;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public void setForceV4Signature(final Boolean forceV4Signature) {
this.forceV4Signature = forceV4Signature;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public void setServerSideEncryption(final Boolean serverSideEncryption) {
this.serverSideEncryption = serverSideEncryption;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public void setProxy(final URI proxy) {
this.proxy = proxy;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public void setBucket(final String bucket) {
this.bucket = bucket;
}
@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 ObjectStoreConfig)) return false;
final ObjectStoreConfig other = (ObjectStoreConfig) o;
if (!other.canEqual((java.lang.Object) this)) return false;
final java.lang.Object this$type = this.getType();
final java.lang.Object other$type = other.getType();
if (this$type == null ? other$type != null : !this$type.equals(other$type)) return false;
final java.lang.Object this$diskStorageRoot = this.getDiskStorageRoot();
final java.lang.Object other$diskStorageRoot = other.getDiskStorageRoot();
if (this$diskStorageRoot == null ? other$diskStorageRoot != null : !this$diskStorageRoot.equals(other$diskStorageRoot)) return false;
final java.lang.Object this$credProvider = this.getCredProvider();
final java.lang.Object other$credProvider = other.getCredProvider();
if (this$credProvider == null ? other$credProvider != null : !this$credProvider.equals(other$credProvider)) return false;
final java.lang.Object this$endpoint = this.getEndpoint();
final java.lang.Object other$endpoint = other.getEndpoint();
if (this$endpoint == null ? other$endpoint != null : !this$endpoint.equals(other$endpoint)) return false;
final java.lang.Object this$keyPrefix = this.getKeyPrefix();
final java.lang.Object other$keyPrefix = other.getKeyPrefix();
if (this$keyPrefix == null ? other$keyPrefix != null : !this$keyPrefix.equals(other$keyPrefix)) return false;
final java.lang.Object this$forceV4Signature = this.getForceV4Signature();
final java.lang.Object other$forceV4Signature = other.getForceV4Signature();
if (this$forceV4Signature == null ? other$forceV4Signature != null : !this$forceV4Signature.equals(other$forceV4Signature)) return false;
final java.lang.Object this$serverSideEncryption = this.getServerSideEncryption();
final java.lang.Object other$serverSideEncryption = other.getServerSideEncryption();
if (this$serverSideEncryption == null ? other$serverSideEncryption != null : !this$serverSideEncryption.equals(other$serverSideEncryption)) return false;
final java.lang.Object this$proxy = this.getProxy();
final java.lang.Object other$proxy = other.getProxy();
if (this$proxy == null ? other$proxy != null : !this$proxy.equals(other$proxy)) 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;
return true;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof ObjectStoreConfig;
}
@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 $type = this.getType();
result = result * PRIME + ($type == null ? 43 : $type.hashCode());
final java.lang.Object $diskStorageRoot = this.getDiskStorageRoot();
result = result * PRIME + ($diskStorageRoot == null ? 43 : $diskStorageRoot.hashCode());
final java.lang.Object $credProvider = this.getCredProvider();
result = result * PRIME + ($credProvider == null ? 43 : $credProvider.hashCode());
final java.lang.Object $endpoint = this.getEndpoint();
result = result * PRIME + ($endpoint == null ? 43 : $endpoint.hashCode());
final java.lang.Object $keyPrefix = this.getKeyPrefix();
result = result * PRIME + ($keyPrefix == null ? 43 : $keyPrefix.hashCode());
final java.lang.Object $forceV4Signature = this.getForceV4Signature();
result = result * PRIME + ($forceV4Signature == null ? 43 : $forceV4Signature.hashCode());
final java.lang.Object $serverSideEncryption = this.getServerSideEncryption();
result = result * PRIME + ($serverSideEncryption == null ? 43 : $serverSideEncryption.hashCode());
final java.lang.Object $proxy = this.getProxy();
result = result * PRIME + ($proxy == null ? 43 : $proxy.hashCode());
final java.lang.Object $bucket = this.getBucket();
result = result * PRIME + ($bucket == null ? 43 : $bucket.hashCode());
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "ObjectStoreConfig(type=" + this.getType() + ", diskStorageRoot=" + this.getDiskStorageRoot() + ", credProvider=" + this.getCredProvider() + ", endpoint=" + this.getEndpoint() + ", keyPrefix=" + this.getKeyPrefix() + ", forceV4Signature=" + this.getForceV4Signature() + ", serverSideEncryption=" + this.getServerSideEncryption() + ", proxy=" + this.getProxy() + ", bucket=" + this.getBucket() + ")";
}
}