Class GetBucketLocationRequest

    • Constructor Detail

      • GetBucketLocationRequest

        public GetBucketLocationRequest​(String bucketName)
        Constructs a new request object to create a new bucket with the specified name.

        When choosing a bucket name, keep in mind that Amazon S3 bucket names are globally unique.

        Parameters:
        bucketName - The name for the new bucket.
    • Method Detail

      • getBucketName

        public String getBucketName()
        Returns the name of the bucket whose location is being requested.
        Returns:
        The name of the bucket whose location is being requested.
      • setBucketName

        public void setBucketName​(String bucketName)
        Sets the name of the bucket whose location is being requested.
        Parameters:
        bucketName - The name of the bucket whose location is being requested.
      • withBucketName

        public GetBucketLocationRequest withBucketName​(String bucketName)
        Sets the name of the bucket whose location is being requested, and returns this updated object so that additional method calls can be chained together.
        Parameters:
        bucketName - The name of the bucket whose location is being requested.
        Returns:
        This updated object, so that additional method calls can be chained together.