public GetDistributionMetricDataRequest withMetricName(DistributionMetricName metricName) {
        this.metricName = metricName.toString();
        return this;
    }
<p>
The metric for which you want to return information.
</p>
<p>
Valid distribution metric names are listed below, along with the most useful <code>statistics</code> to include
in your request, and the published <code>unit</code> value.
</p>
<ul>
<li>
<p>
<b> <code>Requests</code> </b> - The total number of viewer requests received by your Lightsail distribution, for
all HTTP methods, and for both HTTP and HTTPS requests.
</p>
<p>
<code>Statistics</code>: The most useful statistic is <code>Sum</code>.
</p>
<p>
<code>Unit</code>: The published unit is <code>None</code>.
</p>
</li>
<li>
<p>
<b> <code>BytesDownloaded</code> </b> - The number of bytes downloaded by viewers for GET, HEAD, and OPTIONS
requests.
</p>
<p>
<code>Statistics</code>: The most useful statistic is <code>Sum</code>.
</p>
<p>
<code>Unit</code>: The published unit is <code>None</code>.
</p>
</li>
<li>
<p>
<b> <code>BytesUploaded </code> </b> - The number of bytes uploaded to your origin by your Lightsail
distribution, using POST and PUT requests.
</p>
<p>
<code>Statistics</code>: The most useful statistic is <code>Sum</code>.
</p>
<p>
<code>Unit</code>: The published unit is <code>None</code>.
</p>
</li>
<li>
<p>
<b> <code>TotalErrorRate</code> </b> - The percentage of all viewer requests for which the response's HTTP status
code was 4xx or 5xx.
</p>
<p>
<code>Statistics</code>: The most useful statistic is <code>Average</code>.
</p>
<p>
<code>Unit</code>: The published unit is <code>Percent</code>.
</p>
</li>
<li>
<p>
<b> <code>4xxErrorRate</code> </b> - The percentage of all viewer requests for which the response's HTTP status
cod was 4xx. In these cases, the client or client viewer may have made an error. For example, a status code of
404 (Not Found) means that the client requested an object that could not be found.
</p>
<p>
<code>Statistics</code>: The most useful statistic is <code>Average</code>.
</p>
<p>
<code>Unit</code>: The published unit is <code>Percent</code>.
</p>
</li>
<li>
<p>
<b> <code>5xxErrorRate</code> </b> - The percentage of all viewer requests for which the response's HTTP status
code was 5xx. In these cases, the origin server did not satisfy the requests. For example, a status code of 503
(Service Unavailable) means that the origin server is currently unavailable.
</p>
<p>
<code>Statistics</code>: The most useful statistic is <code>Average</code>.
</p>
<p>
<code>Unit</code>: The published unit is <code>Percent</code>.
</p>
</li>
</ul>

@param metricName
       The metric for which you want to return information.</p>
       <p>
       Valid distribution metric names are listed below, along with the most useful <code>statistics</code> to
       include in your request, and the published <code>unit</code> value.
       </p>
       <ul>
       <li>
       <p>
       <b> <code>Requests</code> </b> - The total number of viewer requests received by your Lightsail
       distribution, for all HTTP methods, and for both HTTP and HTTPS requests.
       </p>
       <p>
       <code>Statistics</code>: The most useful statistic is <code>Sum</code>.
       </p>
       <p>
       <code>Unit</code>: The published unit is <code>None</code>.
       </p>
       </li>
       <li>
       <p>
       <b> <code>BytesDownloaded</code> </b> - The number of bytes downloaded by viewers for GET, HEAD, and
       OPTIONS requests.
       </p>
       <p>
       <code>Statistics</code>: The most useful statistic is <code>Sum</code>.
       </p>
       <p>
       <code>Unit</code>: The published unit is <code>None</code>.
       </p>
       </li>
       <li>
       <p>
       <b> <code>BytesUploaded </code> </b> - The number of bytes uploaded to your origin by your Lightsail
       distribution, using POST and PUT requests.
       </p>
       <p>
       <code>Statistics</code>: The most useful statistic is <code>Sum</code>.
       </p>
       <p>
       <code>Unit</code>: The published unit is <code>None</code>.
       </p>
       </li>
       <li>
       <p>
       <b> <code>TotalErrorRate</code> </b> - The percentage of all viewer requests for which the response's HTTP
       status code was 4xx or 5xx.
       </p>
       <p>
       <code>Statistics</code>: The most useful statistic is <code>Average</code>.
       </p>
       <p>
       <code>Unit</code>: The published unit is <code>Percent</code>.
       </p>
       </li>
       <li>
       <p>
       <b> <code>4xxErrorRate</code> </b> - The percentage of all viewer requests for which the response's HTTP
       status cod was 4xx. In these cases, the client or client viewer may have made an error. For example, a
       status code of 404 (Not Found) means that the client requested an object that could not be found.
       </p>
       <p>
       <code>Statistics</code>: The most useful statistic is <code>Average</code>.
       </p>
       <p>
       <code>Unit</code>: The published unit is <code>Percent</code>.
       </p>
       </li>
       <li>
       <p>
       <b> <code>5xxErrorRate</code> </b> - The percentage of all viewer requests for which the response's HTTP
       status code was 5xx. In these cases, the origin server did not satisfy the requests. For example, a status
       code of 503 (Service Unavailable) means that the origin server is currently unavailable.
       </p>
       <p>
       <code>Statistics</code>: The most useful statistic is <code>Average</code>.
       </p>
       <p>
       <code>Unit</code>: The published unit is <code>Percent</code>.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
@see DistributionMetricName
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/GetDistributionMetricDataRequest.java