AWS SDK for C++

AWS SDK for C++ Version 1.11.851

Loading...
Searching...
No Matches
ConfigurationRecorder.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/config/model/RecordingGroup.h>
9#include <aws/config/model/RecordingMode.h>
10#include <aws/config/model/RecordingScope.h>
11#include <aws/config/model/ScopeConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ConfigService {
24namespace Model {
25
36 public:
37 AWS_CONFIGSERVICE_API ConfigurationRecorder() = default;
38 AWS_CONFIGSERVICE_API ConfigurationRecorder(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetArn() const { return m_arn; }
47 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
48 template <typename ArnT = Aws::String>
49 void SetArn(ArnT&& value) {
50 m_arnHasBeenSet = true;
51 m_arn = std::forward<ArnT>(value);
52 }
53 template <typename ArnT = Aws::String>
55 SetArn(std::forward<ArnT>(value));
56 return *this;
57 }
59
61
73 inline const Aws::String& GetName() const { return m_name; }
74 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
75 template <typename NameT = Aws::String>
76 void SetName(NameT&& value) {
77 m_nameHasBeenSet = true;
78 m_name = std::forward<NameT>(value);
79 }
80 template <typename NameT = Aws::String>
82 SetName(std::forward<NameT>(value));
83 return *this;
84 }
86
88
119 inline const Aws::String& GetRoleARN() const { return m_roleARN; }
120 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
121 template <typename RoleARNT = Aws::String>
122 void SetRoleARN(RoleARNT&& value) {
123 m_roleARNHasBeenSet = true;
124 m_roleARN = std::forward<RoleARNT>(value);
125 }
126 template <typename RoleARNT = Aws::String>
128 SetRoleARN(std::forward<RoleARNT>(value));
129 return *this;
130 }
132
134
152 inline const RecordingGroup& GetRecordingGroup() const { return m_recordingGroup; }
153 inline bool RecordingGroupHasBeenSet() const { return m_recordingGroupHasBeenSet; }
154 template <typename RecordingGroupT = RecordingGroup>
155 void SetRecordingGroup(RecordingGroupT&& value) {
156 m_recordingGroupHasBeenSet = true;
157 m_recordingGroup = std::forward<RecordingGroupT>(value);
158 }
159 template <typename RecordingGroupT = RecordingGroup>
160 ConfigurationRecorder& WithRecordingGroup(RecordingGroupT&& value) {
161 SetRecordingGroup(std::forward<RecordingGroupT>(value));
162 return *this;
163 }
165
167
181 inline const RecordingMode& GetRecordingMode() const { return m_recordingMode; }
182 inline bool RecordingModeHasBeenSet() const { return m_recordingModeHasBeenSet; }
183 template <typename RecordingModeT = RecordingMode>
184 void SetRecordingMode(RecordingModeT&& value) {
185 m_recordingModeHasBeenSet = true;
186 m_recordingMode = std::forward<RecordingModeT>(value);
187 }
188 template <typename RecordingModeT = RecordingMode>
189 ConfigurationRecorder& WithRecordingMode(RecordingModeT&& value) {
190 SetRecordingMode(std::forward<RecordingModeT>(value));
191 return *this;
192 }
194
196
203 inline RecordingScope GetRecordingScope() const { return m_recordingScope; }
204 inline bool RecordingScopeHasBeenSet() const { return m_recordingScopeHasBeenSet; }
206 m_recordingScopeHasBeenSet = true;
207 m_recordingScope = value;
208 }
210 SetRecordingScope(value);
211 return *this;
212 }
214
216
220 inline const Aws::String& GetServicePrincipal() const { return m_servicePrincipal; }
221 inline bool ServicePrincipalHasBeenSet() const { return m_servicePrincipalHasBeenSet; }
222 template <typename ServicePrincipalT = Aws::String>
223 void SetServicePrincipal(ServicePrincipalT&& value) {
224 m_servicePrincipalHasBeenSet = true;
225 m_servicePrincipal = std::forward<ServicePrincipalT>(value);
226 }
227 template <typename ServicePrincipalT = Aws::String>
228 ConfigurationRecorder& WithServicePrincipal(ServicePrincipalT&& value) {
229 SetServicePrincipal(std::forward<ServicePrincipalT>(value));
230 return *this;
231 }
233
235
239 inline const Aws::String& GetConnectorArn() const { return m_connectorArn; }
240 inline bool ConnectorArnHasBeenSet() const { return m_connectorArnHasBeenSet; }
241 template <typename ConnectorArnT = Aws::String>
242 void SetConnectorArn(ConnectorArnT&& value) {
243 m_connectorArnHasBeenSet = true;
244 m_connectorArn = std::forward<ConnectorArnT>(value);
245 }
246 template <typename ConnectorArnT = Aws::String>
247 ConfigurationRecorder& WithConnectorArn(ConnectorArnT&& value) {
248 SetConnectorArn(std::forward<ConnectorArnT>(value));
249 return *this;
250 }
252
254
258 inline const ScopeConfiguration& GetScopeConfiguration() const { return m_scopeConfiguration; }
259 inline bool ScopeConfigurationHasBeenSet() const { return m_scopeConfigurationHasBeenSet; }
260 template <typename ScopeConfigurationT = ScopeConfiguration>
261 void SetScopeConfiguration(ScopeConfigurationT&& value) {
262 m_scopeConfigurationHasBeenSet = true;
263 m_scopeConfiguration = std::forward<ScopeConfigurationT>(value);
264 }
265 template <typename ScopeConfigurationT = ScopeConfiguration>
266 ConfigurationRecorder& WithScopeConfiguration(ScopeConfigurationT&& value) {
267 SetScopeConfiguration(std::forward<ScopeConfigurationT>(value));
268 return *this;
269 }
271 private:
272 Aws::String m_arn;
273
274 Aws::String m_name;
275
276 Aws::String m_roleARN;
277
278 RecordingGroup m_recordingGroup;
279
280 RecordingMode m_recordingMode;
281
282 RecordingScope m_recordingScope{RecordingScope::NOT_SET};
283
284 Aws::String m_servicePrincipal;
285
286 Aws::String m_connectorArn;
287
288 ScopeConfiguration m_scopeConfiguration;
289 bool m_arnHasBeenSet = false;
290 bool m_nameHasBeenSet = false;
291 bool m_roleARNHasBeenSet = false;
292 bool m_recordingGroupHasBeenSet = false;
293 bool m_recordingModeHasBeenSet = false;
294 bool m_recordingScopeHasBeenSet = false;
295 bool m_servicePrincipalHasBeenSet = false;
296 bool m_connectorArnHasBeenSet = false;
297 bool m_scopeConfigurationHasBeenSet = false;
298};
299
300} // namespace Model
301} // namespace ConfigService
302} // namespace Aws
ConfigurationRecorder & WithRecordingMode(RecordingModeT &&value)
ConfigurationRecorder & WithArn(ArnT &&value)
void SetScopeConfiguration(ScopeConfigurationT &&value)
ConfigurationRecorder & WithRecordingGroup(RecordingGroupT &&value)
ConfigurationRecorder & WithName(NameT &&value)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONFIGSERVICE_API ConfigurationRecorder()=default
ConfigurationRecorder & WithServicePrincipal(ServicePrincipalT &&value)
ConfigurationRecorder & WithRoleARN(RoleARNT &&value)
AWS_CONFIGSERVICE_API ConfigurationRecorder & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONFIGSERVICE_API ConfigurationRecorder(Aws::Utils::Json::JsonView jsonValue)
ConfigurationRecorder & WithScopeConfiguration(ScopeConfigurationT &&value)
const ScopeConfiguration & GetScopeConfiguration() const
ConfigurationRecorder & WithRecordingScope(RecordingScope value)
ConfigurationRecorder & WithConnectorArn(ConnectorArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue