@Generated(value="software.amazon.awssdk:codegen") public final class BlockPublicAccess extends Object implements SdkPojo, Serializable, ToCopyableBuilder<BlockPublicAccess.Builder,BlockPublicAccess>
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 Using Amazon S3 block public access in the Amazon Simple Storage Service Developer Guide.
Modifier and Type | Class and Description |
---|---|
static interface |
BlockPublicAccess.Builder |
Modifier and Type | Method and Description |
---|---|
Boolean |
blockPublicAcls()
Specifies whether Amazon S3 blocks public access control lists (ACLs) for the bucket and objects in the bucket.
|
Boolean |
blockPublicPolicy()
Specifies whether Amazon S3 blocks public bucket policies for the bucket.
|
static BlockPublicAccess.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Boolean |
ignorePublicAcls()
Specifies whether Amazon S3 ignores public ACLs for the bucket and objects in the bucket.
|
Boolean |
restrictPublicBuckets()
Specifies whether Amazon S3 restricts public bucket policies for the bucket.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends BlockPublicAccess.Builder> |
serializableBuilderClass() |
BlockPublicAccess.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
copy
public final Boolean blockPublicAcls()
Specifies whether Amazon S3 blocks public access control lists (ACLs) for the bucket and objects in the bucket.
public final Boolean blockPublicPolicy()
Specifies whether Amazon S3 blocks public bucket policies for the bucket.
public final Boolean ignorePublicAcls()
Specifies whether Amazon S3 ignores public ACLs for the bucket and objects in the bucket.
public final Boolean restrictPublicBuckets()
Specifies whether Amazon S3 restricts public bucket policies for the bucket.
public BlockPublicAccess.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<BlockPublicAccess.Builder,BlockPublicAccess>
public static BlockPublicAccess.Builder builder()
public static Class<? extends BlockPublicAccess.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()
Copyright © 2021 Amazon Web Services, Inc. All Rights Reserved.