AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ControlMappingSource.h
1
6#pragma once
7#include <aws/auditmanager/AuditManager_EXPORTS.h>
8#include <aws/auditmanager/model/SourceFrequency.h>
9#include <aws/auditmanager/model/SourceKeyword.h>
10#include <aws/auditmanager/model/SourceSetUpOption.h>
11#include <aws/auditmanager/model/SourceType.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 AuditManager {
24namespace Model {
25
33 public:
34 AWS_AUDITMANAGER_API ControlMappingSource() = default;
35 AWS_AUDITMANAGER_API ControlMappingSource(Aws::Utils::Json::JsonView jsonValue);
37 AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetSourceId() const { return m_sourceId; }
44 inline bool SourceIdHasBeenSet() const { return m_sourceIdHasBeenSet; }
45 template <typename SourceIdT = Aws::String>
46 void SetSourceId(SourceIdT&& value) {
47 m_sourceIdHasBeenSet = true;
48 m_sourceId = std::forward<SourceIdT>(value);
49 }
50 template <typename SourceIdT = Aws::String>
51 ControlMappingSource& WithSourceId(SourceIdT&& value) {
52 SetSourceId(std::forward<SourceIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetSourceName() const { return m_sourceName; }
62 inline bool SourceNameHasBeenSet() const { return m_sourceNameHasBeenSet; }
63 template <typename SourceNameT = Aws::String>
64 void SetSourceName(SourceNameT&& value) {
65 m_sourceNameHasBeenSet = true;
66 m_sourceName = std::forward<SourceNameT>(value);
67 }
68 template <typename SourceNameT = Aws::String>
69 ControlMappingSource& WithSourceName(SourceNameT&& value) {
70 SetSourceName(std::forward<SourceNameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetSourceDescription() const { return m_sourceDescription; }
80 inline bool SourceDescriptionHasBeenSet() const { return m_sourceDescriptionHasBeenSet; }
81 template <typename SourceDescriptionT = Aws::String>
82 void SetSourceDescription(SourceDescriptionT&& value) {
83 m_sourceDescriptionHasBeenSet = true;
84 m_sourceDescription = std::forward<SourceDescriptionT>(value);
85 }
86 template <typename SourceDescriptionT = Aws::String>
87 ControlMappingSource& WithSourceDescription(SourceDescriptionT&& value) {
88 SetSourceDescription(std::forward<SourceDescriptionT>(value));
89 return *this;
90 }
92
94
100 inline SourceSetUpOption GetSourceSetUpOption() const { return m_sourceSetUpOption; }
101 inline bool SourceSetUpOptionHasBeenSet() const { return m_sourceSetUpOptionHasBeenSet; }
103 m_sourceSetUpOptionHasBeenSet = true;
104 m_sourceSetUpOption = value;
105 }
108 return *this;
109 }
111
113
122 inline SourceType GetSourceType() const { return m_sourceType; }
123 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
124 inline void SetSourceType(SourceType value) {
125 m_sourceTypeHasBeenSet = true;
126 m_sourceType = value;
127 }
129 SetSourceType(value);
130 return *this;
131 }
133
135
136 inline const SourceKeyword& GetSourceKeyword() const { return m_sourceKeyword; }
137 inline bool SourceKeywordHasBeenSet() const { return m_sourceKeywordHasBeenSet; }
138 template <typename SourceKeywordT = SourceKeyword>
139 void SetSourceKeyword(SourceKeywordT&& value) {
140 m_sourceKeywordHasBeenSet = true;
141 m_sourceKeyword = std::forward<SourceKeywordT>(value);
142 }
143 template <typename SourceKeywordT = SourceKeyword>
144 ControlMappingSource& WithSourceKeyword(SourceKeywordT&& value) {
145 SetSourceKeyword(std::forward<SourceKeywordT>(value));
146 return *this;
147 }
149
151
155 inline SourceFrequency GetSourceFrequency() const { return m_sourceFrequency; }
156 inline bool SourceFrequencyHasBeenSet() const { return m_sourceFrequencyHasBeenSet; }
158 m_sourceFrequencyHasBeenSet = true;
159 m_sourceFrequency = value;
160 }
162 SetSourceFrequency(value);
163 return *this;
164 }
166
168
171 inline const Aws::String& GetTroubleshootingText() const { return m_troubleshootingText; }
172 inline bool TroubleshootingTextHasBeenSet() const { return m_troubleshootingTextHasBeenSet; }
173 template <typename TroubleshootingTextT = Aws::String>
174 void SetTroubleshootingText(TroubleshootingTextT&& value) {
175 m_troubleshootingTextHasBeenSet = true;
176 m_troubleshootingText = std::forward<TroubleshootingTextT>(value);
177 }
178 template <typename TroubleshootingTextT = Aws::String>
179 ControlMappingSource& WithTroubleshootingText(TroubleshootingTextT&& value) {
180 SetTroubleshootingText(std::forward<TroubleshootingTextT>(value));
181 return *this;
182 }
184 private:
185 Aws::String m_sourceId;
186
187 Aws::String m_sourceName;
188
189 Aws::String m_sourceDescription;
190
192
193 SourceType m_sourceType{SourceType::NOT_SET};
194
195 SourceKeyword m_sourceKeyword;
196
197 SourceFrequency m_sourceFrequency{SourceFrequency::NOT_SET};
198
199 Aws::String m_troubleshootingText;
200 bool m_sourceIdHasBeenSet = false;
201 bool m_sourceNameHasBeenSet = false;
202 bool m_sourceDescriptionHasBeenSet = false;
203 bool m_sourceSetUpOptionHasBeenSet = false;
204 bool m_sourceTypeHasBeenSet = false;
205 bool m_sourceKeywordHasBeenSet = false;
206 bool m_sourceFrequencyHasBeenSet = false;
207 bool m_troubleshootingTextHasBeenSet = false;
208};
209
210} // namespace Model
211} // namespace AuditManager
212} // namespace Aws
AWS_AUDITMANAGER_API ControlMappingSource()=default
AWS_AUDITMANAGER_API ControlMappingSource(Aws::Utils::Json::JsonView jsonValue)
ControlMappingSource & WithSourceSetUpOption(SourceSetUpOption value)
ControlMappingSource & WithSourceKeyword(SourceKeywordT &&value)
ControlMappingSource & WithSourceFrequency(SourceFrequency value)
AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
ControlMappingSource & WithSourceId(SourceIdT &&value)
AWS_AUDITMANAGER_API ControlMappingSource & operator=(Aws::Utils::Json::JsonView jsonValue)
ControlMappingSource & WithSourceType(SourceType value)
ControlMappingSource & WithSourceName(SourceNameT &&value)
void SetSourceDescription(SourceDescriptionT &&value)
ControlMappingSource & WithSourceDescription(SourceDescriptionT &&value)
void SetTroubleshootingText(TroubleshootingTextT &&value)
ControlMappingSource & WithTroubleshootingText(TroubleshootingTextT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue