AWS SDK for C++

AWS SDK for C++ Version 1.11.845

Loading...
Searching...
No Matches
ThreatModel.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityagent/SecurityAgent_EXPORTS.h>
11#include <aws/securityagent/model/Assets.h>
12#include <aws/securityagent/model/CloudWatchLog.h>
13#include <aws/securityagent/model/DocumentInfo.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SecurityAgent {
25namespace Model {
26
35 public:
36 AWS_SECURITYAGENT_API ThreatModel() = default;
37 AWS_SECURITYAGENT_API ThreatModel(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SECURITYAGENT_API ThreatModel& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetThreatModelId() const { return m_threatModelId; }
46 inline bool ThreatModelIdHasBeenSet() const { return m_threatModelIdHasBeenSet; }
47 template <typename ThreatModelIdT = Aws::String>
48 void SetThreatModelId(ThreatModelIdT&& value) {
49 m_threatModelIdHasBeenSet = true;
50 m_threatModelId = std::forward<ThreatModelIdT>(value);
51 }
52 template <typename ThreatModelIdT = Aws::String>
53 ThreatModel& WithThreatModelId(ThreatModelIdT&& value) {
54 SetThreatModelId(std::forward<ThreatModelIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
64 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
65 template <typename AgentSpaceIdT = Aws::String>
66 void SetAgentSpaceId(AgentSpaceIdT&& value) {
67 m_agentSpaceIdHasBeenSet = true;
68 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
69 }
70 template <typename AgentSpaceIdT = Aws::String>
71 ThreatModel& WithAgentSpaceId(AgentSpaceIdT&& value) {
72 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetTitle() const { return m_title; }
82 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
83 template <typename TitleT = Aws::String>
84 void SetTitle(TitleT&& value) {
85 m_titleHasBeenSet = true;
86 m_title = std::forward<TitleT>(value);
87 }
88 template <typename TitleT = Aws::String>
89 ThreatModel& WithTitle(TitleT&& value) {
90 SetTitle(std::forward<TitleT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetDescription() const { return m_description; }
100 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
101 template <typename DescriptionT = Aws::String>
102 void SetDescription(DescriptionT&& value) {
103 m_descriptionHasBeenSet = true;
104 m_description = std::forward<DescriptionT>(value);
105 }
106 template <typename DescriptionT = Aws::String>
107 ThreatModel& WithDescription(DescriptionT&& value) {
108 SetDescription(std::forward<DescriptionT>(value));
109 return *this;
110 }
112
114
117 inline const Assets& GetAssets() const { return m_assets; }
118 inline bool AssetsHasBeenSet() const { return m_assetsHasBeenSet; }
119 template <typename AssetsT = Assets>
120 void SetAssets(AssetsT&& value) {
121 m_assetsHasBeenSet = true;
122 m_assets = std::forward<AssetsT>(value);
123 }
124 template <typename AssetsT = Assets>
125 ThreatModel& WithAssets(AssetsT&& value) {
126 SetAssets(std::forward<AssetsT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::Vector<DocumentInfo>& GetScopeDocs() const { return m_scopeDocs; }
136 inline bool ScopeDocsHasBeenSet() const { return m_scopeDocsHasBeenSet; }
137 template <typename ScopeDocsT = Aws::Vector<DocumentInfo>>
138 void SetScopeDocs(ScopeDocsT&& value) {
139 m_scopeDocsHasBeenSet = true;
140 m_scopeDocs = std::forward<ScopeDocsT>(value);
141 }
142 template <typename ScopeDocsT = Aws::Vector<DocumentInfo>>
143 ThreatModel& WithScopeDocs(ScopeDocsT&& value) {
144 SetScopeDocs(std::forward<ScopeDocsT>(value));
145 return *this;
146 }
147 template <typename ScopeDocsT = DocumentInfo>
148 ThreatModel& AddScopeDocs(ScopeDocsT&& value) {
149 m_scopeDocsHasBeenSet = true;
150 m_scopeDocs.emplace_back(std::forward<ScopeDocsT>(value));
151 return *this;
152 }
154
156
159 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
160 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
161 template <typename ServiceRoleT = Aws::String>
162 void SetServiceRole(ServiceRoleT&& value) {
163 m_serviceRoleHasBeenSet = true;
164 m_serviceRole = std::forward<ServiceRoleT>(value);
165 }
166 template <typename ServiceRoleT = Aws::String>
167 ThreatModel& WithServiceRole(ServiceRoleT&& value) {
168 SetServiceRole(std::forward<ServiceRoleT>(value));
169 return *this;
170 }
172
174
177 inline const CloudWatchLog& GetLogConfig() const { return m_logConfig; }
178 inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
179 template <typename LogConfigT = CloudWatchLog>
180 void SetLogConfig(LogConfigT&& value) {
181 m_logConfigHasBeenSet = true;
182 m_logConfig = std::forward<LogConfigT>(value);
183 }
184 template <typename LogConfigT = CloudWatchLog>
185 ThreatModel& WithLogConfig(LogConfigT&& value) {
186 SetLogConfig(std::forward<LogConfigT>(value));
187 return *this;
188 }
190
192
195 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
196 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
197 template <typename CreatedAtT = Aws::Utils::DateTime>
198 void SetCreatedAt(CreatedAtT&& value) {
199 m_createdAtHasBeenSet = true;
200 m_createdAt = std::forward<CreatedAtT>(value);
201 }
202 template <typename CreatedAtT = Aws::Utils::DateTime>
203 ThreatModel& WithCreatedAt(CreatedAtT&& value) {
204 SetCreatedAt(std::forward<CreatedAtT>(value));
205 return *this;
206 }
208
210
213 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
214 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
215 template <typename UpdatedAtT = Aws::Utils::DateTime>
216 void SetUpdatedAt(UpdatedAtT&& value) {
217 m_updatedAtHasBeenSet = true;
218 m_updatedAt = std::forward<UpdatedAtT>(value);
219 }
220 template <typename UpdatedAtT = Aws::Utils::DateTime>
221 ThreatModel& WithUpdatedAt(UpdatedAtT&& value) {
222 SetUpdatedAt(std::forward<UpdatedAtT>(value));
223 return *this;
224 }
226 private:
227 Aws::String m_threatModelId;
228
229 Aws::String m_agentSpaceId;
230
231 Aws::String m_title;
232
233 Aws::String m_description;
234
235 Assets m_assets;
236
237 Aws::Vector<DocumentInfo> m_scopeDocs;
238
239 Aws::String m_serviceRole;
240
241 CloudWatchLog m_logConfig;
242
243 Aws::Utils::DateTime m_createdAt{};
244
245 Aws::Utils::DateTime m_updatedAt{};
246 bool m_threatModelIdHasBeenSet = false;
247 bool m_agentSpaceIdHasBeenSet = false;
248 bool m_titleHasBeenSet = false;
249 bool m_descriptionHasBeenSet = false;
250 bool m_assetsHasBeenSet = false;
251 bool m_scopeDocsHasBeenSet = false;
252 bool m_serviceRoleHasBeenSet = false;
253 bool m_logConfigHasBeenSet = false;
254 bool m_createdAtHasBeenSet = false;
255 bool m_updatedAtHasBeenSet = false;
256};
257
258} // namespace Model
259} // namespace SecurityAgent
260} // namespace Aws
const Aws::String & GetThreatModelId() const
Definition ThreatModel.h:45
ThreatModel & WithAssets(AssetsT &&value)
ThreatModel & AddScopeDocs(ScopeDocsT &&value)
const Aws::Vector< DocumentInfo > & GetScopeDocs() const
ThreatModel & WithAgentSpaceId(AgentSpaceIdT &&value)
Definition ThreatModel.h:71
void SetThreatModelId(ThreatModelIdT &&value)
Definition ThreatModel.h:48
ThreatModel & WithThreatModelId(ThreatModelIdT &&value)
Definition ThreatModel.h:53
ThreatModel & WithServiceRole(ServiceRoleT &&value)
AWS_SECURITYAGENT_API ThreatModel()=default
void SetServiceRole(ServiceRoleT &&value)
void SetAgentSpaceId(AgentSpaceIdT &&value)
Definition ThreatModel.h:66
ThreatModel & WithUpdatedAt(UpdatedAtT &&value)
AWS_SECURITYAGENT_API ThreatModel(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::Utils::DateTime & GetCreatedAt() const
ThreatModel & WithDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
Definition ThreatModel.h:99
ThreatModel & WithCreatedAt(CreatedAtT &&value)
void SetScopeDocs(ScopeDocsT &&value)
void SetLogConfig(LogConfigT &&value)
void SetDescription(DescriptionT &&value)
void SetUpdatedAt(UpdatedAtT &&value)
const CloudWatchLog & GetLogConfig() const
void SetCreatedAt(CreatedAtT &&value)
ThreatModel & WithTitle(TitleT &&value)
Definition ThreatModel.h:89
const Aws::String & GetTitle() const
Definition ThreatModel.h:81
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAgentSpaceId() const
Definition ThreatModel.h:63
ThreatModel & WithScopeDocs(ScopeDocsT &&value)
const Aws::String & GetServiceRole() const
ThreatModel & WithLogConfig(LogConfigT &&value)
AWS_SECURITYAGENT_API ThreatModel & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue