Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright 2011-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License").
  * You may not use this file except in compliance with the License.
  * A copy of the License is located at
  *
  *  http://aws.amazon.com/apache2.0
  *
 * or in the "license" file accompanying this file. This file is distributed
 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
 * express or implied. See the License for the specific language governing
 * permissions and limitations under the License.
 */
package com.amazonaws.services.s3.model;
Provides options for requesting an Amazon S3 bucket's location. You can choose a bucket's location when creating it to ensure that the data stored in your bucket is geographically close to the applications or customers accessing your data.

The name of the bucket whose location is being requested.
	private 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.
	public GetBucketLocationRequest(String bucketName) {
		this. = bucketName;
	}


Returns the name of the bucket whose location is being requested.

Returns:
The name of the bucket whose location is being requested.
	public String getBucketName() {
		return ;
	}

Sets the name of the bucket whose location is being requested.

Parameters:
bucketName The name of the bucket whose location is being requested.
	public void setBucketName(String bucketName) {
		this. = 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.
		setBucketName(bucketName);
		return this;
	}
New to GrepCode? Check out our FAQ X