public FileSystemAssociationStatusDetail withErrorCode(String errorCode) {
        setErrorCode(errorCode);
        return this;
    }
<p>
The error code for a given file system association status.
</p>

@param errorCode
       The error code for a given file system association status.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-storagegateway/src/main/java/com/amazonaws/services/storagegateway/model/FileSystemAssociationStatusDetail.java