public void setError(String error) {
        this.error = error;
    }
<p>
An error message.
</p>

@param error
       An error message.
aws-java-sdk-accessanalyzer/src/main/java/com/amazonaws/services/accessanalyzer/model/AnalyzedResource.java