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 |
|---|---|
String |
getIfMatch() |
String |
getIfModifiedSince() |
String |
getIfNoneMatch() |
String |
getIfUnmodifiedSince() |
void |
setIfMatch(String ifMatch) |
void |
setIfModifiedSince(String ifModifiedSince) |
void |
setIfNoneMatch(String ifNoneMatch) |
void |
setIfUnmodifiedSince(String ifUnmodifiedSince) |
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.public String getIfNoneMatch()
public void setIfNoneMatch(String ifNoneMatch)
public String getIfMatch()
public void setIfMatch(String ifMatch)
public String getIfUnmodifiedSince()
public void setIfUnmodifiedSince(String ifUnmodifiedSince)
public String getIfModifiedSince()
public void setIfModifiedSince(String ifModifiedSince)
Copyright © 2026. All rights reserved.