/** * 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 GetInsightSelectorsResult { public: AWS_CLOUDTRAIL_API GetInsightSelectorsResult(); AWS_CLOUDTRAIL_API GetInsightSelectorsResult(const Aws::AmazonWebServiceResult& result); AWS_CLOUDTRAIL_API GetInsightSelectorsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

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

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

The Amazon Resource Name (ARN) of a trail for which you want to get 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 get 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 get 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 get Insights * selectors.

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

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

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

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

*/ inline GetInsightSelectorsResult& WithTrailARN(const char* value) { SetTrailARN(value); return *this;} /** *

A JSON string that contains the insight types you want to log on a trail. In * this release, ApiErrorRateInsight and * ApiCallRateInsight are supported as insight types.

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

A JSON string that contains the insight types you want to log on a trail. In * this release, ApiErrorRateInsight and * ApiCallRateInsight are supported as insight types.

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

A JSON string that contains the insight types you want to log on a trail. In * this release, ApiErrorRateInsight and * ApiCallRateInsight are supported as insight types.

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

A JSON string that contains the insight types you want to log on a trail. In * this release, ApiErrorRateInsight and * ApiCallRateInsight are supported as insight types.

*/ inline GetInsightSelectorsResult& WithInsightSelectors(const Aws::Vector& value) { SetInsightSelectors(value); return *this;} /** *

A JSON string that contains the insight types you want to log on a trail. In * this release, ApiErrorRateInsight and * ApiCallRateInsight are supported as insight types.

*/ inline GetInsightSelectorsResult& 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. In * this release, ApiErrorRateInsight and * ApiCallRateInsight are supported as insight types.

*/ inline GetInsightSelectorsResult& AddInsightSelectors(const InsightSelector& value) { m_insightSelectors.push_back(value); return *this; } /** *

A JSON string that contains the insight types you want to log on a trail. In * this release, ApiErrorRateInsight and * ApiCallRateInsight are supported as insight types.

*/ inline GetInsightSelectorsResult& 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 GetInsightSelectorsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetInsightSelectorsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetInsightSelectorsResult& 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