AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ConfigurationRecorder.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/config/model/RecordingGroup.h>
10#include <aws/config/model/RecordingMode.h>
11#include <aws/config/model/RecordingScope.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ConfigService
25{
26namespace Model
27{
28
39 {
40 public:
41 AWS_CONFIGSERVICE_API ConfigurationRecorder() = default;
42 AWS_CONFIGSERVICE_API ConfigurationRecorder(Aws::Utils::Json::JsonView jsonValue);
44 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetArn() const { return m_arn; }
52 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
53 template<typename ArnT = Aws::String>
54 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
55 template<typename ArnT = Aws::String>
56 ConfigurationRecorder& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
76 template<typename NameT = Aws::String>
77 ConfigurationRecorder& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
79
81
112 inline const Aws::String& GetRoleARN() const { return m_roleARN; }
113 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
114 template<typename RoleARNT = Aws::String>
115 void SetRoleARN(RoleARNT&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::forward<RoleARNT>(value); }
116 template<typename RoleARNT = Aws::String>
117 ConfigurationRecorder& WithRoleARN(RoleARNT&& value) { SetRoleARN(std::forward<RoleARNT>(value)); return *this;}
119
121
139 inline const RecordingGroup& GetRecordingGroup() const { return m_recordingGroup; }
140 inline bool RecordingGroupHasBeenSet() const { return m_recordingGroupHasBeenSet; }
141 template<typename RecordingGroupT = RecordingGroup>
142 void SetRecordingGroup(RecordingGroupT&& value) { m_recordingGroupHasBeenSet = true; m_recordingGroup = std::forward<RecordingGroupT>(value); }
143 template<typename RecordingGroupT = RecordingGroup>
144 ConfigurationRecorder& WithRecordingGroup(RecordingGroupT&& value) { SetRecordingGroup(std::forward<RecordingGroupT>(value)); return *this;}
146
148
162 inline const RecordingMode& GetRecordingMode() const { return m_recordingMode; }
163 inline bool RecordingModeHasBeenSet() const { return m_recordingModeHasBeenSet; }
164 template<typename RecordingModeT = RecordingMode>
165 void SetRecordingMode(RecordingModeT&& value) { m_recordingModeHasBeenSet = true; m_recordingMode = std::forward<RecordingModeT>(value); }
166 template<typename RecordingModeT = RecordingMode>
167 ConfigurationRecorder& WithRecordingMode(RecordingModeT&& value) { SetRecordingMode(std::forward<RecordingModeT>(value)); return *this;}
169
171
178 inline RecordingScope GetRecordingScope() const { return m_recordingScope; }
179 inline bool RecordingScopeHasBeenSet() const { return m_recordingScopeHasBeenSet; }
180 inline void SetRecordingScope(RecordingScope value) { m_recordingScopeHasBeenSet = true; m_recordingScope = value; }
183
185
189 inline const Aws::String& GetServicePrincipal() const { return m_servicePrincipal; }
190 inline bool ServicePrincipalHasBeenSet() const { return m_servicePrincipalHasBeenSet; }
191 template<typename ServicePrincipalT = Aws::String>
192 void SetServicePrincipal(ServicePrincipalT&& value) { m_servicePrincipalHasBeenSet = true; m_servicePrincipal = std::forward<ServicePrincipalT>(value); }
193 template<typename ServicePrincipalT = Aws::String>
194 ConfigurationRecorder& WithServicePrincipal(ServicePrincipalT&& value) { SetServicePrincipal(std::forward<ServicePrincipalT>(value)); return *this;}
196 private:
197
198 Aws::String m_arn;
199 bool m_arnHasBeenSet = false;
200
201 Aws::String m_name;
202 bool m_nameHasBeenSet = false;
203
204 Aws::String m_roleARN;
205 bool m_roleARNHasBeenSet = false;
206
207 RecordingGroup m_recordingGroup;
208 bool m_recordingGroupHasBeenSet = false;
209
210 RecordingMode m_recordingMode;
211 bool m_recordingModeHasBeenSet = false;
212
213 RecordingScope m_recordingScope{RecordingScope::NOT_SET};
214 bool m_recordingScopeHasBeenSet = false;
215
216 Aws::String m_servicePrincipal;
217 bool m_servicePrincipalHasBeenSet = false;
218 };
219
220} // namespace Model
221} // namespace ConfigService
222} // 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