com.amazonaws.services.s3.model
Class DeleteBucketPolicyRequest

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

public class DeleteBucketPolicyRequest
extends AmazonWebServiceRequest

Deletes the policy associated with the specified bucket. Only the owner of the bucket can delete the bucket policy.

Bucket policies provide access control management at the bucket level for both the bucket resource and contained object resources. Only one policy can be specified per-bucket.

See the Amazon S3 developer guide for more information on forming bucket polices.

See Also:
AmazonS3.deleteBucketPolicy(DeleteBucketPolicyRequest)

Constructor Summary
DeleteBucketPolicyRequest(String bucketName)
          Creates a new request object, ready to be executed to delete the bucket policy of an Amazon S3 bucket.
 
Method Summary
 String getBucketName()
          Returns the name of the Amazon S3 bucket whose policy is being deleted.
 void setBucketName(String bucketName)
          Sets the name of the Amazon S3 bucket whose policy is being deleted.
 DeleteBucketPolicyRequest withBucketName(String bucketName)
          Sets the name of the Amazon S3 bucket whose policy is being deleted, and returns the updated request object so that additional method calls can be chained together.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteBucketPolicyRequest

public DeleteBucketPolicyRequest(String bucketName)
Creates a new request object, ready to be executed to delete the bucket policy of an Amazon S3 bucket.

Parameters:
bucketName - The name of the Amazon S3 bucket whose policy is being deleted.
Method Detail

getBucketName

public String getBucketName()
Returns the name of the Amazon S3 bucket whose policy is being deleted.

Returns:
The name of the Amazon S3 bucket whose policy is being deleted.

setBucketName

public void setBucketName(String bucketName)
Sets the name of the Amazon S3 bucket whose policy is being deleted.

Parameters:
bucketName - The name of the Amazon S3 bucket whose policy is being deleted.

withBucketName

public DeleteBucketPolicyRequest withBucketName(String bucketName)
Sets the name of the Amazon S3 bucket whose policy is being deleted, and returns the updated request object so that additional method calls can be chained together.

Parameters:
bucketName - The name of the Amazon S3 bucket whose policy is being deleted.
Returns:
The updated request object so that additional method calls can be chained together.


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