public void setLargePayloadSupportEnabled ( AmazonS3 s3 , String s3BucketName ) { if ( s3 == null || s3BucketName == null ) { String errorMessage = "S3 client and/or S3 bucket name cannot be null." ; LOG . error ( errorMessage ) ; throw new AmazonClientException ( errorMessage ) ; } if ( isLargePayloadSupportEnabled ( ) ) { LOG . warn ( "Large-payload support is already enabled. Overwriting AmazonS3Client and S3BucketName." ) ; } this . s3 = s3 ; this . s3BucketName = s3BucketName ; largePayloadSupport = true ; LOG . info ( "Large-payload support enabled." ) ; }
Enables support for large - payload messages .