com.amazonaws.services.s3.model.SetBucketVersioningConfigurationRequest Java Examples
The following examples show how to use
com.amazonaws.services.s3.model.SetBucketVersioningConfigurationRequest.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AmazonS3Mock.java From Scribengin with GNU Affero General Public License v3.0 | 5 votes |
@Override public void setBucketVersioningConfiguration( SetBucketVersioningConfigurationRequest setBucketVersioningConfigurationRequest) throws AmazonClientException, AmazonServiceException { // TODO Auto-generated method stub }
Example #2
Source File: DummyS3Client.java From ignite with Apache License 2.0 | 4 votes |
/** Unsupported Operation. */ @Override public void setBucketVersioningConfiguration( SetBucketVersioningConfigurationRequest setBucketVersioningConfigurationReq) throws SdkClientException { throw new UnsupportedOperationException("Operation not supported"); }
Example #3
Source File: CrossRegionReplication.java From aws-doc-sdk-examples with Apache License 2.0 | 3 votes |
private static void createBucket(AmazonS3 s3Client, Regions region, String bucketName) { CreateBucketRequest request = new CreateBucketRequest(bucketName, region.getName()); s3Client.createBucket(request); BucketVersioningConfiguration configuration = new BucketVersioningConfiguration().withStatus(BucketVersioningConfiguration.ENABLED); SetBucketVersioningConfigurationRequest enableVersioningRequest = new SetBucketVersioningConfigurationRequest(bucketName, configuration); s3Client.setBucketVersioningConfiguration(enableVersioningRequest); }