public class BucketPolicy
extends java.lang.Object
implements java.io.Serializable
Represents a Amazon S3 bucket policy. Bucket policies provide access control management at the bucket level for both the bucket resource and contained object resources. Only one policy may be specified per bucket.
Buckets have no policy text until one is explicitly specified.
Requesting the bucket policy for a newly created bucket will return a
policy object with null
policy text.
See the Amazon S3 developer guide for more information on forming bucket polices.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
policyText
The raw, policy JSON text, as returned by Amazon S3
|
Constructor and Description |
---|
BucketPolicy() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPolicyText()
Gets the raw policy JSON text as returned by Amazon S3.
|
void |
setPolicyText(java.lang.String policyText)
Sets the raw policy JSON text.
|
private java.lang.String policyText
public java.lang.String getPolicyText()
setPolicyText(String)
public void setPolicyText(java.lang.String policyText)
policyText
- The raw policy JSON text.getPolicyText()