@Override
    public GetPublicAccessBlockResult getPublicAccessBlock(GetPublicAccessBlockRequest request) {
        request = beforeClientExecution(request);
        return executeGetPublicAccessBlock(request);
    }
<note>
<p>
This operation is not supported by directory buckets.
</p>
</note>
<p>
Retrieves the <code>PublicAccessBlock</code> configuration for an Amazon Web Services account. For more
information, see <a
href="https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html"> Using Amazon S3
block public access</a>.
</p>
<p>
Related actions include:
</p>
<ul>
<li>
<p>
<a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeletePublicAccessBlock.html">
DeletePublicAccessBlock</a>
</p>
</li>
<li>
<p>
<a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutPublicAccessBlock.html">
PutPublicAccessBlock</a>
</p>
</li>
</ul>

@param getPublicAccessBlockRequest
@return Result of the GetPublicAccessBlock operation returned by the service.
@throws NoSuchPublicAccessBlockConfigurationException
        Amazon S3 throws this exception if you make a <code>GetPublicAccessBlock</code> request against an
        account that doesn't have a <code>PublicAccessBlockConfiguration</code> set.
@sample AWSS3Control.GetPublicAccessBlock
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/GetPublicAccessBlock" target="_top">AWS
     API Documentation</a>
aws-java-sdk-s3control/src/main/java/com/amazonaws/services/s3control/AWSS3ControlClient.java