AWS SDK for C++

AWS SDK for C++ Version 1.11.903

Loading...
Searching...
No Matches
CreateThreatModelResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/securityagent/SecurityAgent_EXPORTS.h>
12#include <aws/securityagent/model/Assets.h>
13#include <aws/securityagent/model/CloudWatchLog.h>
14#include <aws/securityagent/model/DocumentInfo.h>
15#include <aws/securityagent/model/ReportDestination.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace SecurityAgent {
29namespace Model {
36 public:
37 AWS_SECURITYAGENT_API CreateThreatModelResult() = default;
40
42
45 inline const Aws::String& GetThreatModelId() const { return m_threatModelId; }
46 template <typename ThreatModelIdT = Aws::String>
47 void SetThreatModelId(ThreatModelIdT&& value) {
48 m_threatModelIdHasBeenSet = true;
49 m_threatModelId = std::forward<ThreatModelIdT>(value);
50 }
51 template <typename ThreatModelIdT = Aws::String>
52 CreateThreatModelResult& WithThreatModelId(ThreatModelIdT&& value) {
53 SetThreatModelId(std::forward<ThreatModelIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetTitle() const { return m_title; }
63 template <typename TitleT = Aws::String>
64 void SetTitle(TitleT&& value) {
65 m_titleHasBeenSet = true;
66 m_title = std::forward<TitleT>(value);
67 }
68 template <typename TitleT = Aws::String>
70 SetTitle(std::forward<TitleT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
80 template <typename AgentSpaceIdT = Aws::String>
81 void SetAgentSpaceId(AgentSpaceIdT&& value) {
82 m_agentSpaceIdHasBeenSet = true;
83 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
84 }
85 template <typename AgentSpaceIdT = Aws::String>
86 CreateThreatModelResult& WithAgentSpaceId(AgentSpaceIdT&& value) {
87 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetDescription() const { return m_description; }
97 template <typename DescriptionT = Aws::String>
98 void SetDescription(DescriptionT&& value) {
99 m_descriptionHasBeenSet = true;
100 m_description = std::forward<DescriptionT>(value);
101 }
102 template <typename DescriptionT = Aws::String>
104 SetDescription(std::forward<DescriptionT>(value));
105 return *this;
106 }
108
110
113 inline const Assets& GetAssets() const { return m_assets; }
114 template <typename AssetsT = Assets>
115 void SetAssets(AssetsT&& value) {
116 m_assetsHasBeenSet = true;
117 m_assets = std::forward<AssetsT>(value);
118 }
119 template <typename AssetsT = Assets>
121 SetAssets(std::forward<AssetsT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::Vector<DocumentInfo>& GetScopeDocs() const { return m_scopeDocs; }
131 template <typename ScopeDocsT = Aws::Vector<DocumentInfo>>
132 void SetScopeDocs(ScopeDocsT&& value) {
133 m_scopeDocsHasBeenSet = true;
134 m_scopeDocs = std::forward<ScopeDocsT>(value);
135 }
136 template <typename ScopeDocsT = Aws::Vector<DocumentInfo>>
138 SetScopeDocs(std::forward<ScopeDocsT>(value));
139 return *this;
140 }
141 template <typename ScopeDocsT = DocumentInfo>
143 m_scopeDocsHasBeenSet = true;
144 m_scopeDocs.emplace_back(std::forward<ScopeDocsT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
154 template <typename ServiceRoleT = Aws::String>
155 void SetServiceRole(ServiceRoleT&& value) {
156 m_serviceRoleHasBeenSet = true;
157 m_serviceRole = std::forward<ServiceRoleT>(value);
158 }
159 template <typename ServiceRoleT = Aws::String>
161 SetServiceRole(std::forward<ServiceRoleT>(value));
162 return *this;
163 }
165
167
170 inline const CloudWatchLog& GetLogConfig() const { return m_logConfig; }
171 template <typename LogConfigT = CloudWatchLog>
172 void SetLogConfig(LogConfigT&& value) {
173 m_logConfigHasBeenSet = true;
174 m_logConfig = std::forward<LogConfigT>(value);
175 }
176 template <typename LogConfigT = CloudWatchLog>
178 SetLogConfig(std::forward<LogConfigT>(value));
179 return *this;
180 }
182
184
187 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
188 template <typename CreatedAtT = Aws::Utils::DateTime>
189 void SetCreatedAt(CreatedAtT&& value) {
190 m_createdAtHasBeenSet = true;
191 m_createdAt = std::forward<CreatedAtT>(value);
192 }
193 template <typename CreatedAtT = Aws::Utils::DateTime>
195 SetCreatedAt(std::forward<CreatedAtT>(value));
196 return *this;
197 }
199
201
204 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
205 template <typename UpdatedAtT = Aws::Utils::DateTime>
206 void SetUpdatedAt(UpdatedAtT&& value) {
207 m_updatedAtHasBeenSet = true;
208 m_updatedAt = std::forward<UpdatedAtT>(value);
209 }
210 template <typename UpdatedAtT = Aws::Utils::DateTime>
212 SetUpdatedAt(std::forward<UpdatedAtT>(value));
213 return *this;
214 }
216
218
222 inline const ReportDestination& GetReportDestination() const { return m_reportDestination; }
223 template <typename ReportDestinationT = ReportDestination>
224 void SetReportDestination(ReportDestinationT&& value) {
225 m_reportDestinationHasBeenSet = true;
226 m_reportDestination = std::forward<ReportDestinationT>(value);
227 }
228 template <typename ReportDestinationT = ReportDestination>
229 CreateThreatModelResult& WithReportDestination(ReportDestinationT&& value) {
230 SetReportDestination(std::forward<ReportDestinationT>(value));
231 return *this;
232 }
234
236
237 inline const Aws::String& GetRequestId() const { return m_requestId; }
238 template <typename RequestIdT = Aws::String>
239 void SetRequestId(RequestIdT&& value) {
240 m_requestIdHasBeenSet = true;
241 m_requestId = std::forward<RequestIdT>(value);
242 }
243 template <typename RequestIdT = Aws::String>
245 SetRequestId(std::forward<RequestIdT>(value));
246 return *this;
247 }
249 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
250
251 private:
252 Aws::String m_threatModelId;
253
254 Aws::String m_title;
255
256 Aws::String m_agentSpaceId;
257
258 Aws::String m_description;
259
260 Assets m_assets;
261
262 Aws::Vector<DocumentInfo> m_scopeDocs;
263
264 Aws::String m_serviceRole;
265
266 CloudWatchLog m_logConfig;
267
268 Aws::Utils::DateTime m_createdAt{};
269
270 Aws::Utils::DateTime m_updatedAt{};
271
272 ReportDestination m_reportDestination;
273
274 Aws::String m_requestId;
275 Aws::Http::HttpResponseCode m_HttpResponseCode;
276 bool m_threatModelIdHasBeenSet = false;
277 bool m_titleHasBeenSet = false;
278 bool m_agentSpaceIdHasBeenSet = false;
279 bool m_descriptionHasBeenSet = false;
280 bool m_assetsHasBeenSet = false;
281 bool m_scopeDocsHasBeenSet = false;
282 bool m_serviceRoleHasBeenSet = false;
283 bool m_logConfigHasBeenSet = false;
284 bool m_createdAtHasBeenSet = false;
285 bool m_updatedAtHasBeenSet = false;
286 bool m_reportDestinationHasBeenSet = false;
287 bool m_requestIdHasBeenSet = false;
288};
289
290} // namespace Model
291} // namespace SecurityAgent
292} // namespace Aws
CreateThreatModelResult & WithThreatModelId(ThreatModelIdT &&value)
CreateThreatModelResult & WithReportDestination(ReportDestinationT &&value)
AWS_SECURITYAGENT_API CreateThreatModelResult()=default
CreateThreatModelResult & WithTitle(TitleT &&value)
CreateThreatModelResult & WithServiceRole(ServiceRoleT &&value)
AWS_SECURITYAGENT_API CreateThreatModelResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateThreatModelResult & WithDescription(DescriptionT &&value)
CreateThreatModelResult & AddScopeDocs(ScopeDocsT &&value)
CreateThreatModelResult & WithScopeDocs(ScopeDocsT &&value)
AWS_SECURITYAGENT_API CreateThreatModelResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< DocumentInfo > & GetScopeDocs() const
CreateThreatModelResult & WithCreatedAt(CreatedAtT &&value)
CreateThreatModelResult & WithLogConfig(LogConfigT &&value)
CreateThreatModelResult & WithUpdatedAt(UpdatedAtT &&value)
CreateThreatModelResult & WithAgentSpaceId(AgentSpaceIdT &&value)
CreateThreatModelResult & WithAssets(AssetsT &&value)
CreateThreatModelResult & WithRequestId(RequestIdT &&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