public class BucketUtils extends Object
| Modifier and Type | Method and Description | 
|---|---|
| static boolean | isValidDnsBucketName(String bucketName,
                    boolean throwOnError)Validates that the specified bucket name is valid for Amazon S3 V2 naming
 (i.e. | 
| static boolean | isVirtualAddressingCompatibleBucketName(String bucketName,
                                       boolean throwOnError)Validates if the given bucket name follows naming guidelines that are acceptable for using
 virtual host style addressing. | 
public static boolean isValidDnsBucketName(String bucketName, boolean throwOnError)
S3 bucket naming guidelines are specified in http://docs.amazonwebservices.com/AmazonS3/latest/dev/index.html? BucketRestrictions.html
bucketName - The bucket name to validate.IllegalArgumentException - If the specified bucket name doesn't follow Amazon S3's
 guidelines.public static boolean isVirtualAddressingCompatibleBucketName(String bucketName, boolean throwOnError)
bucketName - The bucket name to validate.throwOnError - boolean to decide if an error should be thrown if the bucket name doesn't follow the naming conventionCopyright © 2017 Amazon Web Services, Inc. All Rights Reserved.