@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsS3AccountPublicAccessBlockDetails extends Object implements Serializable, Cloneable, StructuredPojo
provides information about the Amazon S3 Public Access Block configuration for accounts.
Constructor and Description |
---|
AwsS3AccountPublicAccessBlockDetails() |
Modifier and Type | Method and Description |
---|---|
AwsS3AccountPublicAccessBlockDetails |
clone() |
boolean |
equals(Object obj) |
Boolean |
getBlockPublicAcls()
Indicates whether to reject calls to update an S3 bucket if the calls include a public access control list (ACL).
|
Boolean |
getBlockPublicPolicy()
Indicates whether to reject calls to update the access policy for an S3 bucket or access point if the policy
allows public access.
|
Boolean |
getIgnorePublicAcls()
Indicates whether Amazon S3 ignores public ACLs that are associated with an S3 bucket.
|
Boolean |
getRestrictPublicBuckets()
Indicates whether to restrict access to an access point or S3 bucket that has a public policy to only Amazon Web
Services service principals and authorized users within the S3 bucket owner's account.
|
int |
hashCode() |
Boolean |
isBlockPublicAcls()
Indicates whether to reject calls to update an S3 bucket if the calls include a public access control list (ACL).
|
Boolean |
isBlockPublicPolicy()
Indicates whether to reject calls to update the access policy for an S3 bucket or access point if the policy
allows public access.
|
Boolean |
isIgnorePublicAcls()
Indicates whether Amazon S3 ignores public ACLs that are associated with an S3 bucket.
|
Boolean |
isRestrictPublicBuckets()
Indicates whether to restrict access to an access point or S3 bucket that has a public policy to only Amazon Web
Services service principals and authorized users within the S3 bucket owner's account.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBlockPublicAcls(Boolean blockPublicAcls)
Indicates whether to reject calls to update an S3 bucket if the calls include a public access control list (ACL).
|
void |
setBlockPublicPolicy(Boolean blockPublicPolicy)
Indicates whether to reject calls to update the access policy for an S3 bucket or access point if the policy
allows public access.
|
void |
setIgnorePublicAcls(Boolean ignorePublicAcls)
Indicates whether Amazon S3 ignores public ACLs that are associated with an S3 bucket.
|
void |
setRestrictPublicBuckets(Boolean restrictPublicBuckets)
Indicates whether to restrict access to an access point or S3 bucket that has a public policy to only Amazon Web
Services service principals and authorized users within the S3 bucket owner's account.
|
String |
toString()
Returns a string representation of this object.
|
AwsS3AccountPublicAccessBlockDetails |
withBlockPublicAcls(Boolean blockPublicAcls)
Indicates whether to reject calls to update an S3 bucket if the calls include a public access control list (ACL).
|
AwsS3AccountPublicAccessBlockDetails |
withBlockPublicPolicy(Boolean blockPublicPolicy)
Indicates whether to reject calls to update the access policy for an S3 bucket or access point if the policy
allows public access.
|
AwsS3AccountPublicAccessBlockDetails |
withIgnorePublicAcls(Boolean ignorePublicAcls)
Indicates whether Amazon S3 ignores public ACLs that are associated with an S3 bucket.
|
AwsS3AccountPublicAccessBlockDetails |
withRestrictPublicBuckets(Boolean restrictPublicBuckets)
Indicates whether to restrict access to an access point or S3 bucket that has a public policy to only Amazon Web
Services service principals and authorized users within the S3 bucket owner's account.
|
public AwsS3AccountPublicAccessBlockDetails()
public void setBlockPublicAcls(Boolean blockPublicAcls)
Indicates whether to reject calls to update an S3 bucket if the calls include a public access control list (ACL).
blockPublicAcls
- Indicates whether to reject calls to update an S3 bucket if the calls include a public access control list
(ACL).public Boolean getBlockPublicAcls()
Indicates whether to reject calls to update an S3 bucket if the calls include a public access control list (ACL).
public AwsS3AccountPublicAccessBlockDetails withBlockPublicAcls(Boolean blockPublicAcls)
Indicates whether to reject calls to update an S3 bucket if the calls include a public access control list (ACL).
blockPublicAcls
- Indicates whether to reject calls to update an S3 bucket if the calls include a public access control list
(ACL).public Boolean isBlockPublicAcls()
Indicates whether to reject calls to update an S3 bucket if the calls include a public access control list (ACL).
public void setBlockPublicPolicy(Boolean blockPublicPolicy)
Indicates whether to reject calls to update the access policy for an S3 bucket or access point if the policy allows public access.
blockPublicPolicy
- Indicates whether to reject calls to update the access policy for an S3 bucket or access point if the
policy allows public access.public Boolean getBlockPublicPolicy()
Indicates whether to reject calls to update the access policy for an S3 bucket or access point if the policy allows public access.
public AwsS3AccountPublicAccessBlockDetails withBlockPublicPolicy(Boolean blockPublicPolicy)
Indicates whether to reject calls to update the access policy for an S3 bucket or access point if the policy allows public access.
blockPublicPolicy
- Indicates whether to reject calls to update the access policy for an S3 bucket or access point if the
policy allows public access.public Boolean isBlockPublicPolicy()
Indicates whether to reject calls to update the access policy for an S3 bucket or access point if the policy allows public access.
public void setIgnorePublicAcls(Boolean ignorePublicAcls)
Indicates whether Amazon S3 ignores public ACLs that are associated with an S3 bucket.
ignorePublicAcls
- Indicates whether Amazon S3 ignores public ACLs that are associated with an S3 bucket.public Boolean getIgnorePublicAcls()
Indicates whether Amazon S3 ignores public ACLs that are associated with an S3 bucket.
public AwsS3AccountPublicAccessBlockDetails withIgnorePublicAcls(Boolean ignorePublicAcls)
Indicates whether Amazon S3 ignores public ACLs that are associated with an S3 bucket.
ignorePublicAcls
- Indicates whether Amazon S3 ignores public ACLs that are associated with an S3 bucket.public Boolean isIgnorePublicAcls()
Indicates whether Amazon S3 ignores public ACLs that are associated with an S3 bucket.
public void setRestrictPublicBuckets(Boolean restrictPublicBuckets)
Indicates whether to restrict access to an access point or S3 bucket that has a public policy to only Amazon Web Services service principals and authorized users within the S3 bucket owner's account.
restrictPublicBuckets
- Indicates whether to restrict access to an access point or S3 bucket that has a public policy to only
Amazon Web Services service principals and authorized users within the S3 bucket owner's account.public Boolean getRestrictPublicBuckets()
Indicates whether to restrict access to an access point or S3 bucket that has a public policy to only Amazon Web Services service principals and authorized users within the S3 bucket owner's account.
public AwsS3AccountPublicAccessBlockDetails withRestrictPublicBuckets(Boolean restrictPublicBuckets)
Indicates whether to restrict access to an access point or S3 bucket that has a public policy to only Amazon Web Services service principals and authorized users within the S3 bucket owner's account.
restrictPublicBuckets
- Indicates whether to restrict access to an access point or S3 bucket that has a public policy to only
Amazon Web Services service principals and authorized users within the S3 bucket owner's account.public Boolean isRestrictPublicBuckets()
Indicates whether to restrict access to an access point or S3 bucket that has a public policy to only Amazon Web Services service principals and authorized users within the S3 bucket owner's account.
public String toString()
toString
in class Object
Object.toString()
public AwsS3AccountPublicAccessBlockDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.