@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BucketPolicy extends Object implements Serializable, Cloneable, StructuredPojo
Contains information on the current bucket policies for the S3 bucket.
| Constructor and Description |
|---|
BucketPolicy() |
| Modifier and Type | Method and Description |
|---|---|
BucketPolicy |
clone() |
boolean |
equals(Object obj) |
Boolean |
getAllowsPublicReadAccess()
A value that indicates whether public read access for the bucket is enabled through a bucket policy.
|
Boolean |
getAllowsPublicWriteAccess()
A value that indicates whether public write access for the bucket is enabled through a bucket policy.
|
int |
hashCode() |
Boolean |
isAllowsPublicReadAccess()
A value that indicates whether public read access for the bucket is enabled through a bucket policy.
|
Boolean |
isAllowsPublicWriteAccess()
A value that indicates whether public write access for the bucket is enabled through a bucket policy.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setAllowsPublicReadAccess(Boolean allowsPublicReadAccess)
A value that indicates whether public read access for the bucket is enabled through a bucket policy.
|
void |
setAllowsPublicWriteAccess(Boolean allowsPublicWriteAccess)
A value that indicates whether public write access for the bucket is enabled through a bucket policy.
|
String |
toString()
Returns a string representation of this object.
|
BucketPolicy |
withAllowsPublicReadAccess(Boolean allowsPublicReadAccess)
A value that indicates whether public read access for the bucket is enabled through a bucket policy.
|
BucketPolicy |
withAllowsPublicWriteAccess(Boolean allowsPublicWriteAccess)
A value that indicates whether public write access for the bucket is enabled through a bucket policy.
|
public void setAllowsPublicReadAccess(Boolean allowsPublicReadAccess)
A value that indicates whether public read access for the bucket is enabled through a bucket policy.
allowsPublicReadAccess - A value that indicates whether public read access for the bucket is enabled through a bucket policy.public Boolean getAllowsPublicReadAccess()
A value that indicates whether public read access for the bucket is enabled through a bucket policy.
public BucketPolicy withAllowsPublicReadAccess(Boolean allowsPublicReadAccess)
A value that indicates whether public read access for the bucket is enabled through a bucket policy.
allowsPublicReadAccess - A value that indicates whether public read access for the bucket is enabled through a bucket policy.public Boolean isAllowsPublicReadAccess()
A value that indicates whether public read access for the bucket is enabled through a bucket policy.
public void setAllowsPublicWriteAccess(Boolean allowsPublicWriteAccess)
A value that indicates whether public write access for the bucket is enabled through a bucket policy.
allowsPublicWriteAccess - A value that indicates whether public write access for the bucket is enabled through a bucket policy.public Boolean getAllowsPublicWriteAccess()
A value that indicates whether public write access for the bucket is enabled through a bucket policy.
public BucketPolicy withAllowsPublicWriteAccess(Boolean allowsPublicWriteAccess)
A value that indicates whether public write access for the bucket is enabled through a bucket policy.
allowsPublicWriteAccess - A value that indicates whether public write access for the bucket is enabled through a bucket policy.public Boolean isAllowsPublicWriteAccess()
A value that indicates whether public write access for the bucket is enabled through a bucket policy.
public String toString()
toString in class ObjectObject.toString()public BucketPolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.