类 GetObjectMetadataRequest
- java.lang.Object
-
- com.baidubce.model.AbstractBceRequest
-
- com.baidubce.services.bos.model.GenericBucketRequest
-
- com.baidubce.services.bos.model.GenericObjectRequest
-
- com.baidubce.services.bos.model.GetObjectMetadataRequest
-
public class GetObjectMetadataRequest extends GenericObjectRequest
Provides options for obtaining the metadata for the specified Baidu Bos object without actually fetching the object contents. This is useful if obtaining only object metadata, and avoids wasting bandwidth from retrieving the object data.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.
-
-
字段概要
-
从类继承的字段 com.baidubce.services.bos.model.GenericObjectRequest
trafficLimitBitPS
-
-
构造器概要
构造器 构造器 说明 GetObjectMetadataRequest(String bucketName, String key)Constructs a new GetObjectMetadataRequest used to retrieve a specified object's metadata.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 GetObjectMetadataRequestwithBucketName(String bucketName)Sets the name of the bucket containing the object whose metadata is being retrieved.GetObjectMetadataRequestwithKey(String key)Sets the key of the object whose metadata is being retrieved.GetObjectMetadataRequestwithRequestCredentials(BceCredentials credentials)-
从类继承的方法 com.baidubce.services.bos.model.GenericObjectRequest
getKey, setKey
-
从类继承的方法 com.baidubce.services.bos.model.GenericBucketRequest
getBucketName, setBucketName
-
从类继承的方法 com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
-
-
-
-
构造器详细资料
-
GetObjectMetadataRequest
public GetObjectMetadataRequest(String bucketName, String key)
Constructs a new GetObjectMetadataRequest used to retrieve a specified object's metadata.- 参数:
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.
-
-
方法详细资料
-
withRequestCredentials
public GetObjectMetadataRequest withRequestCredentials(BceCredentials credentials)
- 指定者:
withRequestCredentials在类中AbstractBceRequest
-
withBucketName
public GetObjectMetadataRequest withBucketName(String bucketName)
Sets the name of the bucket containing the object whose metadata is being retrieved. Returns this GetObjectMetadataRequest, enabling additional method calls to be chained together.- 指定者:
withBucketName在类中GenericBucketRequest- 参数:
bucketName- The name of the bucket containing the object's whose metadata is being retrieved.- 返回:
- This GetObjectMetadataRequest, enabling additional method calls to be chained together.
-
withKey
public GetObjectMetadataRequest withKey(String key)
Sets the key of the object whose metadata is being retrieved. Returns this GetObjectMetadataRequest, enabling additional method calls to be chained together.- 指定者:
withKey在类中GenericObjectRequest- 参数:
key- The key of the object whose metadata is being retrieved.- 返回:
- This GetObjectMetadataRequest, enabling additional method calls to be chained together.
-
-