com.amazonaws.services.s3.internal

## クラス BucketNameUtils

- java.lang.Object
- - com.amazonaws.services.s3.internal.BucketNameUtils

-     public class BucketNameUtils
      extends java.lang.Object

  Utilities for working with Amazon S3 bucket names, such as validation and checked to see if they are compatible with DNS addressing.

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `BucketNameUtils()`

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `isDNSBucketName(java.lang.String bucketName)` Convience method that allows the DNS rules to be altered for different SDKs.
    `boolean` | `isValidV2BucketName(java.lang.String bucketName)` Returns true if the specified bucket name can be addressed using V2, virtual host style, addressing.
    `void` | `validateBucketName(java.lang.String bucketName)` Validates that the specified bucket name is valid for Amazon S3 V2 naming (i.e.

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### BucketNameUtils

          public BucketNameUtils()

  - ### メソッドの詳細

    - #### validateBucketName

          public void validateBucketName(java.lang.String bucketName)
                                  throws java.lang.IllegalArgumentException

      Validates that the specified bucket name is valid for Amazon S3 V2 naming (i.e. DNS addressable in virtual host style). Throws an IllegalArgumentException if the bucket name is not valid.

      S3 bucket naming guidelines are specified in http://docs.amazonwebservices.com/AmazonS3/latest/dev/index.html? BucketRestrictions.html

      パラメータ:
        `bucketName` - The bucket name to validate.
      例外:
        `java.lang.IllegalArgumentException` - If the specified bucket name doesn't follow Amazon S3's guidelines.

    - #### isValidV2BucketName

          public boolean isValidV2BucketName(java.lang.String bucketName)

      Returns true if the specified bucket name can be addressed using V2, virtual host style, addressing. Otherwise, returns false indicating that the bucket must be addressed using V1, path style, addressing.
      パラメータ:
        `bucketName` - The name of the bucket to check.
      戻り値:
        True if the specified bucket name can be addressed in V2, virtual host style, addressing otherwise false if V1, path style, addressing is required.

    - #### isDNSBucketName

          public boolean isDNSBucketName(java.lang.String bucketName)

      Convience method that allows the DNS rules to be altered for different SDKs.