Class S3BucketUtils
- java.lang.Object
-
- software.amazon.awssdk.testutils.service.S3BucketUtils
-
public final class S3BucketUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
temporaryBucketName()
Creates a temporary bucket name using the class name of the calling class as a prefix.static String
temporaryBucketName(Class<?> clz)
Creates a temporary bucket name using the class name as a prefix.static String
temporaryBucketName(Object clz)
Creates a temporary bucket name using the class name of the object passed as a prefix.static String
temporaryBucketName(String prefix)
Creates a temporary bucket name using the prefix passed.
-
-
-
Method Detail
-
temporaryBucketName
public static String temporaryBucketName()
Creates a temporary bucket name using the class name of the calling class as a prefix.- Returns:
- an s3 bucket name
-
temporaryBucketName
public static String temporaryBucketName(Object clz)
Creates a temporary bucket name using the class name of the object passed as a prefix.- Parameters:
clz
- an object who's class will be used as the prefix- Returns:
- an s3 bucket name
-
temporaryBucketName
public static String temporaryBucketName(Class<?> clz)
Creates a temporary bucket name using the class name as a prefix.- Parameters:
clz
- class to use as the prefix- Returns:
- an s3 bucket name
-
-