Java 类com.amazonaws.services.s3.model.GetBucketTaggingConfigurationRequest 实例源码

项目:ibm-cos-sdk-java    文件:AmazonS3Client.java   
@Override
public BucketTaggingConfiguration getBucketTaggingConfiguration(GetBucketTaggingConfigurationRequest getBucketTaggingConfigurationRequest) {
    getBucketTaggingConfigurationRequest = beforeClientExecution(getBucketTaggingConfigurationRequest);
    rejectNull(getBucketTaggingConfigurationRequest, "The request object parameter getBucketTaggingConfigurationRequest must be specifed.");
    String bucketName = getBucketTaggingConfigurationRequest.getBucketName();
    rejectNull(bucketName, "The bucket name must be specified when retrieving the bucket tagging configuration.");

    Request<GetBucketTaggingConfigurationRequest> request = createRequest(bucketName, null, getBucketTaggingConfigurationRequest, HttpMethodName.GET);
    request.addParameter("tagging", null);

    try {
        return invoke(request, new Unmarshallers.BucketTaggingConfigurationUnmarshaller(), bucketName, null);
    } catch (AmazonServiceException ase) {
        switch (ase.getStatusCode()) {
        case 404:
            return null;
        default:
            throw ase;
        }
    }
}
项目:elasticsearch_my    文件:AmazonS3Wrapper.java   
@Override
public BucketTaggingConfiguration getBucketTaggingConfiguration(GetBucketTaggingConfigurationRequest getBucketTaggingConfigurationRequest) {
    return delegate.getBucketTaggingConfiguration(getBucketTaggingConfigurationRequest);
}
项目:ibm-cos-sdk-java    文件:AmazonS3Client.java   
@Override
public BucketTaggingConfiguration getBucketTaggingConfiguration(String bucketName) {
    return getBucketTaggingConfiguration(new GetBucketTaggingConfigurationRequest(bucketName));
}
项目:S3Decorators    文件:S3Decorator.java   
@Override
public BucketTaggingConfiguration getBucketTaggingConfiguration(GetBucketTaggingConfigurationRequest getBucketTaggingConfigurationRequest) {
  return call(() -> getDelegate().getBucketTaggingConfiguration(getBucketTaggingConfigurationRequest));
}