public CodeSnippetError withErrorCode(String errorCode) {
        setErrorCode(errorCode);
        return this;
    }
<p>
The error code for the error that prevented a code snippet from being retrieved.
</p>

@param errorCode
       The error code for the error that prevented a code snippet from being retrieved.
@return Returns a reference to this object so that method calls can be chained together.
@see CodeSnippetErrorCode
aws-java-sdk-inspector2/src/main/java/com/amazonaws/services/inspector2/model/CodeSnippetError.java