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

The specified trail ARN that has the event selectors.

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

The specified trail ARN that has the event selectors.

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

The specified trail ARN that has the event selectors.

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

The specified trail ARN that has the event selectors.

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

The specified trail ARN that has the event selectors.

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

The specified trail ARN that has the event selectors.

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

The specified trail ARN that has the event selectors.

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

The event selectors that are configured for the trail.

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

The event selectors that are configured for the trail.

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

The event selectors that are configured for the trail.

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

The event selectors that are configured for the trail.

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

The event selectors that are configured for the trail.

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

The event selectors that are configured for the trail.

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

The event selectors that are configured for the trail.

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

The advanced event selectors that are configured for the trail.

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

The advanced event selectors that are configured for the trail.

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

The advanced event selectors that are configured for the trail.

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

The advanced event selectors that are configured for the trail.

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

The advanced event selectors that are configured for the trail.

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

The advanced event selectors that are configured for the trail.

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

The advanced event selectors that are configured for the trail.

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