AWS SDK for C++

AWS SDK for C++ Version 1.11.904

Loading...
Searching...
No Matches
ThreatModelJob.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/DocumentInfo.h>
12#include <aws/securityagent/model/ErrorInformation.h>
13#include <aws/securityagent/model/IntegratedRepository.h>
14#include <aws/securityagent/model/JobStatus.h>
15#include <aws/securityagent/model/ReportDestination.h>
16#include <aws/securityagent/model/SourceCodeRepository.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace SecurityAgent {
28namespace Model {
29
37 public:
38 AWS_SECURITYAGENT_API ThreatModelJob() = default;
39 AWS_SECURITYAGENT_API ThreatModelJob(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SECURITYAGENT_API ThreatModelJob& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetThreatModelJobId() const { return m_threatModelJobId; }
48 inline bool ThreatModelJobIdHasBeenSet() const { return m_threatModelJobIdHasBeenSet; }
49 template <typename ThreatModelJobIdT = Aws::String>
50 void SetThreatModelJobId(ThreatModelJobIdT&& value) {
51 m_threatModelJobIdHasBeenSet = true;
52 m_threatModelJobId = std::forward<ThreatModelJobIdT>(value);
53 }
54 template <typename ThreatModelJobIdT = Aws::String>
55 ThreatModelJob& WithThreatModelJobId(ThreatModelJobIdT&& value) {
56 SetThreatModelJobId(std::forward<ThreatModelJobIdT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetThreatModelId() const { return m_threatModelId; }
66 inline bool ThreatModelIdHasBeenSet() const { return m_threatModelIdHasBeenSet; }
67 template <typename ThreatModelIdT = Aws::String>
68 void SetThreatModelId(ThreatModelIdT&& value) {
69 m_threatModelIdHasBeenSet = true;
70 m_threatModelId = std::forward<ThreatModelIdT>(value);
71 }
72 template <typename ThreatModelIdT = Aws::String>
73 ThreatModelJob& WithThreatModelId(ThreatModelIdT&& value) {
74 SetThreatModelId(std::forward<ThreatModelIdT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
84 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
85 template <typename AgentSpaceIdT = Aws::String>
86 void SetAgentSpaceId(AgentSpaceIdT&& value) {
87 m_agentSpaceIdHasBeenSet = true;
88 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
89 }
90 template <typename AgentSpaceIdT = Aws::String>
91 ThreatModelJob& WithAgentSpaceId(AgentSpaceIdT&& value) {
92 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetTitle() const { return m_title; }
102 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
103 template <typename TitleT = Aws::String>
104 void SetTitle(TitleT&& value) {
105 m_titleHasBeenSet = true;
106 m_title = std::forward<TitleT>(value);
107 }
108 template <typename TitleT = Aws::String>
109 ThreatModelJob& WithTitle(TitleT&& value) {
110 SetTitle(std::forward<TitleT>(value));
111 return *this;
112 }
114
116
119 inline JobStatus GetStatus() const { return m_status; }
120 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
121 inline void SetStatus(JobStatus value) {
122 m_statusHasBeenSet = true;
123 m_status = value;
124 }
126 SetStatus(value);
127 return *this;
128 }
130
132
135 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
136 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
137 template <typename CreatedAtT = Aws::Utils::DateTime>
138 void SetCreatedAt(CreatedAtT&& value) {
139 m_createdAtHasBeenSet = true;
140 m_createdAt = std::forward<CreatedAtT>(value);
141 }
142 template <typename CreatedAtT = Aws::Utils::DateTime>
143 ThreatModelJob& WithCreatedAt(CreatedAtT&& value) {
144 SetCreatedAt(std::forward<CreatedAtT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
154 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
155 template <typename UpdatedAtT = Aws::Utils::DateTime>
156 void SetUpdatedAt(UpdatedAtT&& value) {
157 m_updatedAtHasBeenSet = true;
158 m_updatedAt = std::forward<UpdatedAtT>(value);
159 }
160 template <typename UpdatedAtT = Aws::Utils::DateTime>
161 ThreatModelJob& WithUpdatedAt(UpdatedAtT&& value) {
162 SetUpdatedAt(std::forward<UpdatedAtT>(value));
163 return *this;
164 }
166
168
171 inline const Aws::Utils::DateTime& GetExecutionStartTime() const { return m_executionStartTime; }
172 inline bool ExecutionStartTimeHasBeenSet() const { return m_executionStartTimeHasBeenSet; }
173 template <typename ExecutionStartTimeT = Aws::Utils::DateTime>
174 void SetExecutionStartTime(ExecutionStartTimeT&& value) {
175 m_executionStartTimeHasBeenSet = true;
176 m_executionStartTime = std::forward<ExecutionStartTimeT>(value);
177 }
178 template <typename ExecutionStartTimeT = Aws::Utils::DateTime>
179 ThreatModelJob& WithExecutionStartTime(ExecutionStartTimeT&& value) {
180 SetExecutionStartTime(std::forward<ExecutionStartTimeT>(value));
181 return *this;
182 }
184
186
189 inline const Aws::Utils::DateTime& GetExecutionEndTime() const { return m_executionEndTime; }
190 inline bool ExecutionEndTimeHasBeenSet() const { return m_executionEndTimeHasBeenSet; }
191 template <typename ExecutionEndTimeT = Aws::Utils::DateTime>
192 void SetExecutionEndTime(ExecutionEndTimeT&& value) {
193 m_executionEndTimeHasBeenSet = true;
194 m_executionEndTime = std::forward<ExecutionEndTimeT>(value);
195 }
196 template <typename ExecutionEndTimeT = Aws::Utils::DateTime>
197 ThreatModelJob& WithExecutionEndTime(ExecutionEndTimeT&& value) {
198 SetExecutionEndTime(std::forward<ExecutionEndTimeT>(value));
199 return *this;
200 }
202
204
207 inline const Aws::Vector<SourceCodeRepository>& GetSourceCode() const { return m_sourceCode; }
208 inline bool SourceCodeHasBeenSet() const { return m_sourceCodeHasBeenSet; }
209 template <typename SourceCodeT = Aws::Vector<SourceCodeRepository>>
210 void SetSourceCode(SourceCodeT&& value) {
211 m_sourceCodeHasBeenSet = true;
212 m_sourceCode = std::forward<SourceCodeT>(value);
213 }
214 template <typename SourceCodeT = Aws::Vector<SourceCodeRepository>>
215 ThreatModelJob& WithSourceCode(SourceCodeT&& value) {
216 SetSourceCode(std::forward<SourceCodeT>(value));
217 return *this;
218 }
219 template <typename SourceCodeT = SourceCodeRepository>
220 ThreatModelJob& AddSourceCode(SourceCodeT&& value) {
221 m_sourceCodeHasBeenSet = true;
222 m_sourceCode.emplace_back(std::forward<SourceCodeT>(value));
223 return *this;
224 }
226
228
231 inline const Aws::Vector<IntegratedRepository>& GetIntegratedRepositories() const { return m_integratedRepositories; }
232 inline bool IntegratedRepositoriesHasBeenSet() const { return m_integratedRepositoriesHasBeenSet; }
233 template <typename IntegratedRepositoriesT = Aws::Vector<IntegratedRepository>>
234 void SetIntegratedRepositories(IntegratedRepositoriesT&& value) {
235 m_integratedRepositoriesHasBeenSet = true;
236 m_integratedRepositories = std::forward<IntegratedRepositoriesT>(value);
237 }
238 template <typename IntegratedRepositoriesT = Aws::Vector<IntegratedRepository>>
239 ThreatModelJob& WithIntegratedRepositories(IntegratedRepositoriesT&& value) {
240 SetIntegratedRepositories(std::forward<IntegratedRepositoriesT>(value));
241 return *this;
242 }
243 template <typename IntegratedRepositoriesT = IntegratedRepository>
244 ThreatModelJob& AddIntegratedRepositories(IntegratedRepositoriesT&& value) {
245 m_integratedRepositoriesHasBeenSet = true;
246 m_integratedRepositories.emplace_back(std::forward<IntegratedRepositoriesT>(value));
247 return *this;
248 }
250
252
255 inline const Aws::Vector<DocumentInfo>& GetDocuments() const { return m_documents; }
256 inline bool DocumentsHasBeenSet() const { return m_documentsHasBeenSet; }
257 template <typename DocumentsT = Aws::Vector<DocumentInfo>>
258 void SetDocuments(DocumentsT&& value) {
259 m_documentsHasBeenSet = true;
260 m_documents = std::forward<DocumentsT>(value);
261 }
262 template <typename DocumentsT = Aws::Vector<DocumentInfo>>
263 ThreatModelJob& WithDocuments(DocumentsT&& value) {
264 SetDocuments(std::forward<DocumentsT>(value));
265 return *this;
266 }
267 template <typename DocumentsT = DocumentInfo>
268 ThreatModelJob& AddDocuments(DocumentsT&& value) {
269 m_documentsHasBeenSet = true;
270 m_documents.emplace_back(std::forward<DocumentsT>(value));
271 return *this;
272 }
274
276
279 inline const Aws::Vector<DocumentInfo>& GetScopeDocs() const { return m_scopeDocs; }
280 inline bool ScopeDocsHasBeenSet() const { return m_scopeDocsHasBeenSet; }
281 template <typename ScopeDocsT = Aws::Vector<DocumentInfo>>
282 void SetScopeDocs(ScopeDocsT&& value) {
283 m_scopeDocsHasBeenSet = true;
284 m_scopeDocs = std::forward<ScopeDocsT>(value);
285 }
286 template <typename ScopeDocsT = Aws::Vector<DocumentInfo>>
287 ThreatModelJob& WithScopeDocs(ScopeDocsT&& value) {
288 SetScopeDocs(std::forward<ScopeDocsT>(value));
289 return *this;
290 }
291 template <typename ScopeDocsT = DocumentInfo>
292 ThreatModelJob& AddScopeDocs(ScopeDocsT&& value) {
293 m_scopeDocsHasBeenSet = true;
294 m_scopeDocs.emplace_back(std::forward<ScopeDocsT>(value));
295 return *this;
296 }
298
300
303 inline const ErrorInformation& GetErrorInformation() const { return m_errorInformation; }
304 inline bool ErrorInformationHasBeenSet() const { return m_errorInformationHasBeenSet; }
305 template <typename ErrorInformationT = ErrorInformation>
306 void SetErrorInformation(ErrorInformationT&& value) {
307 m_errorInformationHasBeenSet = true;
308 m_errorInformation = std::forward<ErrorInformationT>(value);
309 }
310 template <typename ErrorInformationT = ErrorInformation>
311 ThreatModelJob& WithErrorInformation(ErrorInformationT&& value) {
312 SetErrorInformation(std::forward<ErrorInformationT>(value));
313 return *this;
314 }
316
318
321 inline const Aws::String& GetSystemOverview() const { return m_systemOverview; }
322 inline bool SystemOverviewHasBeenSet() const { return m_systemOverviewHasBeenSet; }
323 template <typename SystemOverviewT = Aws::String>
324 void SetSystemOverview(SystemOverviewT&& value) {
325 m_systemOverviewHasBeenSet = true;
326 m_systemOverview = std::forward<SystemOverviewT>(value);
327 }
328 template <typename SystemOverviewT = Aws::String>
329 ThreatModelJob& WithSystemOverview(SystemOverviewT&& value) {
330 SetSystemOverview(std::forward<SystemOverviewT>(value));
331 return *this;
332 }
334
336
340 inline const ReportDestination& GetReportDestination() const { return m_reportDestination; }
341 inline bool ReportDestinationHasBeenSet() const { return m_reportDestinationHasBeenSet; }
342 template <typename ReportDestinationT = ReportDestination>
343 void SetReportDestination(ReportDestinationT&& value) {
344 m_reportDestinationHasBeenSet = true;
345 m_reportDestination = std::forward<ReportDestinationT>(value);
346 }
347 template <typename ReportDestinationT = ReportDestination>
348 ThreatModelJob& WithReportDestination(ReportDestinationT&& value) {
349 SetReportDestination(std::forward<ReportDestinationT>(value));
350 return *this;
351 }
353 private:
354 Aws::String m_threatModelJobId;
355
356 Aws::String m_threatModelId;
357
358 Aws::String m_agentSpaceId;
359
360 Aws::String m_title;
361
363
364 Aws::Utils::DateTime m_createdAt{};
365
366 Aws::Utils::DateTime m_updatedAt{};
367
368 Aws::Utils::DateTime m_executionStartTime{};
369
370 Aws::Utils::DateTime m_executionEndTime{};
371
373
374 Aws::Vector<IntegratedRepository> m_integratedRepositories;
375
376 Aws::Vector<DocumentInfo> m_documents;
377
378 Aws::Vector<DocumentInfo> m_scopeDocs;
379
380 ErrorInformation m_errorInformation;
381
382 Aws::String m_systemOverview;
383
384 ReportDestination m_reportDestination;
385 bool m_threatModelJobIdHasBeenSet = false;
386 bool m_threatModelIdHasBeenSet = false;
387 bool m_agentSpaceIdHasBeenSet = false;
388 bool m_titleHasBeenSet = false;
389 bool m_statusHasBeenSet = false;
390 bool m_createdAtHasBeenSet = false;
391 bool m_updatedAtHasBeenSet = false;
392 bool m_executionStartTimeHasBeenSet = false;
393 bool m_executionEndTimeHasBeenSet = false;
394 bool m_sourceCodeHasBeenSet = false;
395 bool m_integratedRepositoriesHasBeenSet = false;
396 bool m_documentsHasBeenSet = false;
397 bool m_scopeDocsHasBeenSet = false;
398 bool m_errorInformationHasBeenSet = false;
399 bool m_systemOverviewHasBeenSet = false;
400 bool m_reportDestinationHasBeenSet = false;
401};
402
403} // namespace Model
404} // namespace SecurityAgent
405} // namespace Aws
ThreatModelJob & WithThreatModelId(ThreatModelIdT &&value)
ThreatModelJob & WithTitle(TitleT &&value)
void SetExecutionEndTime(ExecutionEndTimeT &&value)
void SetAgentSpaceId(AgentSpaceIdT &&value)
AWS_SECURITYAGENT_API ThreatModelJob()=default
ThreatModelJob & WithSourceCode(SourceCodeT &&value)
ThreatModelJob & AddDocuments(DocumentsT &&value)
const Aws::Vector< DocumentInfo > & GetDocuments() const
const Aws::Utils::DateTime & GetCreatedAt() const
void SetErrorInformation(ErrorInformationT &&value)
ThreatModelJob & AddIntegratedRepositories(IntegratedRepositoriesT &&value)
const Aws::String & GetSystemOverview() const
void SetSystemOverview(SystemOverviewT &&value)
const Aws::Vector< IntegratedRepository > & GetIntegratedRepositories() const
AWS_SECURITYAGENT_API ThreatModelJob(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetThreatModelId() const
ThreatModelJob & WithExecutionEndTime(ExecutionEndTimeT &&value)
void SetReportDestination(ReportDestinationT &&value)
void SetIntegratedRepositories(IntegratedRepositoriesT &&value)
ThreatModelJob & WithUpdatedAt(UpdatedAtT &&value)
void SetThreatModelId(ThreatModelIdT &&value)
const Aws::Vector< DocumentInfo > & GetScopeDocs() const
const Aws::String & GetThreatModelJobId() const
ThreatModelJob & WithThreatModelJobId(ThreatModelJobIdT &&value)
ThreatModelJob & WithCreatedAt(CreatedAtT &&value)
ThreatModelJob & WithReportDestination(ReportDestinationT &&value)
void SetExecutionStartTime(ExecutionStartTimeT &&value)
AWS_SECURITYAGENT_API ThreatModelJob & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetThreatModelJobId(ThreatModelJobIdT &&value)
const ErrorInformation & GetErrorInformation() const
ThreatModelJob & AddSourceCode(SourceCodeT &&value)
ThreatModelJob & AddScopeDocs(ScopeDocsT &&value)
const Aws::Utils::DateTime & GetExecutionEndTime() const
ThreatModelJob & WithStatus(JobStatus value)
ThreatModelJob & WithErrorInformation(ErrorInformationT &&value)
const ReportDestination & GetReportDestination() const
ThreatModelJob & WithDocuments(DocumentsT &&value)
const Aws::Vector< SourceCodeRepository > & GetSourceCode() const
const Aws::String & GetAgentSpaceId() const
ThreatModelJob & WithExecutionStartTime(ExecutionStartTimeT &&value)
ThreatModelJob & WithIntegratedRepositories(IntegratedRepositoriesT &&value)
ThreatModelJob & WithSystemOverview(SystemOverviewT &&value)
const Aws::Utils::DateTime & GetExecutionStartTime() const
const Aws::Utils::DateTime & GetUpdatedAt() const
ThreatModelJob & WithAgentSpaceId(AgentSpaceIdT &&value)
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
ThreatModelJob & WithScopeDocs(ScopeDocsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue