public InsightRuleMetricDatapoint withSampleCount(Double sampleCount) {
        setSampleCount(sampleCount);
        return this;
    }
<p>
The number of occurrences that matched the rule during this data point.
</p>
<p>
This statistic is returned only if you included it in the <code>Metrics</code> array in your request.
</p>

@param sampleCount
       The number of occurrences that matched the rule during this data point.</p>
       <p>
       This statistic is returned only if you included it in the <code>Metrics</code> array in your request.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudwatch/src/main/java/com/amazonaws/services/cloudwatch/model/InsightRuleMetricDatapoint.java