Class PutObjectRequest
- java.lang.Object
- 
- com.oracle.bmc.requests.BmcRequest<InputStream>
- 
- com.oracle.bmc.objectstorage.requests.PutObjectRequest
 
 
- 
- All Implemented Interfaces:
- HasContentLength
 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public class PutObjectRequest extends BmcRequest<InputStream> implements HasContentLengthExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.75.0/objectstorage/PutObjectExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use PutObjectRequest. 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classPutObjectRequest.Builder
 - 
Constructor SummaryConstructors Constructor Description PutObjectRequest()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PutObjectRequest.Builderbuilder()Return a new builder for this request object.booleanequals(Object o)Uses getInvocationCallback and getRetryConfiguration to determine if passed request is equal to ‘this’.InputStreamgetBody$()Alternative accessor for the body parameter.StringgetBucketName()The name of the bucket.StringgetCacheControl()The optional Cache-Control header that defines the caching behavior value to be returned in GetObject and HeadObject responses.StringgetContentDisposition()The optional Content-Disposition header that defines presentational information for the object to be returned in GetObject and HeadObject responses.StringgetContentEncoding()The optional Content-Encoding header that defines the content encodings that were applied to the object to upload.StringgetContentLanguage()The optional Content-Language header that defines the content language of the object to upload.LonggetContentLength()The content length of the body.StringgetContentMD5()The optional header that defines the base64-encoded MD5 hash of the body.StringgetContentType()The optional Content-Type header that defines the standard MIME type format of the object.StringgetExpect()A value of 100-continue requests preliminary verification of the request method, path, and headers before the request body is sent.StringgetIfMatch()The entity tag (ETag) to match with the ETag of an existing resource.StringgetIfNoneMatch()The entity tag (ETag) to avoid matching.StringgetNamespaceName()The Object Storage namespace used for the request.StringgetObjectName()The name of the object.ChecksumAlgorithmgetOpcChecksumAlgorithm()The optional checksum algorithm to use to compute and store the checksum of the body of the HTTP request (or the parts in case of multipart uploads), in addition to the default MD5 checksum.StringgetOpcClientRequestId()The client request ID for tracing.StringgetOpcContentCrc32c()Applicable only if CRC32C is specified in the opc-checksum-algorithm request header.StringgetOpcContentSha256()Applicable only if SHA256 is specified in the opc-checksum-algorithm request header.StringgetOpcContentSha384()Applicable only if SHA384 is specified in the opc-checksum-algorithm request header.Map<String,String>getOpcMeta()Optional user-defined metadata key and value.StringgetOpcSseCustomerAlgorithm()The optional header that specifies “AES256” as the encryption algorithm.StringgetOpcSseCustomerKey()The optional header that specifies the base64-encoded 256-bit encryption key to use to encrypt or decrypt the data.StringgetOpcSseCustomerKeySha256()The optional header that specifies the base64-encoded SHA256 hash of the encryption key.StringgetOpcSseKmsKeyId()The OCID of a master encryption key used to call the Key Management service to generate a data encryption key or to encrypt or decrypt a data encryption key.InputStreamgetPutObjectBody()The object to upload to the object store.StorageTiergetStorageTier()The storage tier that the object should be stored in.inthashCode()Uses getInvocationCallback and getRetryConfiguration to generate a hash.booleansupportsExpect100Continue()Returns true if this operation supports Expect: 100-Continue.PutObjectRequest.BuildertoBuilder()Return an instance ofPutObjectRequest.Builderthat allows you to modify request properties.StringtoString()- 
Methods inherited from class com.oracle.bmc.requests.BmcRequestgetInvocationCallback, getRetryConfiguration, setInvocationCallback, setRetryConfiguration
 
- 
 
- 
- 
- 
Method Detail- 
getNamespaceNamepublic String getNamespaceName() The Object Storage namespace used for the request.
 - 
getBucketNamepublic String getBucketName() The name of the bucket.Avoid entering confidential information. Example: my-new-bucket1 
 - 
getObjectNamepublic String getObjectName() The name of the object.Avoid entering confidential information. Example: test/object1.log 
 - 
getContentLengthpublic Long getContentLength() The content length of the body.- Specified by:
- getContentLengthin interface- HasContentLength
 
 - 
getPutObjectBodypublic InputStream getPutObjectBody() The object to upload to the object store.
 - 
getIfMatchpublic String getIfMatch() The entity tag (ETag) to match with the ETag of an existing resource.If the specified ETag matches the ETag of the existing resource, GET and HEAD requests will return the resource and PUT and POST requests will upload the resource. 
 - 
getIfNoneMatchpublic String getIfNoneMatch() The entity tag (ETag) to avoid matching.The only valid value is ‘*’, which indicates that the request should fail if the resource already exists. 
 - 
getOpcClientRequestIdpublic String getOpcClientRequestId() The client request ID for tracing.
 - 
getExpectpublic String getExpect() A value of 100-continue requests preliminary verification of the request method, path, and headers before the request body is sent.If no error results from such verification, the server will send a 100 (Continue) interim response to indicate readiness for the request body. The only allowed value for this parameter is “100-Continue” (case-insensitive). 
 - 
getContentMD5public String getContentMD5() The optional header that defines the base64-encoded MD5 hash of the body.If the optional 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)" 
 - 
getOpcChecksumAlgorithmpublic ChecksumAlgorithm getOpcChecksumAlgorithm() The optional checksum algorithm to use to compute and store the checksum of the body of the HTTP request (or the parts in case of multipart uploads), in addition to the default MD5 checksum.
 - 
getOpcContentCrc32cpublic String getOpcContentCrc32c() Applicable only if CRC32C is specified in the opc-checksum-algorithm request header.The optional header that defines the base64-encoded, 32-bit CRC32C (Castagnoli) checksum of the body. If the optional opc-content-crc32c header is present, Object Storage performs an integrity check on the body of the HTTP request by computing the CRC32C checksum for the body and comparing it to the CRC32C checksum supplied in the header. If the two checksums do not match, the object is rejected and an HTTP-400 Unmatched Content CRC32C error is returned with the message: "The computed CRC32C of the request body (ACTUAL_CRC32C) does not match the opc-content-crc32c header (HEADER_CRC32C)" 
 - 
getOpcContentSha256public String getOpcContentSha256() Applicable only if SHA256 is specified in the opc-checksum-algorithm request header.The optional header that defines the base64-encoded SHA256 hash of the body. If the optional opc-content-sha256 header is present, Object Storage performs an integrity check on the body of the HTTP request by computing the SHA256 hash for the body and comparing it to the SHA256 hash supplied in the header. If the two hashes do not match, the object is rejected and an HTTP-400 Unmatched Content SHA256 error is returned with the message: "The computed SHA256 of the request body (ACTUAL_SHA256) does not match the opc-content-sha256 header (HEADER_SHA256)" 
 - 
getOpcContentSha384public String getOpcContentSha384() Applicable only if SHA384 is specified in the opc-checksum-algorithm request header.The optional header that defines the base64-encoded SHA384 hash of the body. If the optional opc-content-sha384 header is present, Object Storage performs an integrity check on the body of the HTTP request by computing the SHA384 hash for the body and comparing it to the SHA384 hash supplied in the header. If the two hashes do not match, the object is rejected and an HTTP-400 Unmatched Content SHA384 error is returned with the message: "The computed SHA384 of the request body (ACTUAL_SHA384) does not match the opc-content-sha384 header (HEADER_SHA384)" 
 - 
getContentTypepublic String getContentType() The optional Content-Type header that defines the standard MIME type format of the object.Content type defaults to ‘application/octet-stream’ if not specified in the PutObject call. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify and perform special operations on text only objects. 
 - 
getContentLanguagepublic String getContentLanguage() The optional Content-Language header that defines the content language of the object to upload.Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify and differentiate objects based on a particular language. 
 - 
getContentEncodingpublic String getContentEncoding() The optional Content-Encoding header that defines the content encodings that were applied to the object to upload.Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to determine what decoding mechanisms need to be applied to obtain the media-type specified by the Content-Type header of the object. 
 - 
getContentDispositionpublic String getContentDisposition() The optional Content-Disposition header that defines presentational information for the object to be returned in GetObject and HeadObject responses.Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to let users download objects with custom filenames in a browser. 
 - 
getCacheControlpublic String getCacheControl() The optional Cache-Control header that defines the caching behavior value to be returned in GetObject and HeadObject responses.Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify objects that require caching restrictions. 
 - 
getOpcSseCustomerAlgorithmpublic String getOpcSseCustomerAlgorithm() The optional header that specifies “AES256” as the encryption algorithm.For more information, see Using Your Own Keys for Server-Side Encryption. 
 - 
getOpcSseCustomerKeypublic String getOpcSseCustomerKey() The optional header that specifies the base64-encoded 256-bit encryption key to use to encrypt or decrypt the data.For more information, see Using Your Own Keys for Server-Side Encryption. 
 - 
getOpcSseCustomerKeySha256public String getOpcSseCustomerKeySha256() The optional header that specifies the base64-encoded SHA256 hash of the encryption key.This value is used to check the integrity of the encryption key. For more information, see Using Your Own Keys for Server-Side Encryption. 
 - 
getOpcSseKmsKeyIdpublic String getOpcSseKmsKeyId() The OCID of a master encryption key used to call the Key Management service to generate a data encryption key or to encrypt or decrypt a data encryption key.
 - 
getStorageTierpublic StorageTier getStorageTier() The storage tier that the object should be stored in.If not specified, the object will be stored in the same storage tier as the bucket. 
 - 
getBody$public InputStream getBody$() Alternative accessor for the body parameter.- Overrides:
- getBody$in class- BmcRequest<InputStream>
- Returns:
- body parameter
 
 - 
supportsExpect100Continuepublic boolean supportsExpect100Continue() Description copied from class:BmcRequestReturns true if this operation supports Expect: 100-Continue.- Overrides:
- supportsExpect100Continuein class- BmcRequest<InputStream>
- Returns:
- true if this operation supports Expect: 100-Continue.
 
 - 
toBuilderpublic PutObjectRequest.Builder toBuilder() Return an instance ofPutObjectRequest.Builderthat allows you to modify request properties.- Returns:
- instance of PutObjectRequest.Builderthat allows you to modify request properties.
 
 - 
builderpublic static PutObjectRequest.Builder builder() Return a new builder for this request object.- Returns:
- builder for the request object
 
 - 
equalspublic boolean equals(Object o) Description copied from class:BmcRequestUses getInvocationCallback and getRetryConfiguration to determine if passed request is equal to ‘this’.- Overrides:
- equalsin class- BmcRequest<InputStream>
 
 - 
hashCodepublic int hashCode() Description copied from class:BmcRequestUses getInvocationCallback and getRetryConfiguration to generate a hash.- Overrides:
- hashCodein class- BmcRequest<InputStream>
 
 
- 
 
-