/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace CloudTrail { namespace Model { /** */ class PutInsightSelectorsRequest : public CloudTrailRequest { public: AWS_CLOUDTRAIL_API PutInsightSelectorsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "PutInsightSelectors"; } AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override; AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the CloudTrail trail for which you want to change or add Insights * selectors.

*/ inline const Aws::String& GetTrailName() const{ return m_trailName; } /** *

The name of the CloudTrail trail for which you want to change or add Insights * selectors.

*/ inline bool TrailNameHasBeenSet() const { return m_trailNameHasBeenSet; } /** *

The name of the CloudTrail trail for which you want to change or add Insights * selectors.

*/ inline void SetTrailName(const Aws::String& value) { m_trailNameHasBeenSet = true; m_trailName = value; } /** *

The name of the CloudTrail trail for which you want to change or add Insights * selectors.

*/ inline void SetTrailName(Aws::String&& value) { m_trailNameHasBeenSet = true; m_trailName = std::move(value); } /** *

The name of the CloudTrail trail for which you want to change or add Insights * selectors.

*/ inline void SetTrailName(const char* value) { m_trailNameHasBeenSet = true; m_trailName.assign(value); } /** *

The name of the CloudTrail trail for which you want to change or add Insights * selectors.

*/ inline PutInsightSelectorsRequest& WithTrailName(const Aws::String& value) { SetTrailName(value); return *this;} /** *

The name of the CloudTrail trail for which you want to change or add Insights * selectors.

*/ inline PutInsightSelectorsRequest& WithTrailName(Aws::String&& value) { SetTrailName(std::move(value)); return *this;} /** *

The name of the CloudTrail trail for which you want to change or add Insights * selectors.

*/ inline PutInsightSelectorsRequest& WithTrailName(const char* value) { SetTrailName(value); 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.

*/ inline const Aws::Vector& GetInsightSelectors() const{ return m_insightSelectors; } /** *

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.

*/ inline bool InsightSelectorsHasBeenSet() const { return m_insightSelectorsHasBeenSet; } /** *

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.

*/ inline void SetInsightSelectors(const Aws::Vector& value) { m_insightSelectorsHasBeenSet = true; m_insightSelectors = value; } /** *

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.

*/ inline void SetInsightSelectors(Aws::Vector&& value) { m_insightSelectorsHasBeenSet = true; m_insightSelectors = std::move(value); } /** *

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.

*/ inline PutInsightSelectorsRequest& WithInsightSelectors(const Aws::Vector& value) { SetInsightSelectors(value); 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.

*/ inline PutInsightSelectorsRequest& WithInsightSelectors(Aws::Vector&& value) { SetInsightSelectors(std::move(value)); 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.

*/ inline PutInsightSelectorsRequest& AddInsightSelectors(const InsightSelector& value) { m_insightSelectorsHasBeenSet = true; m_insightSelectors.push_back(value); 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.

*/ inline PutInsightSelectorsRequest& AddInsightSelectors(InsightSelector&& value) { m_insightSelectorsHasBeenSet = true; m_insightSelectors.push_back(std::move(value)); return *this; } private: Aws::String m_trailName; bool m_trailNameHasBeenSet = false; Aws::Vector m_insightSelectors; bool m_insightSelectorsHasBeenSet = false; }; } // namespace Model } // namespace CloudTrail } // namespace Aws