public ListFleetMetricsResult withFleetMetrics(FleetMetricNameAndArn... fleetMetrics) {
        if (this.fleetMetrics == null) {
            setFleetMetrics(new java.util.ArrayList<FleetMetricNameAndArn>(fleetMetrics.length));
        }
        for (FleetMetricNameAndArn ele : fleetMetrics) {
            this.fleetMetrics.add(ele);
        }
        return this;
    }
<p>
The list of fleet metrics objects.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setFleetMetrics(java.util.Collection)} or {@link #withFleetMetrics(java.util.Collection)} if you want to
override the existing values.
</p>

@param fleetMetrics
       The list of fleet metrics objects.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/ListFleetMetricsResult.java