AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateControlMappingSource.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
34 public:
35 AWS_AUDITMANAGER_API CreateControlMappingSource() = default;
38 AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetSourceName() const { return m_sourceName; }
45 inline bool SourceNameHasBeenSet() const { return m_sourceNameHasBeenSet; }
46 template <typename SourceNameT = Aws::String>
47 void SetSourceName(SourceNameT&& value) {
48 m_sourceNameHasBeenSet = true;
49 m_sourceName = std::forward<SourceNameT>(value);
50 }
51 template <typename SourceNameT = Aws::String>
53 SetSourceName(std::forward<SourceNameT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetSourceDescription() const { return m_sourceDescription; }
64 inline bool SourceDescriptionHasBeenSet() const { return m_sourceDescriptionHasBeenSet; }
65 template <typename SourceDescriptionT = Aws::String>
66 void SetSourceDescription(SourceDescriptionT&& value) {
67 m_sourceDescriptionHasBeenSet = true;
68 m_sourceDescription = std::forward<SourceDescriptionT>(value);
69 }
70 template <typename SourceDescriptionT = Aws::String>
72 SetSourceDescription(std::forward<SourceDescriptionT>(value));
73 return *this;
74 }
76
78
84 inline SourceSetUpOption GetSourceSetUpOption() const { return m_sourceSetUpOption; }
85 inline bool SourceSetUpOptionHasBeenSet() const { return m_sourceSetUpOptionHasBeenSet; }
87 m_sourceSetUpOptionHasBeenSet = true;
88 m_sourceSetUpOption = value;
89 }
92 return *this;
93 }
95
97
106 inline SourceType GetSourceType() const { return m_sourceType; }
107 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
108 inline void SetSourceType(SourceType value) {
109 m_sourceTypeHasBeenSet = true;
110 m_sourceType = value;
111 }
113 SetSourceType(value);
114 return *this;
115 }
117
119
120 inline const SourceKeyword& GetSourceKeyword() const { return m_sourceKeyword; }
121 inline bool SourceKeywordHasBeenSet() const { return m_sourceKeywordHasBeenSet; }
122 template <typename SourceKeywordT = SourceKeyword>
123 void SetSourceKeyword(SourceKeywordT&& value) {
124 m_sourceKeywordHasBeenSet = true;
125 m_sourceKeyword = std::forward<SourceKeywordT>(value);
126 }
127 template <typename SourceKeywordT = SourceKeyword>
129 SetSourceKeyword(std::forward<SourceKeywordT>(value));
130 return *this;
131 }
133
135
139 inline SourceFrequency GetSourceFrequency() const { return m_sourceFrequency; }
140 inline bool SourceFrequencyHasBeenSet() const { return m_sourceFrequencyHasBeenSet; }
142 m_sourceFrequencyHasBeenSet = true;
143 m_sourceFrequency = value;
144 }
146 SetSourceFrequency(value);
147 return *this;
148 }
150
152
155 inline const Aws::String& GetTroubleshootingText() const { return m_troubleshootingText; }
156 inline bool TroubleshootingTextHasBeenSet() const { return m_troubleshootingTextHasBeenSet; }
157 template <typename TroubleshootingTextT = Aws::String>
158 void SetTroubleshootingText(TroubleshootingTextT&& value) {
159 m_troubleshootingTextHasBeenSet = true;
160 m_troubleshootingText = std::forward<TroubleshootingTextT>(value);
161 }
162 template <typename TroubleshootingTextT = Aws::String>
164 SetTroubleshootingText(std::forward<TroubleshootingTextT>(value));
165 return *this;
166 }
168 private:
169 Aws::String m_sourceName;
170
171 Aws::String m_sourceDescription;
172
174
175 SourceType m_sourceType{SourceType::NOT_SET};
176
177 SourceKeyword m_sourceKeyword;
178
179 SourceFrequency m_sourceFrequency{SourceFrequency::NOT_SET};
180
181 Aws::String m_troubleshootingText;
182 bool m_sourceNameHasBeenSet = false;
183 bool m_sourceDescriptionHasBeenSet = false;
184 bool m_sourceSetUpOptionHasBeenSet = false;
185 bool m_sourceTypeHasBeenSet = false;
186 bool m_sourceKeywordHasBeenSet = false;
187 bool m_sourceFrequencyHasBeenSet = false;
188 bool m_troubleshootingTextHasBeenSet = false;
189};
190
191} // namespace Model
192} // namespace AuditManager
193} // namespace Aws
CreateControlMappingSource & WithSourceDescription(SourceDescriptionT &&value)
AWS_AUDITMANAGER_API CreateControlMappingSource(Aws::Utils::Json::JsonView jsonValue)
AWS_AUDITMANAGER_API CreateControlMappingSource()=default
CreateControlMappingSource & WithSourceName(SourceNameT &&value)
CreateControlMappingSource & WithSourceFrequency(SourceFrequency value)
CreateControlMappingSource & WithSourceKeyword(SourceKeywordT &&value)
AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
CreateControlMappingSource & WithTroubleshootingText(TroubleshootingTextT &&value)
CreateControlMappingSource & WithSourceSetUpOption(SourceSetUpOption value)
CreateControlMappingSource & WithSourceType(SourceType value)
AWS_AUDITMANAGER_API CreateControlMappingSource & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue