public PutInsightSelectorsRequest withInsightSelectors(InsightSelector... insightSelectors) {
        if (this.insightSelectors == null) {
            setInsightSelectors(new com.amazonaws.internal.SdkInternalList<InsightSelector>(insightSelectors.length));
        }
        for (InsightSelector ele : insightSelectors) {
            this.insightSelectors.add(ele);
        }
        return this;
    }
<p>
A JSON string that contains the Insights types you want to log on a trail or event data store.
<code>ApiCallRateInsight</code> and <code>ApiErrorRateInsight</code> are valid Insight types.
</p>
<p>
The <code>ApiCallRateInsight</code> Insights type analyzes write-only management API calls that are aggregated
per minute against a baseline API call volume.
</p>
<p>
The <code>ApiErrorRateInsight</code> Insights type analyzes management API calls that result in error codes. The
error is shown if the API call is unsuccessful.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setInsightSelectors(java.util.Collection)} or {@link #withInsightSelectors(java.util.Collection)} if you
want to override the existing values.
</p>

@param insightSelectors
       A JSON string that contains the Insights types you want to log on a trail or event data store.
       <code>ApiCallRateInsight</code> and <code>ApiErrorRateInsight</code> are valid Insight types.</p>
       <p>
       The <code>ApiCallRateInsight</code> Insights type analyzes write-only management API calls that are
       aggregated per minute against a baseline API call volume.
       </p>
       <p>
       The <code>ApiErrorRateInsight</code> Insights type analyzes management API calls that result in error
       codes. The error is shown if the API call is unsuccessful.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudtrail/src/main/java/com/amazonaws/services/cloudtrail/model/PutInsightSelectorsRequest.java