public GetMetricStreamResult withOutputFormat(String outputFormat) {
        setOutputFormat(outputFormat);
        return this;
    }
<p>
The output format for the stream. Valid values are <code>json</code>, <code>opentelemetry1.0</code>, and
<code>opentelemetry0.7</code>. For more information about metric stream output formats, see <a
href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-metric-streams-formats.html"
>Metric streams output formats</a>.
</p>

@param outputFormat
       The output format for the stream. Valid values are <code>json</code>, <code>opentelemetry1.0</code>, and
       <code>opentelemetry0.7</code>. For more information about metric stream output formats, see <a
       href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-metric-streams-formats.html"
       >Metric streams output formats</a>.
@return Returns a reference to this object so that method calls can be chained together.
@see MetricStreamOutputFormat
aws-java-sdk-cloudwatch/src/main/java/com/amazonaws/services/cloudwatch/model/GetMetricStreamResult.java