AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
UpdatePentestResult.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/RiskType.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 UpdatePentestResult() = default;
39
41
44 inline const Aws::String& GetPentestId() const { return m_pentestId; }
45 template <typename PentestIdT = Aws::String>
46 void SetPentestId(PentestIdT&& value) {
47 m_pentestIdHasBeenSet = true;
48 m_pentestId = std::forward<PentestIdT>(value);
49 }
50 template <typename PentestIdT = Aws::String>
51 UpdatePentestResult& WithPentestId(PentestIdT&& value) {
52 SetPentestId(std::forward<PentestIdT>(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>
68 UpdatePentestResult& WithTitle(TitleT&& value) {
69 SetTitle(std::forward<TitleT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
79 template <typename CreatedAtT = Aws::Utils::DateTime>
80 void SetCreatedAt(CreatedAtT&& value) {
81 m_createdAtHasBeenSet = true;
82 m_createdAt = std::forward<CreatedAtT>(value);
83 }
84 template <typename CreatedAtT = Aws::Utils::DateTime>
85 UpdatePentestResult& WithCreatedAt(CreatedAtT&& value) {
86 SetCreatedAt(std::forward<CreatedAtT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
96 template <typename UpdatedAtT = Aws::Utils::DateTime>
97 void SetUpdatedAt(UpdatedAtT&& value) {
98 m_updatedAtHasBeenSet = true;
99 m_updatedAt = std::forward<UpdatedAtT>(value);
100 }
101 template <typename UpdatedAtT = Aws::Utils::DateTime>
102 UpdatePentestResult& WithUpdatedAt(UpdatedAtT&& value) {
103 SetUpdatedAt(std::forward<UpdatedAtT>(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>
119 UpdatePentestResult& WithAssets(AssetsT&& value) {
120 SetAssets(std::forward<AssetsT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::Vector<RiskType>& GetExcludeRiskTypes() const { return m_excludeRiskTypes; }
130 template <typename ExcludeRiskTypesT = Aws::Vector<RiskType>>
131 void SetExcludeRiskTypes(ExcludeRiskTypesT&& value) {
132 m_excludeRiskTypesHasBeenSet = true;
133 m_excludeRiskTypes = std::forward<ExcludeRiskTypesT>(value);
134 }
135 template <typename ExcludeRiskTypesT = Aws::Vector<RiskType>>
136 UpdatePentestResult& WithExcludeRiskTypes(ExcludeRiskTypesT&& value) {
137 SetExcludeRiskTypes(std::forward<ExcludeRiskTypesT>(value));
138 return *this;
139 }
141 m_excludeRiskTypesHasBeenSet = true;
142 m_excludeRiskTypes.push_back(value);
143 return *this;
144 }
146
148
151 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
152 template <typename ServiceRoleT = Aws::String>
153 void SetServiceRole(ServiceRoleT&& value) {
154 m_serviceRoleHasBeenSet = true;
155 m_serviceRole = std::forward<ServiceRoleT>(value);
156 }
157 template <typename ServiceRoleT = Aws::String>
158 UpdatePentestResult& WithServiceRole(ServiceRoleT&& value) {
159 SetServiceRole(std::forward<ServiceRoleT>(value));
160 return *this;
161 }
163
165
168 inline const CloudWatchLog& GetLogConfig() const { return m_logConfig; }
169 template <typename LogConfigT = CloudWatchLog>
170 void SetLogConfig(LogConfigT&& value) {
171 m_logConfigHasBeenSet = true;
172 m_logConfig = std::forward<LogConfigT>(value);
173 }
174 template <typename LogConfigT = CloudWatchLog>
175 UpdatePentestResult& WithLogConfig(LogConfigT&& value) {
176 SetLogConfig(std::forward<LogConfigT>(value));
177 return *this;
178 }
180
182
185 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
186 template <typename AgentSpaceIdT = Aws::String>
187 void SetAgentSpaceId(AgentSpaceIdT&& value) {
188 m_agentSpaceIdHasBeenSet = true;
189 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
190 }
191 template <typename AgentSpaceIdT = Aws::String>
192 UpdatePentestResult& WithAgentSpaceId(AgentSpaceIdT&& value) {
193 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
194 return *this;
195 }
197
199
200 inline const Aws::String& GetRequestId() const { return m_requestId; }
201 template <typename RequestIdT = Aws::String>
202 void SetRequestId(RequestIdT&& value) {
203 m_requestIdHasBeenSet = true;
204 m_requestId = std::forward<RequestIdT>(value);
205 }
206 template <typename RequestIdT = Aws::String>
207 UpdatePentestResult& WithRequestId(RequestIdT&& value) {
208 SetRequestId(std::forward<RequestIdT>(value));
209 return *this;
210 }
212 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
213
214 private:
215 Aws::String m_pentestId;
216
217 Aws::String m_title;
218
219 Aws::Utils::DateTime m_createdAt{};
220
221 Aws::Utils::DateTime m_updatedAt{};
222
223 Assets m_assets;
224
225 Aws::Vector<RiskType> m_excludeRiskTypes;
226
227 Aws::String m_serviceRole;
228
229 CloudWatchLog m_logConfig;
230
231 Aws::String m_agentSpaceId;
232
233 Aws::String m_requestId;
234 Aws::Http::HttpResponseCode m_HttpResponseCode;
235 bool m_pentestIdHasBeenSet = false;
236 bool m_titleHasBeenSet = false;
237 bool m_createdAtHasBeenSet = false;
238 bool m_updatedAtHasBeenSet = false;
239 bool m_assetsHasBeenSet = false;
240 bool m_excludeRiskTypesHasBeenSet = false;
241 bool m_serviceRoleHasBeenSet = false;
242 bool m_logConfigHasBeenSet = false;
243 bool m_agentSpaceIdHasBeenSet = false;
244 bool m_requestIdHasBeenSet = false;
245};
246
247} // namespace Model
248} // namespace SecurityAgent
249} // namespace Aws
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetExcludeRiskTypes(ExcludeRiskTypesT &&value)
const Aws::Vector< RiskType > & GetExcludeRiskTypes() const
UpdatePentestResult & WithAssets(AssetsT &&value)
UpdatePentestResult & WithLogConfig(LogConfigT &&value)
UpdatePentestResult & WithUpdatedAt(UpdatedAtT &&value)
AWS_SECURITYAGENT_API UpdatePentestResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdatePentestResult & WithCreatedAt(CreatedAtT &&value)
UpdatePentestResult & WithExcludeRiskTypes(ExcludeRiskTypesT &&value)
AWS_SECURITYAGENT_API UpdatePentestResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
UpdatePentestResult & WithServiceRole(ServiceRoleT &&value)
UpdatePentestResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
UpdatePentestResult & WithPentestId(PentestIdT &&value)
AWS_SECURITYAGENT_API UpdatePentestResult()=default
UpdatePentestResult & WithAgentSpaceId(AgentSpaceIdT &&value)
UpdatePentestResult & AddExcludeRiskTypes(RiskType value)
UpdatePentestResult & WithTitle(TitleT &&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