public class GetObjectMetadataRequest extends GenericObjectRequest
The object metadata contains information such as content type, content disposition, etc., as well as custom user metadata that can be associated with an object in Baidu Bos.
trafficLimitBitPS| Constructor and Description |
|---|
GetObjectMetadataRequest(String bucketName,
String key)
Constructs a new GetObjectMetadataRequest used to retrieve a specified object's metadata.
|
| Modifier and Type | Method and Description |
|---|---|
GetObjectMetadataRequest |
withBucketName(String bucketName)
Sets the name of the bucket containing the object whose metadata is being retrieved.
|
GetObjectMetadataRequest |
withKey(String key)
Sets the key of the object whose metadata is being retrieved.
|
GetObjectMetadataRequest |
withRequestCredentials(BceCredentials credentials) |
getKey, setKeygetBucketName, setBucketNamegetRequestCredentials, setRequestCredentialspublic GetObjectMetadataRequest(String bucketName, String key)
bucketName - The name of the bucket containing the object whose metadata is being retrieved.key - The key of the object whose metadata is being retrieved.public GetObjectMetadataRequest withRequestCredentials(BceCredentials credentials)
withRequestCredentials in class AbstractBceRequestpublic GetObjectMetadataRequest withBucketName(String bucketName)
withBucketName in class GenericBucketRequestbucketName - The name of the bucket containing the object's whose metadata is being retrieved.public GetObjectMetadataRequest withKey(String key)
withKey in class GenericObjectRequestkey - The key of the object whose metadata is being retrieved.Copyright © 2023. All rights reserved.