com.qwlabs.storage.minio.MinioConfig Maven / Gradle / Ivy
The newest version!
package com.qwlabs.storage.minio;
import com.qwlabs.lang.S2;
import com.qwlabs.storage.messages.StorageMessages;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
@Getter
@Builder
@AllArgsConstructor
public class MinioConfig {
private final String url;
private final String accessKey;
private final String secretKey;
public void validate() {
if (S2.isBlank(url)) {
throw StorageMessages.INSTANCE.lostConfig("url");
}
if (S2.isBlank(accessKey)) {
throw StorageMessages.INSTANCE.lostConfig("accessKey");
}
if (S2.isBlank(secretKey)) {
throw StorageMessages.INSTANCE.lostConfig("secretKey");
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy