com.amazonaws.services.s3.model
Class CreateBucketRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.s3.model.CreateBucketRequest

public class CreateBucketRequest
extends AmazonWebServiceRequest

Provides options for creating an Amazon S3 bucket.

See Also:
DeleteBucketRequest, CopyObjectRequest

Constructor Summary
CreateBucketRequest(String bucketName)
          Constructs a new CreateBucketRequest, ready to be executed to create the specified bucket in the US_Standard region.
CreateBucketRequest(String bucketName, Region region)
          Constructs a new CreateBucketRequest, ready to be executed to create the specified bucket in the specified region.
CreateBucketRequest(String bucketName, String region)
          Constructs a new CreateBucketRequest, ready to be executed and create the specified bucket in the specified region.
 
Method Summary
 String getBucketName()
          Gets the name of the Amazon S3 bucket to create.
 String getRegion()
          Gets the name of the Amazon S3 region in which this bucket will be created.
 void setBucketName(String bucketName)
          Sets the name of the Amazon S3 bucket to create.
 void setRegion(String region)
          Sets the name of the Amazon S3 region in which this bucket will be created.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateBucketRequest

public CreateBucketRequest(String bucketName)
Constructs a new CreateBucketRequest, ready to be executed to create the specified bucket in the US_Standard region.

Parameters:
bucketName - The name of the Amazon S3 bucket to create.
See Also:
CreateBucketRequest(String, Region), CreateBucketRequest(String, String)

CreateBucketRequest

public CreateBucketRequest(String bucketName,
                           Region region)
Constructs a new CreateBucketRequest, ready to be executed to create the specified bucket in the specified region.

Parameters:
bucketName - The name of the Amazon S3 bucket to create.
region - The region in which to create this bucket.
See Also:
CreateBucketRequest(String), CreateBucketRequest(String, String)

CreateBucketRequest

public CreateBucketRequest(String bucketName,
                           String region)
Constructs a new CreateBucketRequest, ready to be executed and create the specified bucket in the specified region.

Parameters:
bucketName - The name of the Amazon S3 bucket to create.
region - The region in which to create this bucket.
See Also:
CreateBucketRequest(String), CreateBucketRequest(String, Region)
Method Detail

setBucketName

public void setBucketName(String bucketName)
Sets the name of the Amazon S3 bucket to create.

Parameters:
bucketName - The name of the Amazon S3 bucket to create.
See Also:
getBucketName()

getBucketName

public String getBucketName()
Gets the name of the Amazon S3 bucket to create.

Returns:
The name of the Amazon S3 bucket to create.
See Also:
setBucketName(String)

setRegion

public void setRegion(String region)
Sets the name of the Amazon S3 region in which this bucket will be created.

Parameters:
region - The name of the Amazon S3 region in which this bucket will be created.
See Also:
getRegion()

getRegion

public String getRegion()
Gets the name of the Amazon S3 region in which this bucket will be created.

Returns:
The name of the Amazon S3 region in which this bucket will be created.
See Also:
setRegion(String)


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.