下面列出了怎么用com.amazonaws.services.s3.model.SetBucketLoggingConfigurationRequest的API类实例代码及写法,或者点击链接到github查看源代码。
@Test
public void testUnknownParameter() throws Exception {
try {
client.setBucketLoggingConfiguration(
new SetBucketLoggingConfigurationRequest(
containerName, new BucketLoggingConfiguration()));
Fail.failBecauseExceptionWasNotThrown(AmazonS3Exception.class);
} catch (AmazonS3Exception e) {
assertThat(e.getErrorCode()).isEqualTo("NotImplemented");
}
}
/** Unsupported Operation. */
@Override public void setBucketLoggingConfiguration(
SetBucketLoggingConfigurationRequest setBucketLoggingConfigurationReq) throws SdkClientException {
throw new UnsupportedOperationException("Operation not supported");
}
@Override
public void setBucketLoggingConfiguration(SetBucketLoggingConfigurationRequest setBucketLoggingConfigurationRequest)
throws AmazonClientException, AmazonServiceException {
// TODO Auto-generated method stub
}