|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.s3.model.GetBucketPolicyRequest
public class GetBucketPolicyRequest
Gets the policy for the specified bucket. Only the owner of the bucket can
retrieve the policy. If no policy has been set for the bucket, then an empty
result object with a null
policy text field will be returned.
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.
AmazonS3.getBucketPolicy(GetBucketPolicyRequest)
Constructor Summary | |
---|---|
GetBucketPolicyRequest(String bucketName)
Creates a new request object, ready to be executed to retrieve the bucket policy of an Amazon S3 bucket. |
Method Summary | |
---|---|
String |
getBucketName()
Returns the name of the Amazon S3 bucket whose policy is being retrieved. |
void |
setBucketName(String bucketName)
Sets the name of the Amazon S3 bucket whose policy is being retrieved. |
GetBucketPolicyRequest |
withBucketName(String bucketName)
Sets the name of the Amazon S3 bucket whose policy is being retrieved, 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 |
---|
public GetBucketPolicyRequest(String bucketName)
bucketName
- The name of the Amazon S3 bucket whose policy is being
retrieved.Method Detail |
---|
public String getBucketName()
public void setBucketName(String bucketName)
bucketName
- The name of the Amazon S3 bucket whose policy is being
retrieved.public GetBucketPolicyRequest withBucketName(String bucketName)
bucketName
- The name of the Amazon S3 bucket whose policy is being
retrieved.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |