/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CloudTrail { namespace Model { class PutInsightSelectorsResult { public: AWS_CLOUDTRAIL_API PutInsightSelectorsResult(); AWS_CLOUDTRAIL_API PutInsightSelectorsResult(const Aws::AmazonWebServiceResult& result); AWS_CLOUDTRAIL_API PutInsightSelectorsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Amazon Resource Name (ARN) of a trail for which you want to change or add * Insights selectors.

*/ inline const Aws::String& GetTrailARN() const{ return m_trailARN; } /** *

The Amazon Resource Name (ARN) of a trail for which you want to change or add * Insights selectors.

*/ inline void SetTrailARN(const Aws::String& value) { m_trailARN = value; } /** *

The Amazon Resource Name (ARN) of a trail for which you want to change or add * Insights selectors.

*/ inline void SetTrailARN(Aws::String&& value) { m_trailARN = std::move(value); } /** *

The Amazon Resource Name (ARN) of a trail for which you want to change or add * Insights selectors.

*/ inline void SetTrailARN(const char* value) { m_trailARN.assign(value); } /** *

The Amazon Resource Name (ARN) of a trail for which you want to change or add * Insights selectors.

*/ inline PutInsightSelectorsResult& WithTrailARN(const Aws::String& value) { SetTrailARN(value); return *this;} /** *

The Amazon Resource Name (ARN) of a trail for which you want to change or add * Insights selectors.

*/ inline PutInsightSelectorsResult& WithTrailARN(Aws::String&& value) { SetTrailARN(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of a trail for which you want to change or add * Insights selectors.

*/ inline PutInsightSelectorsResult& WithTrailARN(const char* value) { SetTrailARN(value); 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.

*/ inline const Aws::Vector& GetInsightSelectors() const{ return m_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 are * ApiErrorRateInsight and ApiCallRateInsight.

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

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.

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

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.

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

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

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

*/ inline PutInsightSelectorsResult& AddInsightSelectors(InsightSelector&& value) { m_insightSelectors.push_back(std::move(value)); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline PutInsightSelectorsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline PutInsightSelectorsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline PutInsightSelectorsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_trailARN; Aws::Vector m_insightSelectors; Aws::String m_requestId; }; } // namespace Model } // namespace CloudTrail } // namespace Aws