AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateCanaryRequest.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/core/utils/memory/stl/AWSVector.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <aws/synthetics/model/ArtifactConfigInput.h>
17#include <aws/synthetics/model/ResourceToTag.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Synthetics
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_SYNTHETICS_API CreateCanaryRequest();
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateCanary"; }
39
40 AWS_SYNTHETICS_API Aws::String SerializePayload() const override;
41
42
44
53 inline const Aws::String& GetName() const{ return m_name; }
54 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
56 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
57 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
58 inline CreateCanaryRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
59 inline CreateCanaryRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
60 inline CreateCanaryRequest& WithName(const char* value) { SetName(value); return *this;}
62
64
69 inline const CanaryCodeInput& GetCode() const{ return m_code; }
70 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
71 inline void SetCode(const CanaryCodeInput& value) { m_codeHasBeenSet = true; m_code = value; }
72 inline void SetCode(CanaryCodeInput&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
73 inline CreateCanaryRequest& WithCode(const CanaryCodeInput& value) { SetCode(value); return *this;}
74 inline CreateCanaryRequest& WithCode(CanaryCodeInput&& value) { SetCode(std::move(value)); return *this;}
76
78
83 inline const Aws::String& GetArtifactS3Location() const{ return m_artifactS3Location; }
84 inline bool ArtifactS3LocationHasBeenSet() const { return m_artifactS3LocationHasBeenSet; }
85 inline void SetArtifactS3Location(const Aws::String& value) { m_artifactS3LocationHasBeenSet = true; m_artifactS3Location = value; }
86 inline void SetArtifactS3Location(Aws::String&& value) { m_artifactS3LocationHasBeenSet = true; m_artifactS3Location = std::move(value); }
87 inline void SetArtifactS3Location(const char* value) { m_artifactS3LocationHasBeenSet = true; m_artifactS3Location.assign(value); }
88 inline CreateCanaryRequest& WithArtifactS3Location(const Aws::String& value) { SetArtifactS3Location(value); return *this;}
89 inline CreateCanaryRequest& WithArtifactS3Location(Aws::String&& value) { SetArtifactS3Location(std::move(value)); return *this;}
90 inline CreateCanaryRequest& WithArtifactS3Location(const char* value) { SetArtifactS3Location(value); return *this;}
92
94
106 inline const Aws::String& GetExecutionRoleArn() const{ return m_executionRoleArn; }
107 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
108 inline void SetExecutionRoleArn(const Aws::String& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = value; }
109 inline void SetExecutionRoleArn(Aws::String&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::move(value); }
110 inline void SetExecutionRoleArn(const char* value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn.assign(value); }
111 inline CreateCanaryRequest& WithExecutionRoleArn(const Aws::String& value) { SetExecutionRoleArn(value); return *this;}
112 inline CreateCanaryRequest& WithExecutionRoleArn(Aws::String&& value) { SetExecutionRoleArn(std::move(value)); return *this;}
113 inline CreateCanaryRequest& WithExecutionRoleArn(const char* value) { SetExecutionRoleArn(value); return *this;}
115
117
121 inline const CanaryScheduleInput& GetSchedule() const{ return m_schedule; }
122 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
123 inline void SetSchedule(const CanaryScheduleInput& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
124 inline void SetSchedule(CanaryScheduleInput&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
125 inline CreateCanaryRequest& WithSchedule(const CanaryScheduleInput& value) { SetSchedule(value); return *this;}
126 inline CreateCanaryRequest& WithSchedule(CanaryScheduleInput&& value) { SetSchedule(std::move(value)); return *this;}
128
130
136 inline const CanaryRunConfigInput& GetRunConfig() const{ return m_runConfig; }
137 inline bool RunConfigHasBeenSet() const { return m_runConfigHasBeenSet; }
138 inline void SetRunConfig(const CanaryRunConfigInput& value) { m_runConfigHasBeenSet = true; m_runConfig = value; }
139 inline void SetRunConfig(CanaryRunConfigInput&& value) { m_runConfigHasBeenSet = true; m_runConfig = std::move(value); }
140 inline CreateCanaryRequest& WithRunConfig(const CanaryRunConfigInput& value) { SetRunConfig(value); return *this;}
141 inline CreateCanaryRequest& WithRunConfig(CanaryRunConfigInput&& value) { SetRunConfig(std::move(value)); return *this;}
143
145
150 inline int GetSuccessRetentionPeriodInDays() const{ return m_successRetentionPeriodInDays; }
151 inline bool SuccessRetentionPeriodInDaysHasBeenSet() const { return m_successRetentionPeriodInDaysHasBeenSet; }
152 inline void SetSuccessRetentionPeriodInDays(int value) { m_successRetentionPeriodInDaysHasBeenSet = true; m_successRetentionPeriodInDays = value; }
155
157
162 inline int GetFailureRetentionPeriodInDays() const{ return m_failureRetentionPeriodInDays; }
163 inline bool FailureRetentionPeriodInDaysHasBeenSet() const { return m_failureRetentionPeriodInDaysHasBeenSet; }
164 inline void SetFailureRetentionPeriodInDays(int value) { m_failureRetentionPeriodInDaysHasBeenSet = true; m_failureRetentionPeriodInDays = value; }
167
169
175 inline const Aws::String& GetRuntimeVersion() const{ return m_runtimeVersion; }
176 inline bool RuntimeVersionHasBeenSet() const { return m_runtimeVersionHasBeenSet; }
177 inline void SetRuntimeVersion(const Aws::String& value) { m_runtimeVersionHasBeenSet = true; m_runtimeVersion = value; }
178 inline void SetRuntimeVersion(Aws::String&& value) { m_runtimeVersionHasBeenSet = true; m_runtimeVersion = std::move(value); }
179 inline void SetRuntimeVersion(const char* value) { m_runtimeVersionHasBeenSet = true; m_runtimeVersion.assign(value); }
180 inline CreateCanaryRequest& WithRuntimeVersion(const Aws::String& value) { SetRuntimeVersion(value); return *this;}
181 inline CreateCanaryRequest& WithRuntimeVersion(Aws::String&& value) { SetRuntimeVersion(std::move(value)); return *this;}
182 inline CreateCanaryRequest& WithRuntimeVersion(const char* value) { SetRuntimeVersion(value); return *this;}
184
186
193 inline const VpcConfigInput& GetVpcConfig() const{ return m_vpcConfig; }
194 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
195 inline void SetVpcConfig(const VpcConfigInput& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
196 inline void SetVpcConfig(VpcConfigInput&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); }
197 inline CreateCanaryRequest& WithVpcConfig(const VpcConfigInput& value) { SetVpcConfig(value); return *this;}
198 inline CreateCanaryRequest& WithVpcConfig(VpcConfigInput&& value) { SetVpcConfig(std::move(value)); return *this;}
200
202
209 inline const Aws::Vector<ResourceToTag>& GetResourcesToReplicateTags() const{ return m_resourcesToReplicateTags; }
210 inline bool ResourcesToReplicateTagsHasBeenSet() const { return m_resourcesToReplicateTagsHasBeenSet; }
211 inline void SetResourcesToReplicateTags(const Aws::Vector<ResourceToTag>& value) { m_resourcesToReplicateTagsHasBeenSet = true; m_resourcesToReplicateTags = value; }
212 inline void SetResourcesToReplicateTags(Aws::Vector<ResourceToTag>&& value) { m_resourcesToReplicateTagsHasBeenSet = true; m_resourcesToReplicateTags = std::move(value); }
215 inline CreateCanaryRequest& AddResourcesToReplicateTags(const ResourceToTag& value) { m_resourcesToReplicateTagsHasBeenSet = true; m_resourcesToReplicateTags.push_back(value); return *this; }
216 inline CreateCanaryRequest& AddResourcesToReplicateTags(ResourceToTag&& value) { m_resourcesToReplicateTagsHasBeenSet = true; m_resourcesToReplicateTags.push_back(std::move(value)); return *this; }
218
220
229 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
230 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
231 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
232 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
233 inline CreateCanaryRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
234 inline CreateCanaryRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
235 inline CreateCanaryRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
236 inline CreateCanaryRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
237 inline CreateCanaryRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
238 inline CreateCanaryRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
239 inline CreateCanaryRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
240 inline CreateCanaryRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
241 inline CreateCanaryRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
243
245
250 inline const ArtifactConfigInput& GetArtifactConfig() const{ return m_artifactConfig; }
251 inline bool ArtifactConfigHasBeenSet() const { return m_artifactConfigHasBeenSet; }
252 inline void SetArtifactConfig(const ArtifactConfigInput& value) { m_artifactConfigHasBeenSet = true; m_artifactConfig = value; }
253 inline void SetArtifactConfig(ArtifactConfigInput&& value) { m_artifactConfigHasBeenSet = true; m_artifactConfig = std::move(value); }
255 inline CreateCanaryRequest& WithArtifactConfig(ArtifactConfigInput&& value) { SetArtifactConfig(std::move(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_artifactS3Location;
266 bool m_artifactS3LocationHasBeenSet = false;
267
268 Aws::String m_executionRoleArn;
269 bool m_executionRoleArnHasBeenSet = 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;
278 bool m_successRetentionPeriodInDaysHasBeenSet = false;
279
280 int m_failureRetentionPeriodInDays;
281 bool m_failureRetentionPeriodInDaysHasBeenSet = false;
282
283 Aws::String m_runtimeVersion;
284 bool m_runtimeVersionHasBeenSet = false;
285
286 VpcConfigInput m_vpcConfig;
287 bool m_vpcConfigHasBeenSet = false;
288
289 Aws::Vector<ResourceToTag> m_resourcesToReplicateTags;
290 bool m_resourcesToReplicateTagsHasBeenSet = false;
291
293 bool m_tagsHasBeenSet = false;
294
295 ArtifactConfigInput m_artifactConfig;
296 bool m_artifactConfigHasBeenSet = false;
297 };
298
299} // namespace Model
300} // namespace Synthetics
301} // namespace Aws
const ArtifactConfigInput & GetArtifactConfig() const
const CanaryScheduleInput & GetSchedule() const
void SetRunConfig(CanaryRunConfigInput &&value)
CreateCanaryRequest & WithArtifactS3Location(const char *value)
CreateCanaryRequest & WithResourcesToReplicateTags(Aws::Vector< ResourceToTag > &&value)
CreateCanaryRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateCanaryRequest & WithArtifactConfig(const ArtifactConfigInput &value)
void SetCode(const CanaryCodeInput &value)
CreateCanaryRequest & WithArtifactS3Location(Aws::String &&value)
CreateCanaryRequest & WithArtifactS3Location(const Aws::String &value)
void SetSchedule(CanaryScheduleInput &&value)
CreateCanaryRequest & WithExecutionRoleArn(const Aws::String &value)
CreateCanaryRequest & WithName(const Aws::String &value)
CreateCanaryRequest & WithName(Aws::String &&value)
CreateCanaryRequest & WithCode(const CanaryCodeInput &value)
void SetArtifactS3Location(const Aws::String &value)
CreateCanaryRequest & AddTags(const char *key, const char *value)
CreateCanaryRequest & AddResourcesToReplicateTags(const ResourceToTag &value)
CreateCanaryRequest & WithCode(CanaryCodeInput &&value)
const Aws::String & GetArtifactS3Location() const
CreateCanaryRequest & WithRuntimeVersion(const char *value)
CreateCanaryRequest & WithRuntimeVersion(const Aws::String &value)
CreateCanaryRequest & AddTags(Aws::String &&key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateCanaryRequest & WithVpcConfig(VpcConfigInput &&value)
CreateCanaryRequest & WithSchedule(CanaryScheduleInput &&value)
CreateCanaryRequest & WithRuntimeVersion(Aws::String &&value)
void SetRuntimeVersion(const Aws::String &value)
CreateCanaryRequest & WithExecutionRoleArn(const char *value)
CreateCanaryRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateCanaryRequest & WithVpcConfig(const VpcConfigInput &value)
CreateCanaryRequest & WithRunConfig(CanaryRunConfigInput &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateCanaryRequest & WithFailureRetentionPeriodInDays(int value)
CreateCanaryRequest & AddResourcesToReplicateTags(ResourceToTag &&value)
void SetResourcesToReplicateTags(const Aws::Vector< ResourceToTag > &value)
CreateCanaryRequest & WithRunConfig(const CanaryRunConfigInput &value)
void SetRunConfig(const CanaryRunConfigInput &value)
const Aws::Vector< ResourceToTag > & GetResourcesToReplicateTags() const
CreateCanaryRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetExecutionRoleArn(const Aws::String &value)
CreateCanaryRequest & WithSchedule(const CanaryScheduleInput &value)
CreateCanaryRequest & WithName(const char *value)
void SetArtifactConfig(const ArtifactConfigInput &value)
CreateCanaryRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateCanaryRequest & WithResourcesToReplicateTags(const Aws::Vector< ResourceToTag > &value)
void SetSchedule(const CanaryScheduleInput &value)
CreateCanaryRequest & AddTags(const char *key, Aws::String &&value)
AWS_SYNTHETICS_API Aws::String SerializePayload() const override
const CanaryRunConfigInput & GetRunConfig() const
virtual const char * GetServiceRequestName() const override
void SetVpcConfig(const VpcConfigInput &value)
CreateCanaryRequest & WithExecutionRoleArn(Aws::String &&value)
void SetResourcesToReplicateTags(Aws::Vector< ResourceToTag > &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateCanaryRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetArtifactConfig(ArtifactConfigInput &&value)
CreateCanaryRequest & WithArtifactConfig(ArtifactConfigInput &&value)
CreateCanaryRequest & WithSuccessRetentionPeriodInDays(int value)
CreateCanaryRequest & AddTags(const Aws::String &key, Aws::String &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector