public MapRunItemCounts withResultsWritten(Long resultsWritten) {
        setResultsWritten(resultsWritten);
        return this;
    }
<p>
Returns the count of items whose results were written by <code>ResultWriter</code>. For more information, see <a
href="https://docs.aws.amazon.com/step-functions/latest/dg/input-output-resultwriter.html">ResultWriter</a> in
the <i>Step Functions Developer Guide</i>.
</p>

@param resultsWritten
       Returns the count of items whose results were written by <code>ResultWriter</code>. For more information,
       see <a
       href="https://docs.aws.amazon.com/step-functions/latest/dg/input-output-resultwriter.html">ResultWriter
       </a> in the <i>Step Functions Developer Guide</i>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/model/MapRunItemCounts.java