AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
17
18namespace Aws
19{
20namespace Synthetics
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_SYNTHETICS_API UpdateCanaryRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateCanary"; }
37
38 AWS_SYNTHETICS_API Aws::String SerializePayload() const override;
39
40
42
48 inline const Aws::String& GetName() const{ return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline UpdateCanaryRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline UpdateCanaryRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline UpdateCanaryRequest& WithName(const char* value) { SetName(value); return *this;}
57
59
64 inline const CanaryCodeInput& GetCode() const{ return m_code; }
65 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
66 inline void SetCode(const CanaryCodeInput& value) { m_codeHasBeenSet = true; m_code = value; }
67 inline void SetCode(CanaryCodeInput&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
68 inline UpdateCanaryRequest& WithCode(const CanaryCodeInput& value) { SetCode(value); return *this;}
69 inline UpdateCanaryRequest& WithCode(CanaryCodeInput&& value) { SetCode(std::move(value)); return *this;}
71
73
85 inline const Aws::String& GetExecutionRoleArn() const{ return m_executionRoleArn; }
86 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
87 inline void SetExecutionRoleArn(const Aws::String& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = value; }
88 inline void SetExecutionRoleArn(Aws::String&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::move(value); }
89 inline void SetExecutionRoleArn(const char* value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn.assign(value); }
90 inline UpdateCanaryRequest& WithExecutionRoleArn(const Aws::String& value) { SetExecutionRoleArn(value); return *this;}
91 inline UpdateCanaryRequest& WithExecutionRoleArn(Aws::String&& value) { SetExecutionRoleArn(std::move(value)); return *this;}
92 inline UpdateCanaryRequest& WithExecutionRoleArn(const char* value) { SetExecutionRoleArn(value); return *this;}
94
96
102 inline const Aws::String& GetRuntimeVersion() const{ return m_runtimeVersion; }
103 inline bool RuntimeVersionHasBeenSet() const { return m_runtimeVersionHasBeenSet; }
104 inline void SetRuntimeVersion(const Aws::String& value) { m_runtimeVersionHasBeenSet = true; m_runtimeVersion = value; }
105 inline void SetRuntimeVersion(Aws::String&& value) { m_runtimeVersionHasBeenSet = true; m_runtimeVersion = std::move(value); }
106 inline void SetRuntimeVersion(const char* value) { m_runtimeVersionHasBeenSet = true; m_runtimeVersion.assign(value); }
107 inline UpdateCanaryRequest& WithRuntimeVersion(const Aws::String& value) { SetRuntimeVersion(value); return *this;}
108 inline UpdateCanaryRequest& WithRuntimeVersion(Aws::String&& value) { SetRuntimeVersion(std::move(value)); return *this;}
109 inline UpdateCanaryRequest& WithRuntimeVersion(const char* value) { SetRuntimeVersion(value); return *this;}
111
113
117 inline const CanaryScheduleInput& GetSchedule() const{ return m_schedule; }
118 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
119 inline void SetSchedule(const CanaryScheduleInput& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
120 inline void SetSchedule(CanaryScheduleInput&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
121 inline UpdateCanaryRequest& WithSchedule(const CanaryScheduleInput& value) { SetSchedule(value); return *this;}
122 inline UpdateCanaryRequest& WithSchedule(CanaryScheduleInput&& value) { SetSchedule(std::move(value)); return *this;}
124
126
132 inline const CanaryRunConfigInput& GetRunConfig() const{ return m_runConfig; }
133 inline bool RunConfigHasBeenSet() const { return m_runConfigHasBeenSet; }
134 inline void SetRunConfig(const CanaryRunConfigInput& value) { m_runConfigHasBeenSet = true; m_runConfig = value; }
135 inline void SetRunConfig(CanaryRunConfigInput&& value) { m_runConfigHasBeenSet = true; m_runConfig = std::move(value); }
136 inline UpdateCanaryRequest& WithRunConfig(const CanaryRunConfigInput& value) { SetRunConfig(value); return *this;}
137 inline UpdateCanaryRequest& WithRunConfig(CanaryRunConfigInput&& value) { SetRunConfig(std::move(value)); return *this;}
139
141
144 inline int GetSuccessRetentionPeriodInDays() const{ return m_successRetentionPeriodInDays; }
145 inline bool SuccessRetentionPeriodInDaysHasBeenSet() const { return m_successRetentionPeriodInDaysHasBeenSet; }
146 inline void SetSuccessRetentionPeriodInDays(int value) { m_successRetentionPeriodInDaysHasBeenSet = true; m_successRetentionPeriodInDays = value; }
149
151
154 inline int GetFailureRetentionPeriodInDays() const{ return m_failureRetentionPeriodInDays; }
155 inline bool FailureRetentionPeriodInDaysHasBeenSet() const { return m_failureRetentionPeriodInDaysHasBeenSet; }
156 inline void SetFailureRetentionPeriodInDays(int value) { m_failureRetentionPeriodInDaysHasBeenSet = true; m_failureRetentionPeriodInDays = value; }
159
161
168 inline const VpcConfigInput& GetVpcConfig() const{ return m_vpcConfig; }
169 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
170 inline void SetVpcConfig(const VpcConfigInput& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
171 inline void SetVpcConfig(VpcConfigInput&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); }
172 inline UpdateCanaryRequest& WithVpcConfig(const VpcConfigInput& value) { SetVpcConfig(value); return *this;}
173 inline UpdateCanaryRequest& WithVpcConfig(VpcConfigInput&& value) { SetVpcConfig(std::move(value)); return *this;}
175
177
188 inline const VisualReferenceInput& GetVisualReference() const{ return m_visualReference; }
189 inline bool VisualReferenceHasBeenSet() const { return m_visualReferenceHasBeenSet; }
190 inline void SetVisualReference(const VisualReferenceInput& value) { m_visualReferenceHasBeenSet = true; m_visualReference = value; }
191 inline void SetVisualReference(VisualReferenceInput&& value) { m_visualReferenceHasBeenSet = true; m_visualReference = std::move(value); }
193 inline UpdateCanaryRequest& WithVisualReference(VisualReferenceInput&& value) { SetVisualReference(std::move(value)); return *this;}
195
197
202 inline const Aws::String& GetArtifactS3Location() const{ return m_artifactS3Location; }
203 inline bool ArtifactS3LocationHasBeenSet() const { return m_artifactS3LocationHasBeenSet; }
204 inline void SetArtifactS3Location(const Aws::String& value) { m_artifactS3LocationHasBeenSet = true; m_artifactS3Location = value; }
205 inline void SetArtifactS3Location(Aws::String&& value) { m_artifactS3LocationHasBeenSet = true; m_artifactS3Location = std::move(value); }
206 inline void SetArtifactS3Location(const char* value) { m_artifactS3LocationHasBeenSet = true; m_artifactS3Location.assign(value); }
208 inline UpdateCanaryRequest& WithArtifactS3Location(Aws::String&& value) { SetArtifactS3Location(std::move(value)); return *this;}
209 inline UpdateCanaryRequest& WithArtifactS3Location(const char* value) { SetArtifactS3Location(value); return *this;}
211
213
218 inline const ArtifactConfigInput& GetArtifactConfig() const{ return m_artifactConfig; }
219 inline bool ArtifactConfigHasBeenSet() const { return m_artifactConfigHasBeenSet; }
220 inline void SetArtifactConfig(const ArtifactConfigInput& value) { m_artifactConfigHasBeenSet = true; m_artifactConfig = value; }
221 inline void SetArtifactConfig(ArtifactConfigInput&& value) { m_artifactConfigHasBeenSet = true; m_artifactConfig = std::move(value); }
223 inline UpdateCanaryRequest& WithArtifactConfig(ArtifactConfigInput&& value) { SetArtifactConfig(std::move(value)); return *this;}
225 private:
226
227 Aws::String m_name;
228 bool m_nameHasBeenSet = false;
229
230 CanaryCodeInput m_code;
231 bool m_codeHasBeenSet = false;
232
233 Aws::String m_executionRoleArn;
234 bool m_executionRoleArnHasBeenSet = false;
235
236 Aws::String m_runtimeVersion;
237 bool m_runtimeVersionHasBeenSet = false;
238
239 CanaryScheduleInput m_schedule;
240 bool m_scheduleHasBeenSet = false;
241
242 CanaryRunConfigInput m_runConfig;
243 bool m_runConfigHasBeenSet = false;
244
245 int m_successRetentionPeriodInDays;
246 bool m_successRetentionPeriodInDaysHasBeenSet = false;
247
248 int m_failureRetentionPeriodInDays;
249 bool m_failureRetentionPeriodInDaysHasBeenSet = false;
250
251 VpcConfigInput m_vpcConfig;
252 bool m_vpcConfigHasBeenSet = false;
253
254 VisualReferenceInput m_visualReference;
255 bool m_visualReferenceHasBeenSet = false;
256
257 Aws::String m_artifactS3Location;
258 bool m_artifactS3LocationHasBeenSet = false;
259
260 ArtifactConfigInput m_artifactConfig;
261 bool m_artifactConfigHasBeenSet = false;
262 };
263
264} // namespace Model
265} // namespace Synthetics
266} // namespace Aws
UpdateCanaryRequest & WithCode(const CanaryCodeInput &value)
void SetArtifactS3Location(const Aws::String &value)
void SetSchedule(const CanaryScheduleInput &value)
void SetExecutionRoleArn(const Aws::String &value)
const VisualReferenceInput & GetVisualReference() const
UpdateCanaryRequest & WithRuntimeVersion(const Aws::String &value)
UpdateCanaryRequest & WithArtifactConfig(ArtifactConfigInput &&value)
UpdateCanaryRequest & WithRunConfig(const CanaryRunConfigInput &value)
void SetSchedule(CanaryScheduleInput &&value)
UpdateCanaryRequest & WithArtifactS3Location(const char *value)
UpdateCanaryRequest & WithName(Aws::String &&value)
UpdateCanaryRequest & WithArtifactS3Location(const Aws::String &value)
UpdateCanaryRequest & WithName(const char *value)
UpdateCanaryRequest & WithExecutionRoleArn(Aws::String &&value)
UpdateCanaryRequest & WithVisualReference(VisualReferenceInput &&value)
void SetVisualReference(const VisualReferenceInput &value)
UpdateCanaryRequest & WithRunConfig(CanaryRunConfigInput &&value)
UpdateCanaryRequest & WithFailureRetentionPeriodInDays(int value)
void SetCode(const CanaryCodeInput &value)
AWS_SYNTHETICS_API Aws::String SerializePayload() const override
UpdateCanaryRequest & WithVisualReference(const VisualReferenceInput &value)
void SetRunConfig(const CanaryRunConfigInput &value)
UpdateCanaryRequest & WithRuntimeVersion(const char *value)
UpdateCanaryRequest & WithSchedule(CanaryScheduleInput &&value)
void SetVpcConfig(const VpcConfigInput &value)
UpdateCanaryRequest & WithArtifactS3Location(Aws::String &&value)
const CanaryScheduleInput & GetSchedule() const
const ArtifactConfigInput & GetArtifactConfig() const
UpdateCanaryRequest & WithSchedule(const CanaryScheduleInput &value)
UpdateCanaryRequest & WithName(const Aws::String &value)
UpdateCanaryRequest & WithVpcConfig(VpcConfigInput &&value)
void SetRuntimeVersion(const Aws::String &value)
UpdateCanaryRequest & WithExecutionRoleArn(const char *value)
UpdateCanaryRequest & WithRuntimeVersion(Aws::String &&value)
UpdateCanaryRequest & WithArtifactConfig(const ArtifactConfigInput &value)
void SetVisualReference(VisualReferenceInput &&value)
void SetRunConfig(CanaryRunConfigInput &&value)
const CanaryRunConfigInput & GetRunConfig() const
virtual const char * GetServiceRequestName() const override
UpdateCanaryRequest & WithVpcConfig(const VpcConfigInput &value)
void SetArtifactConfig(ArtifactConfigInput &&value)
UpdateCanaryRequest & WithCode(CanaryCodeInput &&value)
UpdateCanaryRequest & WithExecutionRoleArn(const Aws::String &value)
void SetArtifactConfig(const ArtifactConfigInput &value)
UpdateCanaryRequest & WithSuccessRetentionPeriodInDays(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String