@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public class PutObjectRequest extends BmcRequest
Modifier and Type | Class and Description |
---|---|
static class |
PutObjectRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static PutObjectRequest.Builder |
builder() |
String |
getBucketName()
The name of the bucket.
|
String |
getCacheControl()
The cache-control header value to be returned in GetObjectReponse.
|
String |
getContentDisposition()
The Content-Disposition header value to be returned in GetObjectReponse.
|
String |
getContentEncoding()
The content encoding of the object.
|
String |
getContentLanguage()
The content language of the object.
|
Long |
getContentLength()
The content length of the body.
|
String |
getContentMD5()
The base-64 encoded MD5 hash of the body.
|
String |
getContentType()
The content type of the object.
|
String |
getExpect()
100-continue
|
String |
getIfMatch()
The entity tag (ETag) to match.
|
String |
getIfNoneMatch()
The entity tag (ETag) to avoid matching.
|
String |
getNamespaceName()
The Object Storage namespace used for the request.
|
String |
getObjectName()
The name of the object.
|
String |
getOpcClientRequestId()
The client request ID for tracing.
|
Map<String,String> |
getOpcMeta()
Optional user-defined metadata key and value.
|
InputStream |
getPutObjectBody()
The object to upload to the object store.
|
getInvocationCallback, getRetryConfiguration, setInvocationCallback, setRetryConfiguration
public static PutObjectRequest.Builder builder()
public String getNamespaceName()
The Object Storage namespace used for the request.
public String getBucketName()
The name of the bucket. Avoid entering confidential information. Example: my-new-bucket1
public String getObjectName()
The name of the object. Avoid entering confidential information. Example: test/object1.log
public Long getContentLength()
The content length of the body.
public InputStream getPutObjectBody()
The object to upload to the object store.
public String getIfMatch()
The entity tag (ETag) to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. For uploading a part, this is the entity tag of the target part.
public String getIfNoneMatch()
The entity tag (ETag) to avoid matching. The only valid value is ’*’, which indicates that the request should fail if the object already exists. For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a part, this is the entity tag of the target part.
public String getOpcClientRequestId()
The client request ID for tracing.
public String getExpect()
100-continue
public String getContentMD5()
The base-64 encoded MD5 hash of the body. If the Content-MD5 header is present, Object Storage performs an integrity check on the body of the HTTP request by computing the MD5 hash for the body and comparing it to the MD5 hash supplied in the header. If the two hashes do not match, the object is rejected and an HTTP-400 Unmatched Content MD5 error is returned with the message:
"The computed MD5 of the request body (ACTUAL_MD5) does not match the Content-MD5 header (HEADER_MD5)"
public String getContentType()
The content type of the object. Defaults to ‘application/octet-stream’ if not overridden during the PutObject call.
public String getContentLanguage()
The content language of the object.
public String getContentEncoding()
The content encoding of the object.
public String getContentDisposition()
The Content-Disposition header value to be returned in GetObjectReponse.
public String getCacheControl()
The cache-control header value to be returned in GetObjectReponse.
Copyright © 2016–2020. All rights reserved.