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

项目:ibm-cos-sdk-java    文件:AmazonS3Client.java   
@Override
public void setBucketAcl(SetBucketAclRequest setBucketAclRequest)
        throws SdkClientException, AmazonServiceException {
    setBucketAclRequest = beforeClientExecution(setBucketAclRequest);

    String bucketName = setBucketAclRequest.getBucketName();
    rejectNull(bucketName, "The bucket name parameter must be specified when setting a bucket's ACL");

    AccessControlList acl = setBucketAclRequest.getAcl();
    CannedAccessControlList cannedAcl = setBucketAclRequest.getCannedAcl();

    if (acl == null && cannedAcl == null) {
        throw new IllegalArgumentException(
                "The ACL parameter must be specified when setting a bucket's ACL");
    }
    if (acl != null && cannedAcl != null) {
        throw new IllegalArgumentException(
                "Only one of the acl and cannedAcl parameter can be specified, not both.");
    }

    if (acl != null) {
        setAcl(bucketName, null, null, acl, false, setBucketAclRequest);
    } else {
        setAcl(bucketName, null, null, cannedAcl, false, setBucketAclRequest);
    }
}
项目:ibm-cos-sdk-java    文件:AmazonS3Client.java   
/**
 * Same as {@link #setBucketAcl(String, AccessControlList)}
 * but allows specifying a request metric collector.
 */
public void setBucketAcl(String bucketName, AccessControlList acl,
        RequestMetricCollector requestMetricCollector) {
    SetBucketAclRequest request = new SetBucketAclRequest(bucketName, acl)
        .withRequestMetricCollector(requestMetricCollector);
    setBucketAcl(request);
}
项目:ibm-cos-sdk-java    文件:AmazonS3Client.java   
/**
 * Same as {@link #setBucketAcl(String, CannedAccessControlList)}
 * but allows specifying a request metric collector.
 */
public void setBucketAcl(String bucketName, CannedAccessControlList cannedAcl,
        RequestMetricCollector requestMetricCollector) throws SdkClientException,
        AmazonServiceException {
    SetBucketAclRequest request = new SetBucketAclRequest(bucketName, cannedAcl)
        .withRequestMetricCollector(requestMetricCollector);
    setBucketAcl(request);
}
项目:elasticsearch_my    文件:AmazonS3Wrapper.java   
@Override
public void setBucketAcl(SetBucketAclRequest setBucketAclRequest) throws AmazonClientException, AmazonServiceException {
    delegate.setBucketAcl(setBucketAclRequest);
}
项目:ibm-cos-sdk-java    文件:AmazonS3Client.java   
@Override
public void setBucketAcl(String bucketName, AccessControlList acl)
        throws SdkClientException, AmazonServiceException {
    setBucketAcl(new SetBucketAclRequest(bucketName, acl));
}
项目:ibm-cos-sdk-java    文件:AmazonS3Client.java   
@Override
public void setBucketAcl(String bucketName, CannedAccessControlList cannedAcl)
        throws SdkClientException, AmazonServiceException {
    setBucketAcl(new SetBucketAclRequest(bucketName, cannedAcl));
}
项目:S3Decorators    文件:S3Decorator.java   
@Override
public void setBucketAcl(SetBucketAclRequest setBucketAclRequest) throws SdkClientException, AmazonServiceException {
  run(() -> getDelegate().setBucketAcl(setBucketAclRequest));
}
项目:presto    文件:MockAmazonS3.java   
@Override
public void setBucketAcl(SetBucketAclRequest setBucketAclRequest)
        throws AmazonClientException
{
}
项目:Scribengin    文件:AmazonS3Mock.java   
@Override
public void setBucketAcl(SetBucketAclRequest setBucketAclRequest) throws AmazonClientException,
    AmazonServiceException {
  // TODO Auto-generated method stub

}