AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SourceConfig.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/cloudtrail/model/AdvancedEventSelector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CloudTrail
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CLOUDTRAIL_API SourceConfig();
37 AWS_CLOUDTRAIL_API SourceConfig(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDTRAIL_API SourceConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline bool GetApplyToAllRegions() const{ return m_applyToAllRegions; }
48 inline bool ApplyToAllRegionsHasBeenSet() const { return m_applyToAllRegionsHasBeenSet; }
49 inline void SetApplyToAllRegions(bool value) { m_applyToAllRegionsHasBeenSet = true; m_applyToAllRegions = value; }
50 inline SourceConfig& WithApplyToAllRegions(bool value) { SetApplyToAllRegions(value); return *this;}
52
54
57 inline const Aws::Vector<AdvancedEventSelector>& GetAdvancedEventSelectors() const{ return m_advancedEventSelectors; }
58 inline bool AdvancedEventSelectorsHasBeenSet() const { return m_advancedEventSelectorsHasBeenSet; }
59 inline void SetAdvancedEventSelectors(const Aws::Vector<AdvancedEventSelector>& value) { m_advancedEventSelectorsHasBeenSet = true; m_advancedEventSelectors = value; }
60 inline void SetAdvancedEventSelectors(Aws::Vector<AdvancedEventSelector>&& value) { m_advancedEventSelectorsHasBeenSet = true; m_advancedEventSelectors = std::move(value); }
63 inline SourceConfig& AddAdvancedEventSelectors(const AdvancedEventSelector& value) { m_advancedEventSelectorsHasBeenSet = true; m_advancedEventSelectors.push_back(value); return *this; }
64 inline SourceConfig& AddAdvancedEventSelectors(AdvancedEventSelector&& value) { m_advancedEventSelectorsHasBeenSet = true; m_advancedEventSelectors.push_back(std::move(value)); return *this; }
66 private:
67
68 bool m_applyToAllRegions;
69 bool m_applyToAllRegionsHasBeenSet = false;
70
71 Aws::Vector<AdvancedEventSelector> m_advancedEventSelectors;
72 bool m_advancedEventSelectorsHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace CloudTrail
77} // namespace Aws
void SetAdvancedEventSelectors(const Aws::Vector< AdvancedEventSelector > &value)
SourceConfig & WithAdvancedEventSelectors(Aws::Vector< AdvancedEventSelector > &&value)
const Aws::Vector< AdvancedEventSelector > & GetAdvancedEventSelectors() const
SourceConfig & WithApplyToAllRegions(bool value)
AWS_CLOUDTRAIL_API SourceConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
SourceConfig & AddAdvancedEventSelectors(const AdvancedEventSelector &value)
SourceConfig & WithAdvancedEventSelectors(const Aws::Vector< AdvancedEventSelector > &value)
SourceConfig & AddAdvancedEventSelectors(AdvancedEventSelector &&value)
AWS_CLOUDTRAIL_API SourceConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAdvancedEventSelectors(Aws::Vector< AdvancedEventSelector > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue