AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
AwsLogSourceConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securitylake/SecurityLake_EXPORTS.h>
10#include <aws/securitylake/model/AwsLogSourceName.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityLake {
22namespace Model {
23
32 public:
33 AWS_SECURITYLAKE_API AwsLogSourceConfiguration() = default;
36 AWS_SECURITYLAKE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::Vector<Aws::String>& GetAccounts() const { return m_accounts; }
44 inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; }
45 template <typename AccountsT = Aws::Vector<Aws::String>>
46 void SetAccounts(AccountsT&& value) {
47 m_accountsHasBeenSet = true;
48 m_accounts = std::forward<AccountsT>(value);
49 }
50 template <typename AccountsT = Aws::Vector<Aws::String>>
52 SetAccounts(std::forward<AccountsT>(value));
53 return *this;
54 }
55 template <typename AccountsT = Aws::String>
57 m_accountsHasBeenSet = true;
58 m_accounts.emplace_back(std::forward<AccountsT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
68 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
69 template <typename RegionsT = Aws::Vector<Aws::String>>
70 void SetRegions(RegionsT&& value) {
71 m_regionsHasBeenSet = true;
72 m_regions = std::forward<RegionsT>(value);
73 }
74 template <typename RegionsT = Aws::Vector<Aws::String>>
76 SetRegions(std::forward<RegionsT>(value));
77 return *this;
78 }
79 template <typename RegionsT = Aws::String>
81 m_regionsHasBeenSet = true;
82 m_regions.emplace_back(std::forward<RegionsT>(value));
83 return *this;
84 }
86
88
91 inline AwsLogSourceName GetSourceName() const { return m_sourceName; }
92 inline bool SourceNameHasBeenSet() const { return m_sourceNameHasBeenSet; }
93 inline void SetSourceName(AwsLogSourceName value) {
94 m_sourceNameHasBeenSet = true;
95 m_sourceName = value;
96 }
98 SetSourceName(value);
99 return *this;
100 }
102
104
107 inline const Aws::String& GetSourceVersion() const { return m_sourceVersion; }
108 inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; }
109 template <typename SourceVersionT = Aws::String>
110 void SetSourceVersion(SourceVersionT&& value) {
111 m_sourceVersionHasBeenSet = true;
112 m_sourceVersion = std::forward<SourceVersionT>(value);
113 }
114 template <typename SourceVersionT = Aws::String>
116 SetSourceVersion(std::forward<SourceVersionT>(value));
117 return *this;
118 }
120 private:
121 Aws::Vector<Aws::String> m_accounts;
122
123 Aws::Vector<Aws::String> m_regions;
124
126
127 Aws::String m_sourceVersion;
128 bool m_accountsHasBeenSet = false;
129 bool m_regionsHasBeenSet = false;
130 bool m_sourceNameHasBeenSet = false;
131 bool m_sourceVersionHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace SecurityLake
136} // namespace Aws
const Aws::Vector< Aws::String > & GetAccounts() const
AwsLogSourceConfiguration & AddRegions(RegionsT &&value)
AwsLogSourceConfiguration & WithRegions(RegionsT &&value)
const Aws::Vector< Aws::String > & GetRegions() const
AWS_SECURITYLAKE_API AwsLogSourceConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYLAKE_API AwsLogSourceConfiguration()=default
AwsLogSourceConfiguration & AddAccounts(AccountsT &&value)
AwsLogSourceConfiguration & WithSourceVersion(SourceVersionT &&value)
AwsLogSourceConfiguration & WithSourceName(AwsLogSourceName value)
AWS_SECURITYLAKE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYLAKE_API AwsLogSourceConfiguration(Aws::Utils::Json::JsonView jsonValue)
AwsLogSourceConfiguration & WithAccounts(AccountsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue