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

项目:ibm-cos-sdk-java    文件:AmazonS3Client.java   
@Override
public BucketVersioningConfiguration getBucketVersioningConfiguration(GetBucketVersioningConfigurationRequest getBucketVersioningConfigurationRequest)
        throws SdkClientException, AmazonServiceException {
    getBucketVersioningConfigurationRequest = beforeClientExecution(getBucketVersioningConfigurationRequest);
    rejectNull(getBucketVersioningConfigurationRequest, "The request object parameter getBucketVersioningConfigurationRequest must be specified.");
    String bucketName = getBucketVersioningConfigurationRequest.getBucketName();
    rejectNull(bucketName,
            "The bucket name parameter must be specified when querying versioning configuration");

    Request<GetBucketVersioningConfigurationRequest> request = createRequest(bucketName, null, getBucketVersioningConfigurationRequest, HttpMethodName.GET);
    request.addParameter("versioning", null);

    return invoke(request, new Unmarshallers.BucketVersioningConfigurationUnmarshaller(), bucketName, null);
}
项目:elasticsearch_my    文件:AmazonS3Wrapper.java   
@Override
public BucketVersioningConfiguration getBucketVersioningConfiguration(GetBucketVersioningConfigurationRequest getBucketVersioningConfigurationRequest) throws AmazonClientException, AmazonServiceException {
    return delegate.getBucketVersioningConfiguration(getBucketVersioningConfigurationRequest);
}
项目:ibm-cos-sdk-java    文件:AmazonS3Client.java   
@Override
public BucketVersioningConfiguration getBucketVersioningConfiguration(String bucketName)
        throws SdkClientException, AmazonServiceException {
    return getBucketVersioningConfiguration(new GetBucketVersioningConfigurationRequest(bucketName));
}
项目:S3Decorators    文件:S3Decorator.java   
@Override
public BucketVersioningConfiguration getBucketVersioningConfiguration(GetBucketVersioningConfigurationRequest getBucketVersioningConfigurationRequest) throws SdkClientException, AmazonServiceException {
  return call(() -> getDelegate().getBucketVersioningConfiguration(getBucketVersioningConfigurationRequest));
}