| Package | Description |
|---|---|
| com.baidubce.services.bos | |
| com.baidubce.services.bos.model |
| Modifier and Type | Method and Description |
|---|---|
PutObjectResponse |
BosClient.putObject(PutObjectRequest request)
Uploads a new object to the specified Bos bucket.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AppendObjectRequest
Uploads a new object to the specified Baidu Bos bucket.
|
| Modifier and Type | Method and Description |
|---|---|
PutObjectRequest |
PutObjectRequest.withBucketName(String bucketName)
Sets the name of the bucket where this request will upload a new
object to.
|
PutObjectRequest |
PutObjectRequest.withFile(File file)
Sets the file containing the data to be uploaded to Baidu Bos.
|
PutObjectRequest |
PutObjectRequest.withInputStream(InputStream inputStream)
Sets the input stream containing the data to be uploaded to Baidu Bos.
|
PutObjectRequest |
PutObjectRequest.withKey(String key)
Sets the key under which to store the new object.
|
PutObjectRequest |
PutObjectRequest.withObjectMetadata(ObjectMetadata objectMetadata)
Sets the optional metadata instructing Baidu Bos how to handle the
uploaded data (e.g.
|
PutObjectRequest |
PutObjectRequest.withRequestCredentials(BceCredentials credentials) |
PutObjectRequest |
PutObjectRequest.withStorageClass(String storageClass)
Sets the storageClass of the input file which is be uploaded to Baidu Bos.
|
Copyright © 2021. All rights reserved.