@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class S3PublicAccessBlockConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
The PublicAccessBlock
configuration to apply to this Amazon S3 bucket. If the proposed configuration is
for an existing Amazon S3 bucket and the configuration is not specified, the access preview uses the existing
setting. If the proposed configuration is for a new bucket and the configuration is not specified, the access preview
uses false
. If the proposed configuration is for a new access point or multi-region access point and the
access point BPA configuration is not specified, the access preview uses true
. For more information, see
PublicAccessBlockConfiguration.
Constructor and Description |
---|
S3PublicAccessBlockConfiguration() |
Modifier and Type | Method and Description |
---|---|
S3PublicAccessBlockConfiguration |
clone() |
boolean |
equals(Object obj) |
Boolean |
getIgnorePublicAcls()
Specifies whether Amazon S3 should ignore public ACLs for this bucket and objects in this bucket.
|
Boolean |
getRestrictPublicBuckets()
Specifies whether Amazon S3 should restrict public bucket policies for this bucket.
|
int |
hashCode() |
Boolean |
isIgnorePublicAcls()
Specifies whether Amazon S3 should ignore public ACLs for this bucket and objects in this bucket.
|
Boolean |
isRestrictPublicBuckets()
Specifies whether Amazon S3 should restrict public bucket policies for this bucket.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setIgnorePublicAcls(Boolean ignorePublicAcls)
Specifies whether Amazon S3 should ignore public ACLs for this bucket and objects in this bucket.
|
void |
setRestrictPublicBuckets(Boolean restrictPublicBuckets)
Specifies whether Amazon S3 should restrict public bucket policies for this bucket.
|
String |
toString()
Returns a string representation of this object.
|
S3PublicAccessBlockConfiguration |
withIgnorePublicAcls(Boolean ignorePublicAcls)
Specifies whether Amazon S3 should ignore public ACLs for this bucket and objects in this bucket.
|
S3PublicAccessBlockConfiguration |
withRestrictPublicBuckets(Boolean restrictPublicBuckets)
Specifies whether Amazon S3 should restrict public bucket policies for this bucket.
|
public void setIgnorePublicAcls(Boolean ignorePublicAcls)
Specifies whether Amazon S3 should ignore public ACLs for this bucket and objects in this bucket.
ignorePublicAcls
- Specifies whether Amazon S3 should ignore public ACLs for this bucket and objects in this bucket.public Boolean getIgnorePublicAcls()
Specifies whether Amazon S3 should ignore public ACLs for this bucket and objects in this bucket.
public S3PublicAccessBlockConfiguration withIgnorePublicAcls(Boolean ignorePublicAcls)
Specifies whether Amazon S3 should ignore public ACLs for this bucket and objects in this bucket.
ignorePublicAcls
- Specifies whether Amazon S3 should ignore public ACLs for this bucket and objects in this bucket.public Boolean isIgnorePublicAcls()
Specifies whether Amazon S3 should ignore public ACLs for this bucket and objects in this bucket.
public void setRestrictPublicBuckets(Boolean restrictPublicBuckets)
Specifies whether Amazon S3 should restrict public bucket policies for this bucket.
restrictPublicBuckets
- Specifies whether Amazon S3 should restrict public bucket policies for this bucket.public Boolean getRestrictPublicBuckets()
Specifies whether Amazon S3 should restrict public bucket policies for this bucket.
public S3PublicAccessBlockConfiguration withRestrictPublicBuckets(Boolean restrictPublicBuckets)
Specifies whether Amazon S3 should restrict public bucket policies for this bucket.
restrictPublicBuckets
- Specifies whether Amazon S3 should restrict public bucket policies for this bucket.public Boolean isRestrictPublicBuckets()
Specifies whether Amazon S3 should restrict public bucket policies for this bucket.
public String toString()
toString
in class Object
Object.toString()
public S3PublicAccessBlockConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.