public BatchCreateRumMetricDefinitionsRequest withMetricDefinitions(MetricDefinitionRequest... metricDefinitions) {
        if (this.metricDefinitions == null) {
            setMetricDefinitions(new java.util.ArrayList<MetricDefinitionRequest>(metricDefinitions.length));
        }
        for (MetricDefinitionRequest ele : metricDefinitions) {
            this.metricDefinitions.add(ele);
        }
        return this;
    }
<p>
An array of structures which define the metrics that you want to send.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setMetricDefinitions(java.util.Collection)} or {@link #withMetricDefinitions(java.util.Collection)} if
you want to override the existing values.
</p>

@param metricDefinitions
       An array of structures which define the metrics that you want to send.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudwatchrum/src/main/java/com/amazonaws/services/cloudwatchrum/model/BatchCreateRumMetricDefinitionsRequest.java