AWS SDK for C++

AWS SDK for C++ Version 1.11.787

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
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>
176 UpdatePentestResult& WithLogConfig(LogConfigT&& value) {
177 SetLogConfig(std::forward<LogConfigT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
187 template <typename AgentSpaceIdT = Aws::String>
188 void SetAgentSpaceId(AgentSpaceIdT&& value) {
189 m_agentSpaceIdHasBeenSet = true;
190 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
191 }
192 template <typename AgentSpaceIdT = Aws::String>
193 UpdatePentestResult& WithAgentSpaceId(AgentSpaceIdT&& value) {
194 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
195 return *this;
196 }
198
200
201 inline const Aws::String& GetRequestId() const { return m_requestId; }
202 template <typename RequestIdT = Aws::String>
203 void SetRequestId(RequestIdT&& value) {
204 m_requestIdHasBeenSet = true;
205 m_requestId = std::forward<RequestIdT>(value);
206 }
207 template <typename RequestIdT = Aws::String>
208 UpdatePentestResult& WithRequestId(RequestIdT&& value) {
209 SetRequestId(std::forward<RequestIdT>(value));
210 return *this;
211 }
213 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
214
215 private:
216 Aws::String m_pentestId;
217
218 Aws::String m_title;
219
220 Aws::Utils::DateTime m_createdAt{};
221
222 Aws::Utils::DateTime m_updatedAt{};
223
224 Assets m_assets;
225
226 Aws::Vector<RiskType> m_excludeRiskTypes;
227
228 Aws::String m_serviceRole;
229
230 CloudWatchLog m_logConfig;
231
232 Aws::String m_agentSpaceId;
233
234 Aws::String m_requestId;
235 Aws::Http::HttpResponseCode m_HttpResponseCode;
236 bool m_pentestIdHasBeenSet = false;
237 bool m_titleHasBeenSet = false;
238 bool m_createdAtHasBeenSet = false;
239 bool m_updatedAtHasBeenSet = false;
240 bool m_assetsHasBeenSet = false;
241 bool m_excludeRiskTypesHasBeenSet = false;
242 bool m_serviceRoleHasBeenSet = false;
243 bool m_logConfigHasBeenSet = false;
244 bool m_agentSpaceIdHasBeenSet = false;
245 bool m_requestIdHasBeenSet = false;
246};
247
248} // namespace Model
249} // namespace SecurityAgent
250} // 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