public static final class S3MockRule.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
S3MockRule |
build() |
S3MockRule.Builder |
createBucket(java.lang.String bucketName)
Create a bucket on the S3 service for use during testing.
|
S3MockRule.Builder |
putObject(java.lang.String bucketName,
java.lang.String key,
java.io.File file)
Put a file as an object in the S3 service for use during testing.
|
S3MockRule.Builder |
putObject(java.lang.String bucketName,
java.lang.String key,
java.io.InputStream stream)
Put an input stream as an object in the S3 service for use during testing.
|
S3MockRule.Builder |
putObject(java.lang.String bucketName,
java.lang.String key,
java.lang.String content)
Put a string as an object in the S3 service for use during testing.
|
public S3MockRule.Builder createBucket(java.lang.String bucketName)
bucketName
- the name of the bucketpublic S3MockRule.Builder putObject(java.lang.String bucketName, java.lang.String key, java.io.File file)
bucketName
- the name of the bucketkey
- the key to store the file infile
- the content to store as filepublic S3MockRule.Builder putObject(java.lang.String bucketName, java.lang.String key, java.lang.String content)
bucketName
- the name of the bucketkey
- the key to store the file incontent
- the content to store as stringpublic S3MockRule.Builder putObject(java.lang.String bucketName, java.lang.String key, java.io.InputStream stream)
bucketName
- the name of the bucketkey
- the key to store the file instream
- the content to store as streampublic S3MockRule build()