/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CloudTrail { namespace Model { class PutEventSelectorsResult { public: AWS_CLOUDTRAIL_API PutEventSelectorsResult(); AWS_CLOUDTRAIL_API PutEventSelectorsResult(const Aws::AmazonWebServiceResult& result); AWS_CLOUDTRAIL_API PutEventSelectorsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Specifies the ARN of the trail that was updated with event selectors. The * following is the format of a trail ARN.

* arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

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

Specifies the ARN of the trail that was updated with event selectors. The * following is the format of a trail ARN.

* arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

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

Specifies the ARN of the trail that was updated with event selectors. The * following is the format of a trail ARN.

* arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

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

Specifies the ARN of the trail that was updated with event selectors. The * following is the format of a trail ARN.

* arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

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

Specifies the ARN of the trail that was updated with event selectors. The * following is the format of a trail ARN.

* arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

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

Specifies the ARN of the trail that was updated with event selectors. The * following is the format of a trail ARN.

* arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

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

Specifies the ARN of the trail that was updated with event selectors. The * following is the format of a trail ARN.

* arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

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

Specifies the event selectors configured for your trail.

*/ inline const Aws::Vector& GetEventSelectors() const{ return m_eventSelectors; } /** *

Specifies the event selectors configured for your trail.

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

Specifies the event selectors configured for your trail.

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

Specifies the event selectors configured for your trail.

*/ inline PutEventSelectorsResult& WithEventSelectors(const Aws::Vector& value) { SetEventSelectors(value); return *this;} /** *

Specifies the event selectors configured for your trail.

*/ inline PutEventSelectorsResult& WithEventSelectors(Aws::Vector&& value) { SetEventSelectors(std::move(value)); return *this;} /** *

Specifies the event selectors configured for your trail.

*/ inline PutEventSelectorsResult& AddEventSelectors(const EventSelector& value) { m_eventSelectors.push_back(value); return *this; } /** *

Specifies the event selectors configured for your trail.

*/ inline PutEventSelectorsResult& AddEventSelectors(EventSelector&& value) { m_eventSelectors.push_back(std::move(value)); return *this; } /** *

Specifies the advanced event selectors configured for your trail.

*/ inline const Aws::Vector& GetAdvancedEventSelectors() const{ return m_advancedEventSelectors; } /** *

Specifies the advanced event selectors configured for your trail.

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

Specifies the advanced event selectors configured for your trail.

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

Specifies the advanced event selectors configured for your trail.

*/ inline PutEventSelectorsResult& WithAdvancedEventSelectors(const Aws::Vector& value) { SetAdvancedEventSelectors(value); return *this;} /** *

Specifies the advanced event selectors configured for your trail.

*/ inline PutEventSelectorsResult& WithAdvancedEventSelectors(Aws::Vector&& value) { SetAdvancedEventSelectors(std::move(value)); return *this;} /** *

Specifies the advanced event selectors configured for your trail.

*/ inline PutEventSelectorsResult& AddAdvancedEventSelectors(const AdvancedEventSelector& value) { m_advancedEventSelectors.push_back(value); return *this; } /** *

Specifies the advanced event selectors configured for your trail.

*/ inline PutEventSelectorsResult& AddAdvancedEventSelectors(AdvancedEventSelector&& value) { m_advancedEventSelectors.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 PutEventSelectorsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline PutEventSelectorsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline PutEventSelectorsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_trailARN; Aws::Vector m_eventSelectors; Aws::Vector m_advancedEventSelectors; Aws::String m_requestId; }; } // namespace Model } // namespace CloudTrail } // namespace Aws