public GetInsightRuleReportResult withKeyLabels(String... keyLabels) {
        if (this.keyLabels == null) {
            setKeyLabels(new com.amazonaws.internal.SdkInternalList<String>(keyLabels.length));
        }
        for (String ele : keyLabels) {
            this.keyLabels.add(ele);
        }
        return this;
    }
<p>
An array of the strings used as the keys for this rule. The keys are the dimensions used to classify
contributors. If the rule contains more than one key, then each unique combination of values for the keys is
counted as a unique contributor.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setKeyLabels(java.util.Collection)} or {@link #withKeyLabels(java.util.Collection)} if you want to
override the existing values.
</p>

@param keyLabels
       An array of the strings used as the keys for this rule. The keys are the dimensions used to classify
       contributors. If the rule contains more than one key, then each unique combination of values for the keys
       is counted as a unique contributor.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudwatch/src/main/java/com/amazonaws/services/cloudwatch/model/GetInsightRuleReportResult.java