/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.cloudtrail.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PutInsightSelectorsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the CloudTrail trail for which you want to change or add Insights selectors. *
*/ private String trailName; /** *
* A JSON string that contains the insight types you want to log on a trail. ApiCallRateInsight
and
* ApiErrorRateInsight
are valid Insight types.
*
* The ApiCallRateInsight
Insights type analyzes write-only management API calls that are aggregated
* per minute against a baseline API call volume.
*
* The ApiErrorRateInsight
Insights type analyzes management API calls that result in error codes. The
* error is shown if the API call is unsuccessful.
*
* The name of the CloudTrail trail for which you want to change or add Insights selectors. *
* * @param trailName * The name of the CloudTrail trail for which you want to change or add Insights selectors. */ public void setTrailName(String trailName) { this.trailName = trailName; } /** ** The name of the CloudTrail trail for which you want to change or add Insights selectors. *
* * @return The name of the CloudTrail trail for which you want to change or add Insights selectors. */ public String getTrailName() { return this.trailName; } /** ** The name of the CloudTrail trail for which you want to change or add Insights selectors. *
* * @param trailName * The name of the CloudTrail 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 PutInsightSelectorsRequest withTrailName(String trailName) { setTrailName(trailName); return this; } /** *
* A JSON string that contains the insight types you want to log on a trail. ApiCallRateInsight
and
* ApiErrorRateInsight
are valid Insight types.
*
* The ApiCallRateInsight
Insights type analyzes write-only management API calls that are aggregated
* per minute against a baseline API call volume.
*
* The ApiErrorRateInsight
Insights type analyzes management API calls that result in error codes. The
* error is shown if the API call is unsuccessful.
*
ApiCallRateInsight
* and ApiErrorRateInsight
are valid Insight types.
*
* The ApiCallRateInsight
Insights type analyzes write-only management API calls that are
* aggregated per minute against a baseline API call volume.
*
* The
* A JSON string that contains the insight types you want to log on a trail.
* The
* The ApiErrorRateInsight
Insights type analyzes management API calls that result in error
* codes. The error is shown if the API call is unsuccessful.
*/
public java.util.ListApiCallRateInsight
and
* ApiErrorRateInsight
are valid Insight types.
* ApiCallRateInsight
Insights type analyzes write-only management API calls that are aggregated
* per minute against a baseline API call volume.
* ApiErrorRateInsight
Insights type analyzes management API calls that result in error codes. The
* error is shown if the API call is unsuccessful.
* ApiCallRateInsight
* and ApiErrorRateInsight
are valid Insight types.
* The ApiCallRateInsight
Insights type analyzes write-only management API calls that are
* aggregated per minute against a baseline API call volume.
*
* The
* A JSON string that contains the insight types you want to log on a trail.
* The
* The
* 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.
* ApiErrorRateInsight
Insights type analyzes management API calls that result in error
* codes. The error is shown if the API call is unsuccessful.
*/
public void setInsightSelectors(java.util.CollectionApiCallRateInsight
and
* ApiErrorRateInsight
are valid Insight types.
* ApiCallRateInsight
Insights type analyzes write-only management API calls that are aggregated
* per minute against a baseline API call volume.
* ApiErrorRateInsight
Insights type analyzes management API calls that result in error codes. The
* error is shown if the API call is unsuccessful.
* ApiCallRateInsight
* and ApiErrorRateInsight
are valid Insight types.
* The ApiCallRateInsight
Insights type analyzes write-only management API calls that are
* aggregated per minute against a baseline API call volume.
*
* The
* A JSON string that contains the insight types you want to log on a trail.
* The
* The ApiErrorRateInsight
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.
*/
public PutInsightSelectorsRequest withInsightSelectors(InsightSelector... insightSelectors) {
if (this.insightSelectors == null) {
setInsightSelectors(new com.amazonaws.internal.SdkInternalListApiCallRateInsight
and
* ApiErrorRateInsight
are valid Insight types.
* ApiCallRateInsight
Insights type analyzes write-only management API calls that are aggregated
* per minute against a baseline API call volume.
* ApiErrorRateInsight
Insights type analyzes management API calls that result in error codes. The
* error is shown if the API call is unsuccessful.
* ApiCallRateInsight
* and ApiErrorRateInsight
are valid Insight types.
* The ApiCallRateInsight
Insights type analyzes write-only management API calls that are
* aggregated per minute against a baseline API call volume.
*
* The ApiErrorRateInsight
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.
*/
public PutInsightSelectorsRequest withInsightSelectors(java.util.Collection