AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateCanaryRequest.h
1
6#pragma once
7#include <aws/synthetics/Synthetics_EXPORTS.h>
8#include <aws/synthetics/SyntheticsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/synthetics/model/CanaryCodeInput.h>
11#include <aws/synthetics/model/CanaryScheduleInput.h>
12#include <aws/synthetics/model/CanaryRunConfigInput.h>
13#include <aws/synthetics/model/VpcConfigInput.h>
14#include <aws/synthetics/model/VisualReferenceInput.h>
15#include <aws/synthetics/model/ArtifactConfigInput.h>
16#include <aws/synthetics/model/ProvisionedResourceCleanupSetting.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Synthetics
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_SYNTHETICS_API UpdateCanaryRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "UpdateCanary"; }
38
39 AWS_SYNTHETICS_API Aws::String SerializePayload() const override;
40
41
43
49 inline const Aws::String& GetName() const { return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 template<typename NameT = Aws::String>
52 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
53 template<typename NameT = Aws::String>
54 UpdateCanaryRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
56
58
63 inline const CanaryCodeInput& GetCode() const { return m_code; }
64 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
65 template<typename CodeT = CanaryCodeInput>
66 void SetCode(CodeT&& value) { m_codeHasBeenSet = true; m_code = std::forward<CodeT>(value); }
67 template<typename CodeT = CanaryCodeInput>
68 UpdateCanaryRequest& WithCode(CodeT&& value) { SetCode(std::forward<CodeT>(value)); return *this;}
70
72
84 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
85 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
86 template<typename ExecutionRoleArnT = Aws::String>
87 void SetExecutionRoleArn(ExecutionRoleArnT&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::forward<ExecutionRoleArnT>(value); }
88 template<typename ExecutionRoleArnT = Aws::String>
89 UpdateCanaryRequest& WithExecutionRoleArn(ExecutionRoleArnT&& value) { SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value)); return *this;}
91
93
99 inline const Aws::String& GetRuntimeVersion() const { return m_runtimeVersion; }
100 inline bool RuntimeVersionHasBeenSet() const { return m_runtimeVersionHasBeenSet; }
101 template<typename RuntimeVersionT = Aws::String>
102 void SetRuntimeVersion(RuntimeVersionT&& value) { m_runtimeVersionHasBeenSet = true; m_runtimeVersion = std::forward<RuntimeVersionT>(value); }
103 template<typename RuntimeVersionT = Aws::String>
104 UpdateCanaryRequest& WithRuntimeVersion(RuntimeVersionT&& value) { SetRuntimeVersion(std::forward<RuntimeVersionT>(value)); return *this;}
106
108
112 inline const CanaryScheduleInput& GetSchedule() const { return m_schedule; }
113 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
114 template<typename ScheduleT = CanaryScheduleInput>
115 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
116 template<typename ScheduleT = CanaryScheduleInput>
117 UpdateCanaryRequest& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
119
121
128 inline const CanaryRunConfigInput& GetRunConfig() const { return m_runConfig; }
129 inline bool RunConfigHasBeenSet() const { return m_runConfigHasBeenSet; }
130 template<typename RunConfigT = CanaryRunConfigInput>
131 void SetRunConfig(RunConfigT&& value) { m_runConfigHasBeenSet = true; m_runConfig = std::forward<RunConfigT>(value); }
132 template<typename RunConfigT = CanaryRunConfigInput>
133 UpdateCanaryRequest& WithRunConfig(RunConfigT&& value) { SetRunConfig(std::forward<RunConfigT>(value)); return *this;}
135
137
143 inline int GetSuccessRetentionPeriodInDays() const { return m_successRetentionPeriodInDays; }
144 inline bool SuccessRetentionPeriodInDaysHasBeenSet() const { return m_successRetentionPeriodInDaysHasBeenSet; }
145 inline void SetSuccessRetentionPeriodInDays(int value) { m_successRetentionPeriodInDaysHasBeenSet = true; m_successRetentionPeriodInDays = value; }
148
150
156 inline int GetFailureRetentionPeriodInDays() const { return m_failureRetentionPeriodInDays; }
157 inline bool FailureRetentionPeriodInDaysHasBeenSet() const { return m_failureRetentionPeriodInDaysHasBeenSet; }
158 inline void SetFailureRetentionPeriodInDays(int value) { m_failureRetentionPeriodInDaysHasBeenSet = true; m_failureRetentionPeriodInDays = value; }
161
163
170 inline const VpcConfigInput& GetVpcConfig() const { return m_vpcConfig; }
171 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
172 template<typename VpcConfigT = VpcConfigInput>
173 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::forward<VpcConfigT>(value); }
174 template<typename VpcConfigT = VpcConfigInput>
175 UpdateCanaryRequest& WithVpcConfig(VpcConfigT&& value) { SetVpcConfig(std::forward<VpcConfigT>(value)); return *this;}
177
179
190 inline const VisualReferenceInput& GetVisualReference() const { return m_visualReference; }
191 inline bool VisualReferenceHasBeenSet() const { return m_visualReferenceHasBeenSet; }
192 template<typename VisualReferenceT = VisualReferenceInput>
193 void SetVisualReference(VisualReferenceT&& value) { m_visualReferenceHasBeenSet = true; m_visualReference = std::forward<VisualReferenceT>(value); }
194 template<typename VisualReferenceT = VisualReferenceInput>
195 UpdateCanaryRequest& WithVisualReference(VisualReferenceT&& value) { SetVisualReference(std::forward<VisualReferenceT>(value)); return *this;}
197
199
204 inline const Aws::String& GetArtifactS3Location() const { return m_artifactS3Location; }
205 inline bool ArtifactS3LocationHasBeenSet() const { return m_artifactS3LocationHasBeenSet; }
206 template<typename ArtifactS3LocationT = Aws::String>
207 void SetArtifactS3Location(ArtifactS3LocationT&& value) { m_artifactS3LocationHasBeenSet = true; m_artifactS3Location = std::forward<ArtifactS3LocationT>(value); }
208 template<typename ArtifactS3LocationT = Aws::String>
209 UpdateCanaryRequest& WithArtifactS3Location(ArtifactS3LocationT&& value) { SetArtifactS3Location(std::forward<ArtifactS3LocationT>(value)); return *this;}
211
213
218 inline const ArtifactConfigInput& GetArtifactConfig() const { return m_artifactConfig; }
219 inline bool ArtifactConfigHasBeenSet() const { return m_artifactConfigHasBeenSet; }
220 template<typename ArtifactConfigT = ArtifactConfigInput>
221 void SetArtifactConfig(ArtifactConfigT&& value) { m_artifactConfigHasBeenSet = true; m_artifactConfig = std::forward<ArtifactConfigT>(value); }
222 template<typename ArtifactConfigT = ArtifactConfigInput>
223 UpdateCanaryRequest& WithArtifactConfig(ArtifactConfigT&& value) { SetArtifactConfig(std::forward<ArtifactConfigT>(value)); return *this;}
225
227
236 inline ProvisionedResourceCleanupSetting GetProvisionedResourceCleanup() const { return m_provisionedResourceCleanup; }
237 inline bool ProvisionedResourceCleanupHasBeenSet() const { return m_provisionedResourceCleanupHasBeenSet; }
238 inline void SetProvisionedResourceCleanup(ProvisionedResourceCleanupSetting value) { m_provisionedResourceCleanupHasBeenSet = true; m_provisionedResourceCleanup = value; }
241
243
250 inline const Aws::String& GetDryRunId() const { return m_dryRunId; }
251 inline bool DryRunIdHasBeenSet() const { return m_dryRunIdHasBeenSet; }
252 template<typename DryRunIdT = Aws::String>
253 void SetDryRunId(DryRunIdT&& value) { m_dryRunIdHasBeenSet = true; m_dryRunId = std::forward<DryRunIdT>(value); }
254 template<typename DryRunIdT = Aws::String>
255 UpdateCanaryRequest& WithDryRunId(DryRunIdT&& value) { SetDryRunId(std::forward<DryRunIdT>(value)); return *this;}
257 private:
258
259 Aws::String m_name;
260 bool m_nameHasBeenSet = false;
261
262 CanaryCodeInput m_code;
263 bool m_codeHasBeenSet = false;
264
265 Aws::String m_executionRoleArn;
266 bool m_executionRoleArnHasBeenSet = false;
267
268 Aws::String m_runtimeVersion;
269 bool m_runtimeVersionHasBeenSet = false;
270
271 CanaryScheduleInput m_schedule;
272 bool m_scheduleHasBeenSet = false;
273
274 CanaryRunConfigInput m_runConfig;
275 bool m_runConfigHasBeenSet = false;
276
277 int m_successRetentionPeriodInDays{0};
278 bool m_successRetentionPeriodInDaysHasBeenSet = false;
279
280 int m_failureRetentionPeriodInDays{0};
281 bool m_failureRetentionPeriodInDaysHasBeenSet = false;
282
283 VpcConfigInput m_vpcConfig;
284 bool m_vpcConfigHasBeenSet = false;
285
286 VisualReferenceInput m_visualReference;
287 bool m_visualReferenceHasBeenSet = false;
288
289 Aws::String m_artifactS3Location;
290 bool m_artifactS3LocationHasBeenSet = false;
291
292 ArtifactConfigInput m_artifactConfig;
293 bool m_artifactConfigHasBeenSet = false;
294
296 bool m_provisionedResourceCleanupHasBeenSet = false;
297
298 Aws::String m_dryRunId;
299 bool m_dryRunIdHasBeenSet = false;
300 };
301
302} // namespace Model
303} // namespace Synthetics
304} // namespace Aws
const VisualReferenceInput & GetVisualReference() const
UpdateCanaryRequest & WithRunConfig(RunConfigT &&value)
UpdateCanaryRequest & WithFailureRetentionPeriodInDays(int value)
AWS_SYNTHETICS_API Aws::String SerializePayload() const override
UpdateCanaryRequest & WithArtifactS3Location(ArtifactS3LocationT &&value)
void SetProvisionedResourceCleanup(ProvisionedResourceCleanupSetting value)
UpdateCanaryRequest & WithExecutionRoleArn(ExecutionRoleArnT &&value)
void SetExecutionRoleArn(ExecutionRoleArnT &&value)
const CanaryScheduleInput & GetSchedule() const
const ArtifactConfigInput & GetArtifactConfig() const
UpdateCanaryRequest & WithVisualReference(VisualReferenceT &&value)
UpdateCanaryRequest & WithName(NameT &&value)
void SetArtifactConfig(ArtifactConfigT &&value)
UpdateCanaryRequest & WithSchedule(ScheduleT &&value)
void SetVisualReference(VisualReferenceT &&value)
UpdateCanaryRequest & WithRuntimeVersion(RuntimeVersionT &&value)
AWS_SYNTHETICS_API UpdateCanaryRequest()=default
const CanaryRunConfigInput & GetRunConfig() const
void SetRuntimeVersion(RuntimeVersionT &&value)
UpdateCanaryRequest & WithArtifactConfig(ArtifactConfigT &&value)
UpdateCanaryRequest & WithDryRunId(DryRunIdT &&value)
UpdateCanaryRequest & WithProvisionedResourceCleanup(ProvisionedResourceCleanupSetting value)
void SetArtifactS3Location(ArtifactS3LocationT &&value)
virtual const char * GetServiceRequestName() const override
UpdateCanaryRequest & WithCode(CodeT &&value)
ProvisionedResourceCleanupSetting GetProvisionedResourceCleanup() const
UpdateCanaryRequest & WithSuccessRetentionPeriodInDays(int value)
UpdateCanaryRequest & WithVpcConfig(VpcConfigT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String