AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ResumePentestJobRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityagent/SecurityAgentRequest.h>
10#include <aws/securityagent/SecurityAgent_EXPORTS.h>
11#include <aws/securityagent/model/Actor.h>
12#include <aws/securityagent/model/NetworkTrafficConfig.h>
13#include <aws/securityagent/model/VpcConfig.h>
14
15#include <utility>
16
17namespace Aws {
18namespace SecurityAgent {
19namespace Model {
20
28 public:
29 AWS_SECURITYAGENT_API ResumePentestJobRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "ResumePentestJob"; }
36
37 AWS_SECURITYAGENT_API Aws::String SerializePayload() const override;
38
40
43 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
44 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
45 template <typename AgentSpaceIdT = Aws::String>
46 void SetAgentSpaceId(AgentSpaceIdT&& value) {
47 m_agentSpaceIdHasBeenSet = true;
48 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
49 }
50 template <typename AgentSpaceIdT = Aws::String>
51 ResumePentestJobRequest& WithAgentSpaceId(AgentSpaceIdT&& value) {
52 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetPentestJobId() const { return m_pentestJobId; }
62 inline bool PentestJobIdHasBeenSet() const { return m_pentestJobIdHasBeenSet; }
63 template <typename PentestJobIdT = Aws::String>
64 void SetPentestJobId(PentestJobIdT&& value) {
65 m_pentestJobIdHasBeenSet = true;
66 m_pentestJobId = std::forward<PentestJobIdT>(value);
67 }
68 template <typename PentestJobIdT = Aws::String>
69 ResumePentestJobRequest& WithPentestJobId(PentestJobIdT&& value) {
70 SetPentestJobId(std::forward<PentestJobIdT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::Vector<Actor>& GetActors() const { return m_actors; }
81 inline bool ActorsHasBeenSet() const { return m_actorsHasBeenSet; }
82 template <typename ActorsT = Aws::Vector<Actor>>
83 void SetActors(ActorsT&& value) {
84 m_actorsHasBeenSet = true;
85 m_actors = std::forward<ActorsT>(value);
86 }
87 template <typename ActorsT = Aws::Vector<Actor>>
89 SetActors(std::forward<ActorsT>(value));
90 return *this;
91 }
92 template <typename ActorsT = Actor>
94 m_actorsHasBeenSet = true;
95 m_actors.emplace_back(std::forward<ActorsT>(value));
96 return *this;
97 }
99
101
105 inline const NetworkTrafficConfig& GetNetworkTrafficConfig() const { return m_networkTrafficConfig; }
106 inline bool NetworkTrafficConfigHasBeenSet() const { return m_networkTrafficConfigHasBeenSet; }
107 template <typename NetworkTrafficConfigT = NetworkTrafficConfig>
108 void SetNetworkTrafficConfig(NetworkTrafficConfigT&& value) {
109 m_networkTrafficConfigHasBeenSet = true;
110 m_networkTrafficConfig = std::forward<NetworkTrafficConfigT>(value);
111 }
112 template <typename NetworkTrafficConfigT = NetworkTrafficConfig>
113 ResumePentestJobRequest& WithNetworkTrafficConfig(NetworkTrafficConfigT&& value) {
114 SetNetworkTrafficConfig(std::forward<NetworkTrafficConfigT>(value));
115 return *this;
116 }
118
120
124 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
125 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
126 template <typename VpcConfigT = VpcConfig>
127 void SetVpcConfig(VpcConfigT&& value) {
128 m_vpcConfigHasBeenSet = true;
129 m_vpcConfig = std::forward<VpcConfigT>(value);
130 }
131 template <typename VpcConfigT = VpcConfig>
133 SetVpcConfig(std::forward<VpcConfigT>(value));
134 return *this;
135 }
137
139
143 inline double GetMaxTaskHours() const { return m_maxTaskHours; }
144 inline bool MaxTaskHoursHasBeenSet() const { return m_maxTaskHoursHasBeenSet; }
145 inline void SetMaxTaskHours(double value) {
146 m_maxTaskHoursHasBeenSet = true;
147 m_maxTaskHours = value;
148 }
150 SetMaxTaskHours(value);
151 return *this;
152 }
154
156
162 inline bool GetCopyConfigFromPentest() const { return m_copyConfigFromPentest; }
163 inline bool CopyConfigFromPentestHasBeenSet() const { return m_copyConfigFromPentestHasBeenSet; }
164 inline void SetCopyConfigFromPentest(bool value) {
165 m_copyConfigFromPentestHasBeenSet = true;
166 m_copyConfigFromPentest = value;
167 }
170 return *this;
171 }
173 private:
174 Aws::String m_agentSpaceId;
175
176 Aws::String m_pentestJobId;
177
178 Aws::Vector<Actor> m_actors;
179
180 NetworkTrafficConfig m_networkTrafficConfig;
181
182 VpcConfig m_vpcConfig;
183
184 double m_maxTaskHours{0.0};
185
186 bool m_copyConfigFromPentest{false};
187 bool m_agentSpaceIdHasBeenSet = false;
188 bool m_pentestJobIdHasBeenSet = false;
189 bool m_actorsHasBeenSet = false;
190 bool m_networkTrafficConfigHasBeenSet = false;
191 bool m_vpcConfigHasBeenSet = false;
192 bool m_maxTaskHoursHasBeenSet = false;
193 bool m_copyConfigFromPentestHasBeenSet = false;
194};
195
196} // namespace Model
197} // namespace SecurityAgent
198} // namespace Aws
ResumePentestJobRequest & WithNetworkTrafficConfig(NetworkTrafficConfigT &&value)
AWS_SECURITYAGENT_API ResumePentestJobRequest()=default
ResumePentestJobRequest & AddActors(ActorsT &&value)
AWS_SECURITYAGENT_API Aws::String SerializePayload() const override
ResumePentestJobRequest & WithAgentSpaceId(AgentSpaceIdT &&value)
ResumePentestJobRequest & WithActors(ActorsT &&value)
virtual const char * GetServiceRequestName() const override
const NetworkTrafficConfig & GetNetworkTrafficConfig() const
ResumePentestJobRequest & WithPentestJobId(PentestJobIdT &&value)
void SetNetworkTrafficConfig(NetworkTrafficConfigT &&value)
ResumePentestJobRequest & WithMaxTaskHours(double value)
ResumePentestJobRequest & WithCopyConfigFromPentest(bool value)
ResumePentestJobRequest & WithVpcConfig(VpcConfigT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector