@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BucketPolicy extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about the permissions settings of the bucket policy for an S3 bucket.
| Constructor and Description |
|---|
BucketPolicy() |
| Modifier and Type | Method and Description |
|---|---|
BucketPolicy |
clone() |
boolean |
equals(Object obj) |
Boolean |
getAllowsPublicReadAccess()
Specifies whether the bucket policy allows the general public to have read access to the bucket.
|
Boolean |
getAllowsPublicWriteAccess()
Specifies whether the bucket policy allows the general public to have write access to the bucket.
|
int |
hashCode() |
Boolean |
isAllowsPublicReadAccess()
Specifies whether the bucket policy allows the general public to have read access to the bucket.
|
Boolean |
isAllowsPublicWriteAccess()
Specifies whether the bucket policy allows the general public to have write access to the bucket.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setAllowsPublicReadAccess(Boolean allowsPublicReadAccess)
Specifies whether the bucket policy allows the general public to have read access to the bucket.
|
void |
setAllowsPublicWriteAccess(Boolean allowsPublicWriteAccess)
Specifies whether the bucket policy allows the general public to have write access to the bucket.
|
String |
toString()
Returns a string representation of this object.
|
BucketPolicy |
withAllowsPublicReadAccess(Boolean allowsPublicReadAccess)
Specifies whether the bucket policy allows the general public to have read access to the bucket.
|
BucketPolicy |
withAllowsPublicWriteAccess(Boolean allowsPublicWriteAccess)
Specifies whether the bucket policy allows the general public to have write access to the bucket.
|
public void setAllowsPublicReadAccess(Boolean allowsPublicReadAccess)
Specifies whether the bucket policy allows the general public to have read access to the bucket.
allowsPublicReadAccess - Specifies whether the bucket policy allows the general public to have read access to the bucket.public Boolean getAllowsPublicReadAccess()
Specifies whether the bucket policy allows the general public to have read access to the bucket.
public BucketPolicy withAllowsPublicReadAccess(Boolean allowsPublicReadAccess)
Specifies whether the bucket policy allows the general public to have read access to the bucket.
allowsPublicReadAccess - Specifies whether the bucket policy allows the general public to have read access to the bucket.public Boolean isAllowsPublicReadAccess()
Specifies whether the bucket policy allows the general public to have read access to the bucket.
public void setAllowsPublicWriteAccess(Boolean allowsPublicWriteAccess)
Specifies whether the bucket policy allows the general public to have write access to the bucket.
allowsPublicWriteAccess - Specifies whether the bucket policy allows the general public to have write access to the bucket.public Boolean getAllowsPublicWriteAccess()
Specifies whether the bucket policy allows the general public to have write access to the bucket.
public BucketPolicy withAllowsPublicWriteAccess(Boolean allowsPublicWriteAccess)
Specifies whether the bucket policy allows the general public to have write access to the bucket.
allowsPublicWriteAccess - Specifies whether the bucket policy allows the general public to have write access to the bucket.public Boolean isAllowsPublicWriteAccess()
Specifies whether the bucket policy allows the general public to have write access to the bucket.
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.