public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }
<p>
The error code for an error that prevented Amazon Macie from retrieving and processing information about the
bucket and the bucket's objects. If this value is ACCESS_DENIED, Macie doesn't have permission to retrieve the
information. For example, the bucket has a restrictive bucket policy and Amazon S3 denied the request. If this
value is null, Macie was able to retrieve and process the information.
</p>

@param errorCode
       The error code for an error that prevented Amazon Macie from retrieving and processing information about
       the bucket and the bucket's objects. If this value is ACCESS_DENIED, Macie doesn't have permission to
       retrieve the information. For example, the bucket has a restrictive bucket policy and Amazon S3 denied the
       request. If this value is null, Macie was able to retrieve and process the information.
@see BucketMetadataErrorCode
aws-java-sdk-macie2/src/main/java/com/amazonaws/services/macie2/model/BucketMetadata.java