@Deprecated
    public UpdateSecurityProfileResult withAdditionalMetricsToRetain(java.util.Collection<String> additionalMetricsToRetain) {
        setAdditionalMetricsToRetain(additionalMetricsToRetain);
        return this;
    }
<p>
<i>Please use <a>UpdateSecurityProfileResponse$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
security profile's <code>behaviors</code>, but it is also retained for any metric specified here.
</p>

@param additionalMetricsToRetain
       <i>Please use <a>UpdateSecurityProfileResponse$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
       security profile's <code>behaviors</code>, but it is also retained for any metric specified here.
@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/UpdateSecurityProfileResult.java