/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CloudTrail { namespace Model { /** *

Contains configuration information about the channel.

See * Also:

AWS * API Reference

*/ class SourceConfig { public: AWS_CLOUDTRAIL_API SourceConfig(); AWS_CLOUDTRAIL_API SourceConfig(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDTRAIL_API SourceConfig& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Specifies whether the channel applies to a single Region or to all * Regions.

*/ inline bool GetApplyToAllRegions() const{ return m_applyToAllRegions; } /** *

Specifies whether the channel applies to a single Region or to all * Regions.

*/ inline bool ApplyToAllRegionsHasBeenSet() const { return m_applyToAllRegionsHasBeenSet; } /** *

Specifies whether the channel applies to a single Region or to all * Regions.

*/ inline void SetApplyToAllRegions(bool value) { m_applyToAllRegionsHasBeenSet = true; m_applyToAllRegions = value; } /** *

Specifies whether the channel applies to a single Region or to all * Regions.

*/ inline SourceConfig& WithApplyToAllRegions(bool value) { SetApplyToAllRegions(value); return *this;} /** *

The advanced event selectors that are configured for the channel.

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

The advanced event selectors that are configured for the channel.

*/ inline bool AdvancedEventSelectorsHasBeenSet() const { return m_advancedEventSelectorsHasBeenSet; } /** *

The advanced event selectors that are configured for the channel.

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

The advanced event selectors that are configured for the channel.

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

The advanced event selectors that are configured for the channel.

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

The advanced event selectors that are configured for the channel.

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

The advanced event selectors that are configured for the channel.

*/ inline SourceConfig& AddAdvancedEventSelectors(const AdvancedEventSelector& value) { m_advancedEventSelectorsHasBeenSet = true; m_advancedEventSelectors.push_back(value); return *this; } /** *

The advanced event selectors that are configured for the channel.

*/ inline SourceConfig& AddAdvancedEventSelectors(AdvancedEventSelector&& value) { m_advancedEventSelectorsHasBeenSet = true; m_advancedEventSelectors.push_back(std::move(value)); return *this; } private: bool m_applyToAllRegions; bool m_applyToAllRegionsHasBeenSet = false; Aws::Vector m_advancedEventSelectors; bool m_advancedEventSelectorsHasBeenSet = false; }; } // namespace Model } // namespace CloudTrail } // namespace Aws