* The Amazon Resource Name (ARN) of a trail for which you want to change or add Insights selectors. *
*/ private String trailARN; /** *
     * A JSON string that contains the Insights event types that you want to log on a trail. The valid Insights types in
     * this release are ApiErrorRateInsight and ApiCallRateInsight.
     * 
* The Amazon Resource Name (ARN) of a trail for which you want to change or add Insights selectors. *
* * @param trailARN * The Amazon Resource Name (ARN) of a trail for which you want to change or add Insights selectors. */ public void setTrailARN(String trailARN) { this.trailARN = trailARN; } /** ** The Amazon Resource Name (ARN) of a trail for which you want to change or add Insights selectors. *
* * @return The Amazon Resource Name (ARN) of a trail for which you want to change or add Insights selectors. */ public String getTrailARN() { return this.trailARN; } /** ** The Amazon Resource Name (ARN) of a trail for which you want to change or add Insights selectors. *
* * @param trailARN * The Amazon Resource Name (ARN) of a trail for which you want to change or add Insights selectors. * @return Returns a reference to this object so that method calls can be chained together. */ public PutInsightSelectorsResult withTrailARN(String trailARN) { setTrailARN(trailARN); return this; } /** *
     * A JSON string that contains the Insights event types that you want to log on a trail. The valid Insights types in
     * this release are ApiErrorRateInsight and ApiCallRateInsight.
     * 
ApiErrorRateInsight and ApiCallRateInsight.
     */
    public java.util.List
     * A JSON string that contains the Insights event types that you want to log on a trail. The valid Insights types in
     * this release are ApiErrorRateInsight and ApiCallRateInsight.
     * 
ApiErrorRateInsight and ApiCallRateInsight.
     */
    public void setInsightSelectors(java.util.Collection
     * A JSON string that contains the Insights event types that you want to log on a trail. The valid Insights types in
     * this release are ApiErrorRateInsight and ApiCallRateInsight.
     * 
* NOTE: 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. *
* * @param insightSelectors * A JSON string that contains the Insights event types that you want to log on a trail. The valid Insights * types in this release areApiErrorRateInsight and ApiCallRateInsight.
     * @return Returns a reference to this object so that method calls can be chained together.
     */
    public PutInsightSelectorsResult withInsightSelectors(InsightSelector... insightSelectors) {
        if (this.insightSelectors == null) {
            setInsightSelectors(new com.amazonaws.internal.SdkInternalList
     * A JSON string that contains the Insights event types that you want to log on a trail. The valid Insights types in
     * this release are ApiErrorRateInsight and ApiCallRateInsight.
     * 
ApiErrorRateInsight and ApiCallRateInsight.
     * @return Returns a reference to this object so that method calls can be chained together.
     */
    public PutInsightSelectorsResult withInsightSelectors(java.util.Collection