com.hubspot.singularity.s3uploader.config.SingularityS3UploaderContentHeaders Maven / Gradle / Ivy
package com.hubspot.singularity.s3uploader.config;
import org.hibernate.validator.constraints.NotEmpty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.Optional;
public class SingularityS3UploaderContentHeaders {
@NotEmpty
private final String filenameEndsWith;
private final Optional contentType;
private final Optional contentEncoding;
@JsonCreator
public SingularityS3UploaderContentHeaders(@JsonProperty("filenameEndsWith") String filenameEndsWith, @JsonProperty("contentType") Optional contentType, @JsonProperty("contentEncoding") Optional contentEncoding) {
this.filenameEndsWith = filenameEndsWith;
this.contentType = contentType;
this.contentEncoding = contentEncoding;
}
public String getFilenameEndsWith() {
return filenameEndsWith;
}
public Optional getContentType() {
return contentType;
}
public Optional getContentEncoding() {
return contentEncoding;
}
@Override
public String toString() {
return "SingularityContentTypeAndEncoding{" +
"contentType=" + contentType +
", contentEncoding=" + contentEncoding +
'}';
}
}