AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
RunMicrovmRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lambda-microvms/LambdaMicrovmsRequest.h>
11#include <aws/lambda-microvms/LambdaMicrovms_EXPORTS.h>
12#include <aws/lambda-microvms/model/IdlePolicy.h>
13#include <aws/lambda-microvms/model/Logging.h>
14
15#include <utility>
16
17namespace Aws {
18namespace LambdaMicrovms {
19namespace Model {
20
24 public:
25 AWS_LAMBDAMICROVMS_API RunMicrovmRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "RunMicrovm"; }
32
33 AWS_LAMBDAMICROVMS_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::Vector<Aws::String>& GetIngressNetworkConnectors() const { return m_ingressNetworkConnectors; }
40 inline bool IngressNetworkConnectorsHasBeenSet() const { return m_ingressNetworkConnectorsHasBeenSet; }
41 template <typename IngressNetworkConnectorsT = Aws::Vector<Aws::String>>
42 void SetIngressNetworkConnectors(IngressNetworkConnectorsT&& value) {
43 m_ingressNetworkConnectorsHasBeenSet = true;
44 m_ingressNetworkConnectors = std::forward<IngressNetworkConnectorsT>(value);
45 }
46 template <typename IngressNetworkConnectorsT = Aws::Vector<Aws::String>>
47 RunMicrovmRequest& WithIngressNetworkConnectors(IngressNetworkConnectorsT&& value) {
48 SetIngressNetworkConnectors(std::forward<IngressNetworkConnectorsT>(value));
49 return *this;
50 }
51 template <typename IngressNetworkConnectorsT = Aws::String>
52 RunMicrovmRequest& AddIngressNetworkConnectors(IngressNetworkConnectorsT&& value) {
53 m_ingressNetworkConnectorsHasBeenSet = true;
54 m_ingressNetworkConnectors.emplace_back(std::forward<IngressNetworkConnectorsT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::Vector<Aws::String>& GetEgressNetworkConnectors() const { return m_egressNetworkConnectors; }
65 inline bool EgressNetworkConnectorsHasBeenSet() const { return m_egressNetworkConnectorsHasBeenSet; }
66 template <typename EgressNetworkConnectorsT = Aws::Vector<Aws::String>>
67 void SetEgressNetworkConnectors(EgressNetworkConnectorsT&& value) {
68 m_egressNetworkConnectorsHasBeenSet = true;
69 m_egressNetworkConnectors = std::forward<EgressNetworkConnectorsT>(value);
70 }
71 template <typename EgressNetworkConnectorsT = Aws::Vector<Aws::String>>
72 RunMicrovmRequest& WithEgressNetworkConnectors(EgressNetworkConnectorsT&& value) {
73 SetEgressNetworkConnectors(std::forward<EgressNetworkConnectorsT>(value));
74 return *this;
75 }
76 template <typename EgressNetworkConnectorsT = Aws::String>
77 RunMicrovmRequest& AddEgressNetworkConnectors(EgressNetworkConnectorsT&& value) {
78 m_egressNetworkConnectorsHasBeenSet = true;
79 m_egressNetworkConnectors.emplace_back(std::forward<EgressNetworkConnectorsT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetImageIdentifier() const { return m_imageIdentifier; }
89 inline bool ImageIdentifierHasBeenSet() const { return m_imageIdentifierHasBeenSet; }
90 template <typename ImageIdentifierT = Aws::String>
91 void SetImageIdentifier(ImageIdentifierT&& value) {
92 m_imageIdentifierHasBeenSet = true;
93 m_imageIdentifier = std::forward<ImageIdentifierT>(value);
94 }
95 template <typename ImageIdentifierT = Aws::String>
96 RunMicrovmRequest& WithImageIdentifier(ImageIdentifierT&& value) {
97 SetImageIdentifier(std::forward<ImageIdentifierT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::String& GetImageVersion() const { return m_imageVersion; }
107 inline bool ImageVersionHasBeenSet() const { return m_imageVersionHasBeenSet; }
108 template <typename ImageVersionT = Aws::String>
109 void SetImageVersion(ImageVersionT&& value) {
110 m_imageVersionHasBeenSet = true;
111 m_imageVersion = std::forward<ImageVersionT>(value);
112 }
113 template <typename ImageVersionT = Aws::String>
114 RunMicrovmRequest& WithImageVersion(ImageVersionT&& value) {
115 SetImageVersion(std::forward<ImageVersionT>(value));
116 return *this;
117 }
119
121
124 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
125 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
126 template <typename ExecutionRoleArnT = Aws::String>
127 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
128 m_executionRoleArnHasBeenSet = true;
129 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
130 }
131 template <typename ExecutionRoleArnT = Aws::String>
132 RunMicrovmRequest& WithExecutionRoleArn(ExecutionRoleArnT&& value) {
133 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
134 return *this;
135 }
137
139
142 inline const IdlePolicy& GetIdlePolicy() const { return m_idlePolicy; }
143 inline bool IdlePolicyHasBeenSet() const { return m_idlePolicyHasBeenSet; }
144 template <typename IdlePolicyT = IdlePolicy>
145 void SetIdlePolicy(IdlePolicyT&& value) {
146 m_idlePolicyHasBeenSet = true;
147 m_idlePolicy = std::forward<IdlePolicyT>(value);
148 }
149 template <typename IdlePolicyT = IdlePolicy>
150 RunMicrovmRequest& WithIdlePolicy(IdlePolicyT&& value) {
151 SetIdlePolicy(std::forward<IdlePolicyT>(value));
152 return *this;
153 }
155
157
162 inline const Logging& GetLogging() const { return m_logging; }
163 inline bool LoggingHasBeenSet() const { return m_loggingHasBeenSet; }
164 template <typename LoggingT = Logging>
165 void SetLogging(LoggingT&& value) {
166 m_loggingHasBeenSet = true;
167 m_logging = std::forward<LoggingT>(value);
168 }
169 template <typename LoggingT = Logging>
170 RunMicrovmRequest& WithLogging(LoggingT&& value) {
171 SetLogging(std::forward<LoggingT>(value));
172 return *this;
173 }
175
177
184 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
185 inline bool KmsKeyIdentifierHasBeenSet() const { return m_kmsKeyIdentifierHasBeenSet; }
186 template <typename KmsKeyIdentifierT = Aws::String>
187 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
188 m_kmsKeyIdentifierHasBeenSet = true;
189 m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value);
190 }
191 template <typename KmsKeyIdentifierT = Aws::String>
192 RunMicrovmRequest& WithKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
193 SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value));
194 return *this;
195 }
197
199
204 inline const Aws::String& GetRunHookPayload() const { return m_runHookPayload; }
205 inline bool RunHookPayloadHasBeenSet() const { return m_runHookPayloadHasBeenSet; }
206 template <typename RunHookPayloadT = Aws::String>
207 void SetRunHookPayload(RunHookPayloadT&& value) {
208 m_runHookPayloadHasBeenSet = true;
209 m_runHookPayload = std::forward<RunHookPayloadT>(value);
210 }
211 template <typename RunHookPayloadT = Aws::String>
212 RunMicrovmRequest& WithRunHookPayload(RunHookPayloadT&& value) {
213 SetRunHookPayload(std::forward<RunHookPayloadT>(value));
214 return *this;
215 }
217
219
223 inline int GetMaximumDurationInSeconds() const { return m_maximumDurationInSeconds; }
224 inline bool MaximumDurationInSecondsHasBeenSet() const { return m_maximumDurationInSecondsHasBeenSet; }
225 inline void SetMaximumDurationInSeconds(int value) {
226 m_maximumDurationInSecondsHasBeenSet = true;
227 m_maximumDurationInSeconds = value;
228 }
231 return *this;
232 }
234
236
240 inline const Aws::String& GetClientToken() const { return m_clientToken; }
241 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
242 template <typename ClientTokenT = Aws::String>
243 void SetClientToken(ClientTokenT&& value) {
244 m_clientTokenHasBeenSet = true;
245 m_clientToken = std::forward<ClientTokenT>(value);
246 }
247 template <typename ClientTokenT = Aws::String>
248 RunMicrovmRequest& WithClientToken(ClientTokenT&& value) {
249 SetClientToken(std::forward<ClientTokenT>(value));
250 return *this;
251 }
253 private:
254 Aws::Vector<Aws::String> m_ingressNetworkConnectors;
255
256 Aws::Vector<Aws::String> m_egressNetworkConnectors;
257
258 Aws::String m_imageIdentifier;
259
260 Aws::String m_imageVersion;
261
262 Aws::String m_executionRoleArn;
263
264 IdlePolicy m_idlePolicy;
265
266 Logging m_logging;
267
268 Aws::String m_kmsKeyIdentifier;
269
270 Aws::String m_runHookPayload;
271
272 int m_maximumDurationInSeconds{0};
273
275 bool m_ingressNetworkConnectorsHasBeenSet = false;
276 bool m_egressNetworkConnectorsHasBeenSet = false;
277 bool m_imageIdentifierHasBeenSet = false;
278 bool m_imageVersionHasBeenSet = false;
279 bool m_executionRoleArnHasBeenSet = false;
280 bool m_idlePolicyHasBeenSet = false;
281 bool m_loggingHasBeenSet = false;
282 bool m_kmsKeyIdentifierHasBeenSet = false;
283 bool m_runHookPayloadHasBeenSet = false;
284 bool m_maximumDurationInSecondsHasBeenSet = false;
285 bool m_clientTokenHasBeenSet = true;
286};
287
288} // namespace Model
289} // namespace LambdaMicrovms
290} // namespace Aws
void SetRunHookPayload(RunHookPayloadT &&value)
void SetExecutionRoleArn(ExecutionRoleArnT &&value)
const Aws::Vector< Aws::String > & GetEgressNetworkConnectors() const
void SetIngressNetworkConnectors(IngressNetworkConnectorsT &&value)
RunMicrovmRequest & WithIdlePolicy(IdlePolicyT &&value)
RunMicrovmRequest & WithImageIdentifier(ImageIdentifierT &&value)
RunMicrovmRequest & AddEgressNetworkConnectors(EgressNetworkConnectorsT &&value)
AWS_LAMBDAMICROVMS_API Aws::String SerializePayload() const override
void SetKmsKeyIdentifier(KmsKeyIdentifierT &&value)
RunMicrovmRequest & WithExecutionRoleArn(ExecutionRoleArnT &&value)
RunMicrovmRequest & WithEgressNetworkConnectors(EgressNetworkConnectorsT &&value)
RunMicrovmRequest & WithIngressNetworkConnectors(IngressNetworkConnectorsT &&value)
RunMicrovmRequest & WithRunHookPayload(RunHookPayloadT &&value)
const Aws::Vector< Aws::String > & GetIngressNetworkConnectors() const
RunMicrovmRequest & WithMaximumDurationInSeconds(int value)
RunMicrovmRequest & WithKmsKeyIdentifier(KmsKeyIdentifierT &&value)
void SetEgressNetworkConnectors(EgressNetworkConnectorsT &&value)
RunMicrovmRequest & WithImageVersion(ImageVersionT &&value)
virtual const char * GetServiceRequestName() const override
AWS_LAMBDAMICROVMS_API RunMicrovmRequest()=default
RunMicrovmRequest & AddIngressNetworkConnectors(IngressNetworkConnectorsT &&value)
void SetImageIdentifier(ImageIdentifierT &&value)
RunMicrovmRequest & WithLogging(LoggingT &&value)
RunMicrovmRequest & WithClientToken(ClientTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector