AWS SDK for C++

AWS SDK for C++ Version 1.11.845

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
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace SecurityAgent {
28namespace Model {
35 public:
36 AWS_SECURITYAGENT_API CreateThreatModelResult() = default;
39
41
44 inline const Aws::String& GetThreatModelId() const { return m_threatModelId; }
45 template <typename ThreatModelIdT = Aws::String>
46 void SetThreatModelId(ThreatModelIdT&& value) {
47 m_threatModelIdHasBeenSet = true;
48 m_threatModelId = std::forward<ThreatModelIdT>(value);
49 }
50 template <typename ThreatModelIdT = Aws::String>
51 CreateThreatModelResult& WithThreatModelId(ThreatModelIdT&& value) {
52 SetThreatModelId(std::forward<ThreatModelIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetTitle() const { return m_title; }
62 template <typename TitleT = Aws::String>
63 void SetTitle(TitleT&& value) {
64 m_titleHasBeenSet = true;
65 m_title = std::forward<TitleT>(value);
66 }
67 template <typename TitleT = Aws::String>
69 SetTitle(std::forward<TitleT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
79 template <typename AgentSpaceIdT = Aws::String>
80 void SetAgentSpaceId(AgentSpaceIdT&& value) {
81 m_agentSpaceIdHasBeenSet = true;
82 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
83 }
84 template <typename AgentSpaceIdT = Aws::String>
85 CreateThreatModelResult& WithAgentSpaceId(AgentSpaceIdT&& value) {
86 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetDescription() const { return m_description; }
96 template <typename DescriptionT = Aws::String>
97 void SetDescription(DescriptionT&& value) {
98 m_descriptionHasBeenSet = true;
99 m_description = std::forward<DescriptionT>(value);
100 }
101 template <typename DescriptionT = Aws::String>
103 SetDescription(std::forward<DescriptionT>(value));
104 return *this;
105 }
107
109
112 inline const Assets& GetAssets() const { return m_assets; }
113 template <typename AssetsT = Assets>
114 void SetAssets(AssetsT&& value) {
115 m_assetsHasBeenSet = true;
116 m_assets = std::forward<AssetsT>(value);
117 }
118 template <typename AssetsT = Assets>
120 SetAssets(std::forward<AssetsT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::Vector<DocumentInfo>& GetScopeDocs() const { return m_scopeDocs; }
130 template <typename ScopeDocsT = Aws::Vector<DocumentInfo>>
131 void SetScopeDocs(ScopeDocsT&& value) {
132 m_scopeDocsHasBeenSet = true;
133 m_scopeDocs = std::forward<ScopeDocsT>(value);
134 }
135 template <typename ScopeDocsT = Aws::Vector<DocumentInfo>>
137 SetScopeDocs(std::forward<ScopeDocsT>(value));
138 return *this;
139 }
140 template <typename ScopeDocsT = DocumentInfo>
142 m_scopeDocsHasBeenSet = true;
143 m_scopeDocs.emplace_back(std::forward<ScopeDocsT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
153 template <typename ServiceRoleT = Aws::String>
154 void SetServiceRole(ServiceRoleT&& value) {
155 m_serviceRoleHasBeenSet = true;
156 m_serviceRole = std::forward<ServiceRoleT>(value);
157 }
158 template <typename ServiceRoleT = Aws::String>
160 SetServiceRole(std::forward<ServiceRoleT>(value));
161 return *this;
162 }
164
166
169 inline const CloudWatchLog& GetLogConfig() const { return m_logConfig; }
170 template <typename LogConfigT = CloudWatchLog>
171 void SetLogConfig(LogConfigT&& value) {
172 m_logConfigHasBeenSet = true;
173 m_logConfig = std::forward<LogConfigT>(value);
174 }
175 template <typename LogConfigT = CloudWatchLog>
177 SetLogConfig(std::forward<LogConfigT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
187 template <typename CreatedAtT = Aws::Utils::DateTime>
188 void SetCreatedAt(CreatedAtT&& value) {
189 m_createdAtHasBeenSet = true;
190 m_createdAt = std::forward<CreatedAtT>(value);
191 }
192 template <typename CreatedAtT = Aws::Utils::DateTime>
194 SetCreatedAt(std::forward<CreatedAtT>(value));
195 return *this;
196 }
198
200
203 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
204 template <typename UpdatedAtT = Aws::Utils::DateTime>
205 void SetUpdatedAt(UpdatedAtT&& value) {
206 m_updatedAtHasBeenSet = true;
207 m_updatedAt = std::forward<UpdatedAtT>(value);
208 }
209 template <typename UpdatedAtT = Aws::Utils::DateTime>
211 SetUpdatedAt(std::forward<UpdatedAtT>(value));
212 return *this;
213 }
215
217
218 inline const Aws::String& GetRequestId() const { return m_requestId; }
219 template <typename RequestIdT = Aws::String>
220 void SetRequestId(RequestIdT&& value) {
221 m_requestIdHasBeenSet = true;
222 m_requestId = std::forward<RequestIdT>(value);
223 }
224 template <typename RequestIdT = Aws::String>
226 SetRequestId(std::forward<RequestIdT>(value));
227 return *this;
228 }
230 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
231
232 private:
233 Aws::String m_threatModelId;
234
235 Aws::String m_title;
236
237 Aws::String m_agentSpaceId;
238
239 Aws::String m_description;
240
241 Assets m_assets;
242
243 Aws::Vector<DocumentInfo> m_scopeDocs;
244
245 Aws::String m_serviceRole;
246
247 CloudWatchLog m_logConfig;
248
249 Aws::Utils::DateTime m_createdAt{};
250
251 Aws::Utils::DateTime m_updatedAt{};
252
253 Aws::String m_requestId;
254 Aws::Http::HttpResponseCode m_HttpResponseCode;
255 bool m_threatModelIdHasBeenSet = false;
256 bool m_titleHasBeenSet = false;
257 bool m_agentSpaceIdHasBeenSet = false;
258 bool m_descriptionHasBeenSet = false;
259 bool m_assetsHasBeenSet = false;
260 bool m_scopeDocsHasBeenSet = false;
261 bool m_serviceRoleHasBeenSet = false;
262 bool m_logConfigHasBeenSet = false;
263 bool m_createdAtHasBeenSet = false;
264 bool m_updatedAtHasBeenSet = false;
265 bool m_requestIdHasBeenSet = false;
266};
267
268} // namespace Model
269} // namespace SecurityAgent
270} // namespace Aws
CreateThreatModelResult & WithThreatModelId(ThreatModelIdT &&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