public void setMetricName(String metricName) {
        this.metricName = metricName;
    }
<p>
The metric for which you want to return information.
</p>
<p>
Valid load balancer 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>ClientTLSNegotiationErrorCount</code> </b> - The number of TLS connections initiated by the client that
did not establish a session with the load balancer due to a TLS error generated by the load balancer. Possible
causes include a mismatch of ciphers or protocols.
</p>
<p>
<code>Statistics</code>: The most useful statistic is <code>Sum</code>.
</p>
<p>
<code>Unit</code>: The published unit is <code>Count</code>.
</p>
</li>
<li>
<p>
<b> <code>HealthyHostCount</code> </b> - The number of target instances that are considered healthy.
</p>
<p>
<code>Statistics</code>: The most useful statistic are <code>Average</code>, <code>Minimum</code>, and
<code>Maximum</code>.
</p>
<p>
<code>Unit</code>: The published unit is <code>Count</code>.
</p>
</li>
<li>
<p>
<b> <code>HTTPCode_Instance_2XX_Count</code> </b> - The number of HTTP 2XX response codes generated by the target
instances. This does not include any response codes generated by the load balancer.
</p>
<p>
<code>Statistics</code>: The most useful statistic is <code>Sum</code>. Note that <code>Minimum</code>,
<code>Maximum</code>, and <code>Average</code> all return <code>1</code>.
</p>
<p>
<code>Unit</code>: The published unit is <code>Count</code>.
</p>
</li>
<li>
<p>
<b> <code>HTTPCode_Instance_3XX_Count</code> </b> - The number of HTTP 3XX response codes generated by the target
instances. This does not include any response codes generated by the load balancer.
</p>
<p>
<code>Statistics</code>: The most useful statistic is <code>Sum</code>. Note that <code>Minimum</code>,
<code>Maximum</code>, and <code>Average</code> all return <code>1</code>.
</p>
<p>
<code>Unit</code>: The published unit is <code>Count</code>.
</p>
</li>
<li>
<p>
<b> <code>HTTPCode_Instance_4XX_Count</code> </b> - The number of HTTP 4XX response codes generated by the target
instances. This does not include any response codes generated by the load balancer.
</p>
<p>
<code>Statistics</code>: The most useful statistic is <code>Sum</code>. Note that <code>Minimum</code>,
<code>Maximum</code>, and <code>Average</code> all return <code>1</code>.
</p>
<p>
<code>Unit</code>: The published unit is <code>Count</code>.
</p>
</li>
<li>
<p>
<b> <code>HTTPCode_Instance_5XX_Count</code> </b> - The number of HTTP 5XX response codes generated by the target
instances. This does not include any response codes generated by the load balancer.
</p>
<p>
<code>Statistics</code>: The most useful statistic is <code>Sum</code>. Note that <code>Minimum</code>,
<code>Maximum</code>, and <code>Average</code> all return <code>1</code>.
</p>
<p>
<code>Unit</code>: The published unit is <code>Count</code>.
</p>
</li>
<li>
<p>
<b> <code>HTTPCode_LB_4XX_Count</code> </b> - The number of HTTP 4XX client error codes that originated from the
load balancer. Client errors are generated when requests are malformed or incomplete. These requests were not
received by the target instance. This count does not include response codes generated by the target instances.
</p>
<p>
<code>Statistics</code>: The most useful statistic is <code>Sum</code>. Note that <code>Minimum</code>,
<code>Maximum</code>, and <code>Average</code> all return <code>1</code>.
</p>
<p>
<code>Unit</code>: The published unit is <code>Count</code>.
</p>
</li>
<li>
<p>
<b> <code>HTTPCode_LB_5XX_Count</code> </b> - The number of HTTP 5XX server error codes that originated from the
load balancer. This does not include any response codes generated by the target instance. This metric is reported
if there are no healthy instances attached to the load balancer, or if the request rate exceeds the capacity of
the instances (spillover) or the load balancer.
</p>
<p>
<code>Statistics</code>: The most useful statistic is <code>Sum</code>. Note that <code>Minimum</code>,
<code>Maximum</code>, and <code>Average</code> all return <code>1</code>.
</p>
<p>
<code>Unit</code>: The published unit is <code>Count</code>.
</p>
</li>
<li>
<p>
<b> <code>InstanceResponseTime</code> </b> - The time elapsed, in seconds, after the request leaves the load
balancer until a response from the target instance is received.
</p>
<p>
<code>Statistics</code>: The most useful statistic is <code>Average</code>.
</p>
<p>
<code>Unit</code>: The published unit is <code>Seconds</code>.
</p>
</li>
<li>
<p>
<b> <code>RejectedConnectionCount</code> </b> - The number of connections that were rejected because the load
balancer had reached its maximum number of connections.
</p>
<p>
<code>Statistics</code>: The most useful statistic is <code>Sum</code>.
</p>
<p>
<code>Unit</code>: The published unit is <code>Count</code>.
</p>
</li>
<li>
<p>
<b> <code>RequestCount</code> </b> - The number of requests processed over IPv4. This count includes only the
requests with a response generated by a target instance of the load balancer.
</p>
<p>
<code>Statistics</code>: The most useful statistic is <code>Sum</code>. Note that <code>Minimum</code>,
<code>Maximum</code>, and <code>Average</code> all return <code>1</code>.
</p>
<p>
<code>Unit</code>: The published unit is <code>Count</code>.
</p>
</li>
<li>
<p>
<b> <code>UnhealthyHostCount</code> </b> - The number of target instances that are considered unhealthy.
</p>
<p>
<code>Statistics</code>: The most useful statistic are <code>Average</code>, <code>Minimum</code>, and
<code>Maximum</code>.
</p>
<p>
<code>Unit</code>: The published unit is <code>Count</code>.
</p>
</li>
</ul>

@param metricName
       The metric for which you want to return information.</p>
       <p>
       Valid load balancer 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>ClientTLSNegotiationErrorCount</code> </b> - The number of TLS connections initiated by the
       client that did not establish a session with the load balancer due to a TLS error generated by the load
       balancer. Possible causes include a mismatch of ciphers or protocols.
       </p>
       <p>
       <code>Statistics</code>: The most useful statistic is <code>Sum</code>.
       </p>
       <p>
       <code>Unit</code>: The published unit is <code>Count</code>.
       </p>
       </li>
       <li>
       <p>
       <b> <code>HealthyHostCount</code> </b> - The number of target instances that are considered healthy.
       </p>
       <p>
       <code>Statistics</code>: The most useful statistic are <code>Average</code>, <code>Minimum</code>, and
       <code>Maximum</code>.
       </p>
       <p>
       <code>Unit</code>: The published unit is <code>Count</code>.
       </p>
       </li>
       <li>
       <p>
       <b> <code>HTTPCode_Instance_2XX_Count</code> </b> - The number of HTTP 2XX response codes generated by the
       target instances. This does not include any response codes generated by the load balancer.
       </p>
       <p>
       <code>Statistics</code>: The most useful statistic is <code>Sum</code>. Note that <code>Minimum</code>,
       <code>Maximum</code>, and <code>Average</code> all return <code>1</code>.
       </p>
       <p>
       <code>Unit</code>: The published unit is <code>Count</code>.
       </p>
       </li>
       <li>
       <p>
       <b> <code>HTTPCode_Instance_3XX_Count</code> </b> - The number of HTTP 3XX response codes generated by the
       target instances. This does not include any response codes generated by the load balancer.
       </p>
       <p>
       <code>Statistics</code>: The most useful statistic is <code>Sum</code>. Note that <code>Minimum</code>,
       <code>Maximum</code>, and <code>Average</code> all return <code>1</code>.
       </p>
       <p>
       <code>Unit</code>: The published unit is <code>Count</code>.
       </p>
       </li>
       <li>
       <p>
       <b> <code>HTTPCode_Instance_4XX_Count</code> </b> - The number of HTTP 4XX response codes generated by the
       target instances. This does not include any response codes generated by the load balancer.
       </p>
       <p>
       <code>Statistics</code>: The most useful statistic is <code>Sum</code>. Note that <code>Minimum</code>,
       <code>Maximum</code>, and <code>Average</code> all return <code>1</code>.
       </p>
       <p>
       <code>Unit</code>: The published unit is <code>Count</code>.
       </p>
       </li>
       <li>
       <p>
       <b> <code>HTTPCode_Instance_5XX_Count</code> </b> - The number of HTTP 5XX response codes generated by the
       target instances. This does not include any response codes generated by the load balancer.
       </p>
       <p>
       <code>Statistics</code>: The most useful statistic is <code>Sum</code>. Note that <code>Minimum</code>,
       <code>Maximum</code>, and <code>Average</code> all return <code>1</code>.
       </p>
       <p>
       <code>Unit</code>: The published unit is <code>Count</code>.
       </p>
       </li>
       <li>
       <p>
       <b> <code>HTTPCode_LB_4XX_Count</code> </b> - The number of HTTP 4XX client error codes that originated
       from the load balancer. Client errors are generated when requests are malformed or incomplete. These
       requests were not received by the target instance. This count does not include response codes generated by
       the target instances.
       </p>
       <p>
       <code>Statistics</code>: The most useful statistic is <code>Sum</code>. Note that <code>Minimum</code>,
       <code>Maximum</code>, and <code>Average</code> all return <code>1</code>.
       </p>
       <p>
       <code>Unit</code>: The published unit is <code>Count</code>.
       </p>
       </li>
       <li>
       <p>
       <b> <code>HTTPCode_LB_5XX_Count</code> </b> - The number of HTTP 5XX server error codes that originated
       from the load balancer. This does not include any response codes generated by the target instance. This
       metric is reported if there are no healthy instances attached to the load balancer, or if the request rate
       exceeds the capacity of the instances (spillover) or the load balancer.
       </p>
       <p>
       <code>Statistics</code>: The most useful statistic is <code>Sum</code>. Note that <code>Minimum</code>,
       <code>Maximum</code>, and <code>Average</code> all return <code>1</code>.
       </p>
       <p>
       <code>Unit</code>: The published unit is <code>Count</code>.
       </p>
       </li>
       <li>
       <p>
       <b> <code>InstanceResponseTime</code> </b> - The time elapsed, in seconds, after the request leaves the
       load balancer until a response from the target instance is received.
       </p>
       <p>
       <code>Statistics</code>: The most useful statistic is <code>Average</code>.
       </p>
       <p>
       <code>Unit</code>: The published unit is <code>Seconds</code>.
       </p>
       </li>
       <li>
       <p>
       <b> <code>RejectedConnectionCount</code> </b> - The number of connections that were rejected because the
       load balancer had reached its maximum number of connections.
       </p>
       <p>
       <code>Statistics</code>: The most useful statistic is <code>Sum</code>.
       </p>
       <p>
       <code>Unit</code>: The published unit is <code>Count</code>.
       </p>
       </li>
       <li>
       <p>
       <b> <code>RequestCount</code> </b> - The number of requests processed over IPv4. This count includes only
       the requests with a response generated by a target instance of the load balancer.
       </p>
       <p>
       <code>Statistics</code>: The most useful statistic is <code>Sum</code>. Note that <code>Minimum</code>,
       <code>Maximum</code>, and <code>Average</code> all return <code>1</code>.
       </p>
       <p>
       <code>Unit</code>: The published unit is <code>Count</code>.
       </p>
       </li>
       <li>
       <p>
       <b> <code>UnhealthyHostCount</code> </b> - The number of target instances that are considered unhealthy.
       </p>
       <p>
       <code>Statistics</code>: The most useful statistic are <code>Average</code>, <code>Minimum</code>, and
       <code>Maximum</code>.
       </p>
       <p>
       <code>Unit</code>: The published unit is <code>Count</code>.
       </p>
       </li>
@see LoadBalancerMetricName
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/GetLoadBalancerMetricDataRequest.java