@Deprecated
    public UpdateSecurityProfileRequest withAdditionalMetricsToRetain(String... additionalMetricsToRetain) {
        if (this.additionalMetricsToRetain == null) {
            setAdditionalMetricsToRetain(new java.util.ArrayList<String>(additionalMetricsToRetain.length));
        }
        for (String ele : additionalMetricsToRetain) {
            this.additionalMetricsToRetain.add(ele);
        }
        return this;
    }
<p>
<i>Please use <a>UpdateSecurityProfileRequest$additionalMetricsToRetainV2</a> instead.</i>
</p>
<p>
A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the
profile's <code>behaviors</code>, but it is also retained for any metric specified here. Can be used with custom
metrics; cannot be used with dimensions.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAdditionalMetricsToRetain(java.util.Collection)} or
{@link #withAdditionalMetricsToRetain(java.util.Collection)} if you want to override the existing values.
</p>

@param additionalMetricsToRetain
       <i>Please use <a>UpdateSecurityProfileRequest$additionalMetricsToRetainV2</a> instead.</i> </p>
       <p>
       A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the
       profile's <code>behaviors</code>, but it is also retained for any metric specified here. Can be used with
       custom metrics; cannot be used with dimensions.
@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/UpdateSecurityProfileRequest.java