public class PutObjectOptions extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_MULTIPART_COUNT |
static long |
MAX_OBJECT_SIZE |
static long |
MAX_PART_SIZE |
static int |
MIN_MULTIPART_SIZE |
| Constructor and Description |
|---|
PutObjectOptions(long objectSize,
long partSize)
Creates new PutObjectOptions object.
|
| Modifier and Type | Method and Description |
|---|---|
String |
contentType()
Gets content type.
|
Map<String,String> |
headers() |
long |
objectSize() |
int |
partCount() |
long |
partSize() |
void |
setContentType(String contentType)
Sets content type.
|
void |
setHeaders(Map<String,String> headers) |
void |
setSse(ServerSideEncryption sse) |
ServerSideEncryption |
sse() |
public static final long MAX_OBJECT_SIZE
public static final int MIN_MULTIPART_SIZE
public static final long MAX_PART_SIZE
public static final int MAX_MULTIPART_COUNT
public PutObjectOptions(long objectSize,
long partSize)
throws IllegalArgumentException
A valid part size is between 5MiB to 5GiB (both limits inclusive).
IllegalArgumentExceptionpublic void setContentType(String contentType) throws IllegalArgumentException
IllegalArgumentException - upon null or empty content type.public void setSse(ServerSideEncryption sse)
public long objectSize()
public long partSize()
public int partCount()
public String contentType()
public ServerSideEncryption sse()