AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
StartCanaryDryRunRequest.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/synthetics/SyntheticsRequest.h>
10#include <aws/synthetics/Synthetics_EXPORTS.h>
11#include <aws/synthetics/model/ArtifactConfigInput.h>
12#include <aws/synthetics/model/BrowserConfig.h>
13#include <aws/synthetics/model/CanaryCodeInput.h>
14#include <aws/synthetics/model/CanaryRunConfigInput.h>
15#include <aws/synthetics/model/ProvisionedResourceCleanupSetting.h>
16#include <aws/synthetics/model/VisualReferenceInput.h>
17#include <aws/synthetics/model/VpcConfigInput.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Synthetics {
23namespace Model {
24
28 public:
29 AWS_SYNTHETICS_API StartCanaryDryRunRequest() = 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 "StartCanaryDryRun"; }
36
37 AWS_SYNTHETICS_API Aws::String SerializePayload() const override;
38
40
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
60 inline const CanaryCodeInput& GetCode() const { return m_code; }
61 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
62 template <typename CodeT = CanaryCodeInput>
63 void SetCode(CodeT&& value) {
64 m_codeHasBeenSet = true;
65 m_code = std::forward<CodeT>(value);
66 }
67 template <typename CodeT = CanaryCodeInput>
69 SetCode(std::forward<CodeT>(value));
70 return *this;
71 }
73
75
81 inline const Aws::String& GetRuntimeVersion() const { return m_runtimeVersion; }
82 inline bool RuntimeVersionHasBeenSet() const { return m_runtimeVersionHasBeenSet; }
83 template <typename RuntimeVersionT = Aws::String>
84 void SetRuntimeVersion(RuntimeVersionT&& value) {
85 m_runtimeVersionHasBeenSet = true;
86 m_runtimeVersion = std::forward<RuntimeVersionT>(value);
87 }
88 template <typename RuntimeVersionT = Aws::String>
89 StartCanaryDryRunRequest& WithRuntimeVersion(RuntimeVersionT&& value) {
90 SetRuntimeVersion(std::forward<RuntimeVersionT>(value));
91 return *this;
92 }
94
96
97 inline const CanaryRunConfigInput& GetRunConfig() const { return m_runConfig; }
98 inline bool RunConfigHasBeenSet() const { return m_runConfigHasBeenSet; }
99 template <typename RunConfigT = CanaryRunConfigInput>
100 void SetRunConfig(RunConfigT&& value) {
101 m_runConfigHasBeenSet = true;
102 m_runConfig = std::forward<RunConfigT>(value);
103 }
104 template <typename RunConfigT = CanaryRunConfigInput>
106 SetRunConfig(std::forward<RunConfigT>(value));
107 return *this;
108 }
110
112
113 inline const VpcConfigInput& GetVpcConfig() const { return m_vpcConfig; }
114 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
115 template <typename VpcConfigT = VpcConfigInput>
116 void SetVpcConfig(VpcConfigT&& value) {
117 m_vpcConfigHasBeenSet = true;
118 m_vpcConfig = std::forward<VpcConfigT>(value);
119 }
120 template <typename VpcConfigT = VpcConfigInput>
122 SetVpcConfig(std::forward<VpcConfigT>(value));
123 return *this;
124 }
126
128
133 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
134 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
135 template <typename ExecutionRoleArnT = Aws::String>
136 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
137 m_executionRoleArnHasBeenSet = true;
138 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
139 }
140 template <typename ExecutionRoleArnT = Aws::String>
141 StartCanaryDryRunRequest& WithExecutionRoleArn(ExecutionRoleArnT&& value) {
142 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
143 return *this;
144 }
146
148
155 inline int GetSuccessRetentionPeriodInDays() const { return m_successRetentionPeriodInDays; }
156 inline bool SuccessRetentionPeriodInDaysHasBeenSet() const { return m_successRetentionPeriodInDaysHasBeenSet; }
157 inline void SetSuccessRetentionPeriodInDays(int value) {
158 m_successRetentionPeriodInDaysHasBeenSet = true;
159 m_successRetentionPeriodInDays = value;
160 }
163 return *this;
164 }
166
168
175 inline int GetFailureRetentionPeriodInDays() const { return m_failureRetentionPeriodInDays; }
176 inline bool FailureRetentionPeriodInDaysHasBeenSet() const { return m_failureRetentionPeriodInDaysHasBeenSet; }
177 inline void SetFailureRetentionPeriodInDays(int value) {
178 m_failureRetentionPeriodInDaysHasBeenSet = true;
179 m_failureRetentionPeriodInDays = value;
180 }
183 return *this;
184 }
186
188
189 inline const VisualReferenceInput& GetVisualReference() const { return m_visualReference; }
190 inline bool VisualReferenceHasBeenSet() const { return m_visualReferenceHasBeenSet; }
191 template <typename VisualReferenceT = VisualReferenceInput>
192 void SetVisualReference(VisualReferenceT&& value) {
193 m_visualReferenceHasBeenSet = true;
194 m_visualReference = std::forward<VisualReferenceT>(value);
195 }
196 template <typename VisualReferenceT = VisualReferenceInput>
198 SetVisualReference(std::forward<VisualReferenceT>(value));
199 return *this;
200 }
202
204
209 inline const Aws::String& GetArtifactS3Location() const { return m_artifactS3Location; }
210 inline bool ArtifactS3LocationHasBeenSet() const { return m_artifactS3LocationHasBeenSet; }
211 template <typename ArtifactS3LocationT = Aws::String>
212 void SetArtifactS3Location(ArtifactS3LocationT&& value) {
213 m_artifactS3LocationHasBeenSet = true;
214 m_artifactS3Location = std::forward<ArtifactS3LocationT>(value);
215 }
216 template <typename ArtifactS3LocationT = Aws::String>
217 StartCanaryDryRunRequest& WithArtifactS3Location(ArtifactS3LocationT&& value) {
218 SetArtifactS3Location(std::forward<ArtifactS3LocationT>(value));
219 return *this;
220 }
222
224
225 inline const ArtifactConfigInput& GetArtifactConfig() const { return m_artifactConfig; }
226 inline bool ArtifactConfigHasBeenSet() const { return m_artifactConfigHasBeenSet; }
227 template <typename ArtifactConfigT = ArtifactConfigInput>
228 void SetArtifactConfig(ArtifactConfigT&& value) {
229 m_artifactConfigHasBeenSet = true;
230 m_artifactConfig = std::forward<ArtifactConfigT>(value);
231 }
232 template <typename ArtifactConfigT = ArtifactConfigInput>
234 SetArtifactConfig(std::forward<ArtifactConfigT>(value));
235 return *this;
236 }
238
240
251 inline ProvisionedResourceCleanupSetting GetProvisionedResourceCleanup() const { return m_provisionedResourceCleanup; }
252 inline bool ProvisionedResourceCleanupHasBeenSet() const { return m_provisionedResourceCleanupHasBeenSet; }
254 m_provisionedResourceCleanupHasBeenSet = true;
255 m_provisionedResourceCleanup = value;
256 }
259 return *this;
260 }
262
264
270 inline const Aws::Vector<BrowserConfig>& GetBrowserConfigs() const { return m_browserConfigs; }
271 inline bool BrowserConfigsHasBeenSet() const { return m_browserConfigsHasBeenSet; }
272 template <typename BrowserConfigsT = Aws::Vector<BrowserConfig>>
273 void SetBrowserConfigs(BrowserConfigsT&& value) {
274 m_browserConfigsHasBeenSet = true;
275 m_browserConfigs = std::forward<BrowserConfigsT>(value);
276 }
277 template <typename BrowserConfigsT = Aws::Vector<BrowserConfig>>
279 SetBrowserConfigs(std::forward<BrowserConfigsT>(value));
280 return *this;
281 }
282 template <typename BrowserConfigsT = BrowserConfig>
283 StartCanaryDryRunRequest& AddBrowserConfigs(BrowserConfigsT&& value) {
284 m_browserConfigsHasBeenSet = true;
285 m_browserConfigs.emplace_back(std::forward<BrowserConfigsT>(value));
286 return *this;
287 }
289
291
303 inline const Aws::Vector<VisualReferenceInput>& GetVisualReferences() const { return m_visualReferences; }
304 inline bool VisualReferencesHasBeenSet() const { return m_visualReferencesHasBeenSet; }
305 template <typename VisualReferencesT = Aws::Vector<VisualReferenceInput>>
306 void SetVisualReferences(VisualReferencesT&& value) {
307 m_visualReferencesHasBeenSet = true;
308 m_visualReferences = std::forward<VisualReferencesT>(value);
309 }
310 template <typename VisualReferencesT = Aws::Vector<VisualReferenceInput>>
311 StartCanaryDryRunRequest& WithVisualReferences(VisualReferencesT&& value) {
312 SetVisualReferences(std::forward<VisualReferencesT>(value));
313 return *this;
314 }
315 template <typename VisualReferencesT = VisualReferenceInput>
316 StartCanaryDryRunRequest& AddVisualReferences(VisualReferencesT&& value) {
317 m_visualReferencesHasBeenSet = true;
318 m_visualReferences.emplace_back(std::forward<VisualReferencesT>(value));
319 return *this;
320 }
322 private:
323 Aws::String m_name;
324 bool m_nameHasBeenSet = false;
325
326 CanaryCodeInput m_code;
327 bool m_codeHasBeenSet = false;
328
329 Aws::String m_runtimeVersion;
330 bool m_runtimeVersionHasBeenSet = false;
331
332 CanaryRunConfigInput m_runConfig;
333 bool m_runConfigHasBeenSet = false;
334
335 VpcConfigInput m_vpcConfig;
336 bool m_vpcConfigHasBeenSet = false;
337
338 Aws::String m_executionRoleArn;
339 bool m_executionRoleArnHasBeenSet = false;
340
341 int m_successRetentionPeriodInDays{0};
342 bool m_successRetentionPeriodInDaysHasBeenSet = false;
343
344 int m_failureRetentionPeriodInDays{0};
345 bool m_failureRetentionPeriodInDaysHasBeenSet = false;
346
347 VisualReferenceInput m_visualReference;
348 bool m_visualReferenceHasBeenSet = false;
349
350 Aws::String m_artifactS3Location;
351 bool m_artifactS3LocationHasBeenSet = false;
352
353 ArtifactConfigInput m_artifactConfig;
354 bool m_artifactConfigHasBeenSet = false;
355
357 bool m_provisionedResourceCleanupHasBeenSet = false;
358
359 Aws::Vector<BrowserConfig> m_browserConfigs;
360 bool m_browserConfigsHasBeenSet = false;
361
362 Aws::Vector<VisualReferenceInput> m_visualReferences;
363 bool m_visualReferencesHasBeenSet = false;
364};
365
366} // namespace Model
367} // namespace Synthetics
368} // namespace Aws
const Aws::Vector< VisualReferenceInput > & GetVisualReferences() const
StartCanaryDryRunRequest & WithRunConfig(RunConfigT &&value)
void SetProvisionedResourceCleanup(ProvisionedResourceCleanupSetting value)
StartCanaryDryRunRequest & WithArtifactS3Location(ArtifactS3LocationT &&value)
StartCanaryDryRunRequest & AddVisualReferences(VisualReferencesT &&value)
StartCanaryDryRunRequest & WithSuccessRetentionPeriodInDays(int value)
StartCanaryDryRunRequest & WithVisualReferences(VisualReferencesT &&value)
const VisualReferenceInput & GetVisualReference() const
virtual const char * GetServiceRequestName() const override
ProvisionedResourceCleanupSetting GetProvisionedResourceCleanup() const
StartCanaryDryRunRequest & WithRuntimeVersion(RuntimeVersionT &&value)
const Aws::Vector< BrowserConfig > & GetBrowserConfigs() const
StartCanaryDryRunRequest & WithFailureRetentionPeriodInDays(int value)
StartCanaryDryRunRequest & WithProvisionedResourceCleanup(ProvisionedResourceCleanupSetting value)
StartCanaryDryRunRequest & WithCode(CodeT &&value)
StartCanaryDryRunRequest & WithName(NameT &&value)
StartCanaryDryRunRequest & WithArtifactConfig(ArtifactConfigT &&value)
StartCanaryDryRunRequest & AddBrowserConfigs(BrowserConfigsT &&value)
StartCanaryDryRunRequest & WithBrowserConfigs(BrowserConfigsT &&value)
AWS_SYNTHETICS_API StartCanaryDryRunRequest()=default
StartCanaryDryRunRequest & WithVpcConfig(VpcConfigT &&value)
StartCanaryDryRunRequest & WithVisualReference(VisualReferenceT &&value)
StartCanaryDryRunRequest & WithExecutionRoleArn(ExecutionRoleArnT &&value)
AWS_SYNTHETICS_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector