7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/synthetics/SyntheticsRequest.h>
11#include <aws/synthetics/Synthetics_EXPORTS.h>
12#include <aws/synthetics/model/ArtifactConfigInput.h>
13#include <aws/synthetics/model/BrowserConfig.h>
14#include <aws/synthetics/model/CanaryCodeInput.h>
15#include <aws/synthetics/model/CanaryRunConfigInput.h>
16#include <aws/synthetics/model/CanaryScheduleInput.h>
17#include <aws/synthetics/model/ProvisionedResourceCleanupSetting.h>
18#include <aws/synthetics/model/ResourceToTag.h>
19#include <aws/synthetics/model/VpcConfigInput.h>
53 template <
typename NameT = Aws::String>
55 m_nameHasBeenSet =
true;
56 m_name = std::forward<NameT>(value);
58 template <
typename NameT = Aws::String>
60 SetName(std::forward<NameT>(value));
73 template <
typename CodeT = CanaryCodeInput>
75 m_codeHasBeenSet =
true;
76 m_code = std::forward<CodeT>(value);
78 template <
typename CodeT = CanaryCodeInput>
80 SetCode(std::forward<CodeT>(value));
93 template <
typename ArtifactS3LocationT = Aws::String>
95 m_artifactS3LocationHasBeenSet =
true;
96 m_artifactS3Location = std::forward<ArtifactS3LocationT>(value);
98 template <
typename ArtifactS3LocationT = Aws::String>
120 template <
typename ExecutionRoleArnT = Aws::String>
122 m_executionRoleArnHasBeenSet =
true;
123 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
125 template <
typename ExecutionRoleArnT = Aws::String>
139 template <
typename ScheduleT = CanaryScheduleInput>
141 m_scheduleHasBeenSet =
true;
142 m_schedule = std::forward<ScheduleT>(value);
144 template <
typename ScheduleT = CanaryScheduleInput>
161 template <
typename RunConfigT = CanaryRunConfigInput>
163 m_runConfigHasBeenSet =
true;
164 m_runConfig = std::forward<RunConfigT>(value);
166 template <
typename RunConfigT = CanaryRunConfigInput>
184 m_successRetentionPeriodInDaysHasBeenSet =
true;
185 m_successRetentionPeriodInDays = value;
204 m_failureRetentionPeriodInDaysHasBeenSet =
true;
205 m_failureRetentionPeriodInDays = value;
222 template <
typename RuntimeVersionT = Aws::String>
224 m_runtimeVersionHasBeenSet =
true;
225 m_runtimeVersion = std::forward<RuntimeVersionT>(value);
227 template <
typename RuntimeVersionT = Aws::String>
244 template <
typename VpcConfigT = VpcConfigInput>
246 m_vpcConfigHasBeenSet =
true;
247 m_vpcConfig = std::forward<VpcConfigT>(value);
249 template <
typename VpcConfigT = VpcConfigInput>
266 template <
typename ResourcesToReplicateTagsT = Aws::Vector<ResourceToTag>>
268 m_resourcesToReplicateTagsHasBeenSet =
true;
269 m_resourcesToReplicateTags = std::forward<ResourcesToReplicateTagsT>(value);
271 template <
typename ResourcesToReplicateTagsT = Aws::Vector<ResourceToTag>>
277 m_resourcesToReplicateTagsHasBeenSet =
true;
278 m_resourcesToReplicateTags.push_back(value);
298 m_provisionedResourceCleanupHasBeenSet =
true;
299 m_provisionedResourceCleanup = value;
319 template <
typename BrowserConfigsT = Aws::Vector<BrowserConfig>>
321 m_browserConfigsHasBeenSet =
true;
322 m_browserConfigs = std::forward<BrowserConfigsT>(value);
324 template <
typename BrowserConfigsT = Aws::Vector<BrowserConfig>>
329 template <
typename BrowserConfigsT = BrowserConfig>
331 m_browserConfigsHasBeenSet =
true;
332 m_browserConfigs.emplace_back(std::forward<BrowserConfigsT>(value));
349 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
351 m_tagsHasBeenSet =
true;
352 m_tags = std::forward<TagsT>(value);
354 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
356 SetTags(std::forward<TagsT>(value));
359 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
361 m_tagsHasBeenSet =
true;
362 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
375 template <
typename ArtifactConfigT = ArtifactConfigInput>
377 m_artifactConfigHasBeenSet =
true;
378 m_artifactConfig = std::forward<ArtifactConfigT>(value);
380 template <
typename ArtifactConfigT = ArtifactConfigInput>
399 int m_successRetentionPeriodInDays{0};
401 int m_failureRetentionPeriodInDays{0};
405 VpcConfigInput m_vpcConfig;
415 ArtifactConfigInput m_artifactConfig;
416 bool m_nameHasBeenSet =
false;
417 bool m_codeHasBeenSet =
false;
418 bool m_artifactS3LocationHasBeenSet =
false;
419 bool m_executionRoleArnHasBeenSet =
false;
420 bool m_scheduleHasBeenSet =
false;
421 bool m_runConfigHasBeenSet =
false;
422 bool m_successRetentionPeriodInDaysHasBeenSet =
false;
423 bool m_failureRetentionPeriodInDaysHasBeenSet =
false;
424 bool m_runtimeVersionHasBeenSet =
false;
425 bool m_vpcConfigHasBeenSet =
false;
426 bool m_resourcesToReplicateTagsHasBeenSet =
false;
427 bool m_provisionedResourceCleanupHasBeenSet =
false;
428 bool m_browserConfigsHasBeenSet =
false;
429 bool m_tagsHasBeenSet =
false;
430 bool m_artifactConfigHasBeenSet =
false;
const ArtifactConfigInput & GetArtifactConfig() const
const CanaryScheduleInput & GetSchedule() const
bool ResourcesToReplicateTagsHasBeenSet() const
void SetArtifactS3Location(ArtifactS3LocationT &&value)
bool BrowserConfigsHasBeenSet() const
bool VpcConfigHasBeenSet() const
bool ExecutionRoleArnHasBeenSet() const
CreateCanaryRequest & WithName(NameT &&value)
CreateCanaryRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Vector< BrowserConfig > & GetBrowserConfigs() const
CreateCanaryRequest & AddBrowserConfigs(BrowserConfigsT &&value)
bool TagsHasBeenSet() const
CreateCanaryRequest & WithBrowserConfigs(BrowserConfigsT &&value)
CreateCanaryRequest & WithSchedule(ScheduleT &&value)
const CanaryCodeInput & GetCode() const
bool ProvisionedResourceCleanupHasBeenSet() const
const Aws::String & GetName() const
const VpcConfigInput & GetVpcConfig() const
CreateCanaryRequest & WithVpcConfig(VpcConfigT &&value)
CreateCanaryRequest & AddResourcesToReplicateTags(ResourceToTag value)
void SetCode(CodeT &&value)
bool RunConfigHasBeenSet() const
bool RuntimeVersionHasBeenSet() const
void SetRunConfig(RunConfigT &&value)
bool SuccessRetentionPeriodInDaysHasBeenSet() const
const Aws::String & GetArtifactS3Location() const
CreateCanaryRequest & WithProvisionedResourceCleanup(ProvisionedResourceCleanupSetting value)
bool ScheduleHasBeenSet() const
bool ArtifactS3LocationHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateCanaryRequest & WithExecutionRoleArn(ExecutionRoleArnT &&value)
const Aws::String & GetRuntimeVersion() const
CreateCanaryRequest & WithTags(TagsT &&value)
void SetExecutionRoleArn(ExecutionRoleArnT &&value)
CreateCanaryRequest & WithResourcesToReplicateTags(ResourcesToReplicateTagsT &&value)
bool FailureRetentionPeriodInDaysHasBeenSet() const
void SetProvisionedResourceCleanup(ProvisionedResourceCleanupSetting value)
CreateCanaryRequest & WithFailureRetentionPeriodInDays(int value)
AWS_SYNTHETICS_API CreateCanaryRequest()=default
bool ArtifactConfigHasBeenSet() const
const Aws::Vector< ResourceToTag > & GetResourcesToReplicateTags() const
const Aws::String & GetExecutionRoleArn() const
void SetName(NameT &&value)
CreateCanaryRequest & WithCode(CodeT &&value)
CreateCanaryRequest & WithRuntimeVersion(RuntimeVersionT &&value)
void SetBrowserConfigs(BrowserConfigsT &&value)
CreateCanaryRequest & WithArtifactConfig(ArtifactConfigT &&value)
void SetFailureRetentionPeriodInDays(int value)
void SetTags(TagsT &&value)
AWS_SYNTHETICS_API Aws::String SerializePayload() const override
const CanaryRunConfigInput & GetRunConfig() const
void SetSchedule(ScheduleT &&value)
void SetResourcesToReplicateTags(ResourcesToReplicateTagsT &&value)
bool NameHasBeenSet() const
virtual const char * GetServiceRequestName() const override
void SetSuccessRetentionPeriodInDays(int value)
void SetArtifactConfig(ArtifactConfigT &&value)
void SetVpcConfig(VpcConfigT &&value)
CreateCanaryRequest & WithArtifactS3Location(ArtifactS3LocationT &&value)
int GetSuccessRetentionPeriodInDays() const
void SetRuntimeVersion(RuntimeVersionT &&value)
bool CodeHasBeenSet() const
CreateCanaryRequest & WithSuccessRetentionPeriodInDays(int value)
int GetFailureRetentionPeriodInDays() const
CreateCanaryRequest & WithRunConfig(RunConfigT &&value)
ProvisionedResourceCleanupSetting GetProvisionedResourceCleanup() const
ProvisionedResourceCleanupSetting
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