AWS SDK for C++

AWS SDK for C++ Version 1.11.752

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/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ConfigService {
23namespace Model {
24
35 public:
36 AWS_CONFIGSERVICE_API ConfigurationRecorder() = default;
37 AWS_CONFIGSERVICE_API ConfigurationRecorder(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetArn() const { return m_arn; }
46 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
47 template <typename ArnT = Aws::String>
48 void SetArn(ArnT&& value) {
49 m_arnHasBeenSet = true;
50 m_arn = std::forward<ArnT>(value);
51 }
52 template <typename ArnT = Aws::String>
54 SetArn(std::forward<ArnT>(value));
55 return *this;
56 }
58
60
72 inline const Aws::String& GetName() const { return m_name; }
73 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
74 template <typename NameT = Aws::String>
75 void SetName(NameT&& value) {
76 m_nameHasBeenSet = true;
77 m_name = std::forward<NameT>(value);
78 }
79 template <typename NameT = Aws::String>
81 SetName(std::forward<NameT>(value));
82 return *this;
83 }
85
87
118 inline const Aws::String& GetRoleARN() const { return m_roleARN; }
119 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
120 template <typename RoleARNT = Aws::String>
121 void SetRoleARN(RoleARNT&& value) {
122 m_roleARNHasBeenSet = true;
123 m_roleARN = std::forward<RoleARNT>(value);
124 }
125 template <typename RoleARNT = Aws::String>
127 SetRoleARN(std::forward<RoleARNT>(value));
128 return *this;
129 }
131
133
151 inline const RecordingGroup& GetRecordingGroup() const { return m_recordingGroup; }
152 inline bool RecordingGroupHasBeenSet() const { return m_recordingGroupHasBeenSet; }
153 template <typename RecordingGroupT = RecordingGroup>
154 void SetRecordingGroup(RecordingGroupT&& value) {
155 m_recordingGroupHasBeenSet = true;
156 m_recordingGroup = std::forward<RecordingGroupT>(value);
157 }
158 template <typename RecordingGroupT = RecordingGroup>
159 ConfigurationRecorder& WithRecordingGroup(RecordingGroupT&& value) {
160 SetRecordingGroup(std::forward<RecordingGroupT>(value));
161 return *this;
162 }
164
166
180 inline const RecordingMode& GetRecordingMode() const { return m_recordingMode; }
181 inline bool RecordingModeHasBeenSet() const { return m_recordingModeHasBeenSet; }
182 template <typename RecordingModeT = RecordingMode>
183 void SetRecordingMode(RecordingModeT&& value) {
184 m_recordingModeHasBeenSet = true;
185 m_recordingMode = std::forward<RecordingModeT>(value);
186 }
187 template <typename RecordingModeT = RecordingMode>
188 ConfigurationRecorder& WithRecordingMode(RecordingModeT&& value) {
189 SetRecordingMode(std::forward<RecordingModeT>(value));
190 return *this;
191 }
193
195
202 inline RecordingScope GetRecordingScope() const { return m_recordingScope; }
203 inline bool RecordingScopeHasBeenSet() const { return m_recordingScopeHasBeenSet; }
205 m_recordingScopeHasBeenSet = true;
206 m_recordingScope = value;
207 }
209 SetRecordingScope(value);
210 return *this;
211 }
213
215
219 inline const Aws::String& GetServicePrincipal() const { return m_servicePrincipal; }
220 inline bool ServicePrincipalHasBeenSet() const { return m_servicePrincipalHasBeenSet; }
221 template <typename ServicePrincipalT = Aws::String>
222 void SetServicePrincipal(ServicePrincipalT&& value) {
223 m_servicePrincipalHasBeenSet = true;
224 m_servicePrincipal = std::forward<ServicePrincipalT>(value);
225 }
226 template <typename ServicePrincipalT = Aws::String>
227 ConfigurationRecorder& WithServicePrincipal(ServicePrincipalT&& value) {
228 SetServicePrincipal(std::forward<ServicePrincipalT>(value));
229 return *this;
230 }
232 private:
233 Aws::String m_arn;
234
235 Aws::String m_name;
236
237 Aws::String m_roleARN;
238
239 RecordingGroup m_recordingGroup;
240
241 RecordingMode m_recordingMode;
242
243 RecordingScope m_recordingScope{RecordingScope::NOT_SET};
244
245 Aws::String m_servicePrincipal;
246 bool m_arnHasBeenSet = false;
247 bool m_nameHasBeenSet = false;
248 bool m_roleARNHasBeenSet = false;
249 bool m_recordingGroupHasBeenSet = false;
250 bool m_recordingModeHasBeenSet = false;
251 bool m_recordingScopeHasBeenSet = false;
252 bool m_servicePrincipalHasBeenSet = false;
253};
254
255} // namespace Model
256} // namespace ConfigService
257} // namespace Aws
ConfigurationRecorder & WithRecordingMode(RecordingModeT &&value)
ConfigurationRecorder & WithArn(ArnT &&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 & WithRecordingScope(RecordingScope value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue