AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ControlMappingSource.h
1
6#pragma once
7#include <aws/auditmanager/AuditManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/auditmanager/model/SourceSetUpOption.h>
10#include <aws/auditmanager/model/SourceType.h>
11#include <aws/auditmanager/model/SourceKeyword.h>
12#include <aws/auditmanager/model/SourceFrequency.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace AuditManager
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_AUDITMANAGER_API ControlMappingSource() = default;
40 AWS_AUDITMANAGER_API ControlMappingSource(Aws::Utils::Json::JsonView jsonValue);
42 AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetSourceId() const { return m_sourceId; }
50 inline bool SourceIdHasBeenSet() const { return m_sourceIdHasBeenSet; }
51 template<typename SourceIdT = Aws::String>
52 void SetSourceId(SourceIdT&& value) { m_sourceIdHasBeenSet = true; m_sourceId = std::forward<SourceIdT>(value); }
53 template<typename SourceIdT = Aws::String>
54 ControlMappingSource& WithSourceId(SourceIdT&& value) { SetSourceId(std::forward<SourceIdT>(value)); return *this;}
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) { m_sourceNameHasBeenSet = true; m_sourceName = std::forward<SourceNameT>(value); }
65 template<typename SourceNameT = Aws::String>
66 ControlMappingSource& WithSourceName(SourceNameT&& value) { SetSourceName(std::forward<SourceNameT>(value)); return *this;}
68
70
73 inline const Aws::String& GetSourceDescription() const { return m_sourceDescription; }
74 inline bool SourceDescriptionHasBeenSet() const { return m_sourceDescriptionHasBeenSet; }
75 template<typename SourceDescriptionT = Aws::String>
76 void SetSourceDescription(SourceDescriptionT&& value) { m_sourceDescriptionHasBeenSet = true; m_sourceDescription = std::forward<SourceDescriptionT>(value); }
77 template<typename SourceDescriptionT = Aws::String>
78 ControlMappingSource& WithSourceDescription(SourceDescriptionT&& value) { SetSourceDescription(std::forward<SourceDescriptionT>(value)); return *this;}
80
82
88 inline SourceSetUpOption GetSourceSetUpOption() const { return m_sourceSetUpOption; }
89 inline bool SourceSetUpOptionHasBeenSet() const { return m_sourceSetUpOptionHasBeenSet; }
90 inline void SetSourceSetUpOption(SourceSetUpOption value) { m_sourceSetUpOptionHasBeenSet = true; m_sourceSetUpOption = value; }
93
95
104 inline SourceType GetSourceType() const { return m_sourceType; }
105 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
106 inline void SetSourceType(SourceType value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
107 inline ControlMappingSource& WithSourceType(SourceType value) { SetSourceType(value); return *this;}
109
111
112 inline const SourceKeyword& GetSourceKeyword() const { return m_sourceKeyword; }
113 inline bool SourceKeywordHasBeenSet() const { return m_sourceKeywordHasBeenSet; }
114 template<typename SourceKeywordT = SourceKeyword>
115 void SetSourceKeyword(SourceKeywordT&& value) { m_sourceKeywordHasBeenSet = true; m_sourceKeyword = std::forward<SourceKeywordT>(value); }
116 template<typename SourceKeywordT = SourceKeyword>
117 ControlMappingSource& WithSourceKeyword(SourceKeywordT&& value) { SetSourceKeyword(std::forward<SourceKeywordT>(value)); return *this;}
119
121
125 inline SourceFrequency GetSourceFrequency() const { return m_sourceFrequency; }
126 inline bool SourceFrequencyHasBeenSet() const { return m_sourceFrequencyHasBeenSet; }
127 inline void SetSourceFrequency(SourceFrequency value) { m_sourceFrequencyHasBeenSet = true; m_sourceFrequency = value; }
130
132
135 inline const Aws::String& GetTroubleshootingText() const { return m_troubleshootingText; }
136 inline bool TroubleshootingTextHasBeenSet() const { return m_troubleshootingTextHasBeenSet; }
137 template<typename TroubleshootingTextT = Aws::String>
138 void SetTroubleshootingText(TroubleshootingTextT&& value) { m_troubleshootingTextHasBeenSet = true; m_troubleshootingText = std::forward<TroubleshootingTextT>(value); }
139 template<typename TroubleshootingTextT = Aws::String>
140 ControlMappingSource& WithTroubleshootingText(TroubleshootingTextT&& value) { SetTroubleshootingText(std::forward<TroubleshootingTextT>(value)); return *this;}
142 private:
143
144 Aws::String m_sourceId;
145 bool m_sourceIdHasBeenSet = false;
146
147 Aws::String m_sourceName;
148 bool m_sourceNameHasBeenSet = false;
149
150 Aws::String m_sourceDescription;
151 bool m_sourceDescriptionHasBeenSet = false;
152
154 bool m_sourceSetUpOptionHasBeenSet = false;
155
156 SourceType m_sourceType{SourceType::NOT_SET};
157 bool m_sourceTypeHasBeenSet = false;
158
159 SourceKeyword m_sourceKeyword;
160 bool m_sourceKeywordHasBeenSet = false;
161
162 SourceFrequency m_sourceFrequency{SourceFrequency::NOT_SET};
163 bool m_sourceFrequencyHasBeenSet = false;
164
165 Aws::String m_troubleshootingText;
166 bool m_troubleshootingTextHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace AuditManager
171} // 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