@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BlockPublicAccess extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about the block public access settings for an S3 bucket. These settings can apply to a bucket at the account level or bucket level. For detailed information about each setting, see Blocking public access to your Amazon S3 storage in the Amazon Simple Storage Service User Guide.
Constructor and Description |
---|
BlockPublicAccess() |
Modifier and Type | Method and Description |
---|---|
BlockPublicAccess |
clone() |
boolean |
equals(Object obj) |
Boolean |
getBlockPublicAcls()
Specifies whether Amazon S3 blocks public access control lists (ACLs) for the bucket and objects in the bucket.
|
Boolean |
getBlockPublicPolicy()
Specifies whether Amazon S3 blocks public bucket policies for the bucket.
|
Boolean |
getIgnorePublicAcls()
Specifies whether Amazon S3 ignores public ACLs for the bucket and objects in the bucket.
|
Boolean |
getRestrictPublicBuckets()
Specifies whether Amazon S3 restricts public bucket policies for the bucket.
|
int |
hashCode() |
Boolean |
isBlockPublicAcls()
Specifies whether Amazon S3 blocks public access control lists (ACLs) for the bucket and objects in the bucket.
|
Boolean |
isBlockPublicPolicy()
Specifies whether Amazon S3 blocks public bucket policies for the bucket.
|
Boolean |
isIgnorePublicAcls()
Specifies whether Amazon S3 ignores public ACLs for the bucket and objects in the bucket.
|
Boolean |
isRestrictPublicBuckets()
Specifies whether Amazon S3 restricts public bucket policies for the bucket.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBlockPublicAcls(Boolean blockPublicAcls)
Specifies whether Amazon S3 blocks public access control lists (ACLs) for the bucket and objects in the bucket.
|
void |
setBlockPublicPolicy(Boolean blockPublicPolicy)
Specifies whether Amazon S3 blocks public bucket policies for the bucket.
|
void |
setIgnorePublicAcls(Boolean ignorePublicAcls)
Specifies whether Amazon S3 ignores public ACLs for the bucket and objects in the bucket.
|
void |
setRestrictPublicBuckets(Boolean restrictPublicBuckets)
Specifies whether Amazon S3 restricts public bucket policies for the bucket.
|
String |
toString()
Returns a string representation of this object.
|
BlockPublicAccess |
withBlockPublicAcls(Boolean blockPublicAcls)
Specifies whether Amazon S3 blocks public access control lists (ACLs) for the bucket and objects in the bucket.
|
BlockPublicAccess |
withBlockPublicPolicy(Boolean blockPublicPolicy)
Specifies whether Amazon S3 blocks public bucket policies for the bucket.
|
BlockPublicAccess |
withIgnorePublicAcls(Boolean ignorePublicAcls)
Specifies whether Amazon S3 ignores public ACLs for the bucket and objects in the bucket.
|
BlockPublicAccess |
withRestrictPublicBuckets(Boolean restrictPublicBuckets)
Specifies whether Amazon S3 restricts public bucket policies for the bucket.
|
public void setBlockPublicAcls(Boolean blockPublicAcls)
Specifies whether Amazon S3 blocks public access control lists (ACLs) for the bucket and objects in the bucket.
blockPublicAcls
- Specifies whether Amazon S3 blocks public access control lists (ACLs) for the bucket and objects in the
bucket.public Boolean getBlockPublicAcls()
Specifies whether Amazon S3 blocks public access control lists (ACLs) for the bucket and objects in the bucket.
public BlockPublicAccess withBlockPublicAcls(Boolean blockPublicAcls)
Specifies whether Amazon S3 blocks public access control lists (ACLs) for the bucket and objects in the bucket.
blockPublicAcls
- Specifies whether Amazon S3 blocks public access control lists (ACLs) for the bucket and objects in the
bucket.public Boolean isBlockPublicAcls()
Specifies whether Amazon S3 blocks public access control lists (ACLs) for the bucket and objects in the bucket.
public void setBlockPublicPolicy(Boolean blockPublicPolicy)
Specifies whether Amazon S3 blocks public bucket policies for the bucket.
blockPublicPolicy
- Specifies whether Amazon S3 blocks public bucket policies for the bucket.public Boolean getBlockPublicPolicy()
Specifies whether Amazon S3 blocks public bucket policies for the bucket.
public BlockPublicAccess withBlockPublicPolicy(Boolean blockPublicPolicy)
Specifies whether Amazon S3 blocks public bucket policies for the bucket.
blockPublicPolicy
- Specifies whether Amazon S3 blocks public bucket policies for the bucket.public Boolean isBlockPublicPolicy()
Specifies whether Amazon S3 blocks public bucket policies for the bucket.
public void setIgnorePublicAcls(Boolean ignorePublicAcls)
Specifies whether Amazon S3 ignores public ACLs for the bucket and objects in the bucket.
ignorePublicAcls
- Specifies whether Amazon S3 ignores public ACLs for the bucket and objects in the bucket.public Boolean getIgnorePublicAcls()
Specifies whether Amazon S3 ignores public ACLs for the bucket and objects in the bucket.
public BlockPublicAccess withIgnorePublicAcls(Boolean ignorePublicAcls)
Specifies whether Amazon S3 ignores public ACLs for the bucket and objects in the bucket.
ignorePublicAcls
- Specifies whether Amazon S3 ignores public ACLs for the bucket and objects in the bucket.public Boolean isIgnorePublicAcls()
Specifies whether Amazon S3 ignores public ACLs for the bucket and objects in the bucket.
public void setRestrictPublicBuckets(Boolean restrictPublicBuckets)
Specifies whether Amazon S3 restricts public bucket policies for the bucket.
restrictPublicBuckets
- Specifies whether Amazon S3 restricts public bucket policies for the bucket.public Boolean getRestrictPublicBuckets()
Specifies whether Amazon S3 restricts public bucket policies for the bucket.
public BlockPublicAccess withRestrictPublicBuckets(Boolean restrictPublicBuckets)
Specifies whether Amazon S3 restricts public bucket policies for the bucket.
restrictPublicBuckets
- Specifies whether Amazon S3 restricts public bucket policies for the bucket.public Boolean isRestrictPublicBuckets()
Specifies whether Amazon S3 restricts public bucket policies for the bucket.
public String toString()
toString
in class Object
Object.toString()
public BlockPublicAccess clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.