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/AddReplicaLocationInput.h>
13#include <aws/synthetics/model/ArtifactConfigInput.h>
14#include <aws/synthetics/model/BrowserConfig.h>
15#include <aws/synthetics/model/CanaryCodeInput.h>
16#include <aws/synthetics/model/CanaryRunConfigInput.h>
17#include <aws/synthetics/model/CanaryScheduleInput.h>
18#include <aws/synthetics/model/ProvisionedResourceCleanupSetting.h>
19#include <aws/synthetics/model/ResourceToTag.h>
20#include <aws/synthetics/model/VpcConfigInput.h>
54 template <
typename NameT = Aws::String>
56 m_nameHasBeenSet =
true;
57 m_name = std::forward<NameT>(value);
59 template <
typename NameT = Aws::String>
61 SetName(std::forward<NameT>(value));
74 template <
typename CodeT = CanaryCodeInput>
76 m_codeHasBeenSet =
true;
77 m_code = std::forward<CodeT>(value);
79 template <
typename CodeT = CanaryCodeInput>
81 SetCode(std::forward<CodeT>(value));
94 template <
typename ArtifactS3LocationT = Aws::String>
96 m_artifactS3LocationHasBeenSet =
true;
97 m_artifactS3Location = std::forward<ArtifactS3LocationT>(value);
99 template <
typename ArtifactS3LocationT = Aws::String>
121 template <
typename ExecutionRoleArnT = Aws::String>
123 m_executionRoleArnHasBeenSet =
true;
124 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
126 template <
typename ExecutionRoleArnT = Aws::String>
140 template <
typename ScheduleT = CanaryScheduleInput>
142 m_scheduleHasBeenSet =
true;
143 m_schedule = std::forward<ScheduleT>(value);
145 template <
typename ScheduleT = CanaryScheduleInput>
162 template <
typename RunConfigT = CanaryRunConfigInput>
164 m_runConfigHasBeenSet =
true;
165 m_runConfig = std::forward<RunConfigT>(value);
167 template <
typename RunConfigT = CanaryRunConfigInput>
185 m_successRetentionPeriodInDaysHasBeenSet =
true;
186 m_successRetentionPeriodInDays = value;
205 m_failureRetentionPeriodInDaysHasBeenSet =
true;
206 m_failureRetentionPeriodInDays = value;
223 template <
typename RuntimeVersionT = Aws::String>
225 m_runtimeVersionHasBeenSet =
true;
226 m_runtimeVersion = std::forward<RuntimeVersionT>(value);
228 template <
typename RuntimeVersionT = Aws::String>
245 template <
typename VpcConfigT = VpcConfigInput>
247 m_vpcConfigHasBeenSet =
true;
248 m_vpcConfig = std::forward<VpcConfigT>(value);
250 template <
typename VpcConfigT = VpcConfigInput>
267 template <
typename ResourcesToReplicateTagsT = Aws::Vector<ResourceToTag>>
269 m_resourcesToReplicateTagsHasBeenSet =
true;
270 m_resourcesToReplicateTags = std::forward<ResourcesToReplicateTagsT>(value);
272 template <
typename ResourcesToReplicateTagsT = Aws::Vector<ResourceToTag>>
278 m_resourcesToReplicateTagsHasBeenSet =
true;
279 m_resourcesToReplicateTags.push_back(value);
299 m_provisionedResourceCleanupHasBeenSet =
true;
300 m_provisionedResourceCleanup = value;
320 template <
typename BrowserConfigsT = Aws::Vector<BrowserConfig>>
322 m_browserConfigsHasBeenSet =
true;
323 m_browserConfigs = std::forward<BrowserConfigsT>(value);
325 template <
typename BrowserConfigsT = Aws::Vector<BrowserConfig>>
330 template <
typename BrowserConfigsT = BrowserConfig>
332 m_browserConfigsHasBeenSet =
true;
333 m_browserConfigs.emplace_back(std::forward<BrowserConfigsT>(value));
346 template <
typename AddReplicaLocationsT = Aws::Vector<AddReplicaLocationInput>>
348 m_addReplicaLocationsHasBeenSet =
true;
349 m_addReplicaLocations = std::forward<AddReplicaLocationsT>(value);
351 template <
typename AddReplicaLocationsT = Aws::Vector<AddReplicaLocationInput>>
356 template <
typename AddReplicaLocationsT = AddReplicaLocationInput>
358 m_addReplicaLocationsHasBeenSet =
true;
359 m_addReplicaLocations.emplace_back(std::forward<AddReplicaLocationsT>(value));
376 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
378 m_tagsHasBeenSet =
true;
379 m_tags = std::forward<TagsT>(value);
381 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
383 SetTags(std::forward<TagsT>(value));
386 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
388 m_tagsHasBeenSet =
true;
389 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
402 template <
typename ArtifactConfigT = ArtifactConfigInput>
404 m_artifactConfigHasBeenSet =
true;
405 m_artifactConfig = std::forward<ArtifactConfigT>(value);
407 template <
typename ArtifactConfigT = ArtifactConfigInput>
423 template <
typename KmsKeyArnT = Aws::String>
425 m_kmsKeyArnHasBeenSet =
true;
426 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
428 template <
typename KmsKeyArnT = Aws::String>
447 int m_successRetentionPeriodInDays{0};
449 int m_failureRetentionPeriodInDays{0};
453 VpcConfigInput m_vpcConfig;
465 ArtifactConfigInput m_artifactConfig;
468 bool m_nameHasBeenSet =
false;
469 bool m_codeHasBeenSet =
false;
470 bool m_artifactS3LocationHasBeenSet =
false;
471 bool m_executionRoleArnHasBeenSet =
false;
472 bool m_scheduleHasBeenSet =
false;
473 bool m_runConfigHasBeenSet =
false;
474 bool m_successRetentionPeriodInDaysHasBeenSet =
false;
475 bool m_failureRetentionPeriodInDaysHasBeenSet =
false;
476 bool m_runtimeVersionHasBeenSet =
false;
477 bool m_vpcConfigHasBeenSet =
false;
478 bool m_resourcesToReplicateTagsHasBeenSet =
false;
479 bool m_provisionedResourceCleanupHasBeenSet =
false;
480 bool m_browserConfigsHasBeenSet =
false;
481 bool m_addReplicaLocationsHasBeenSet =
false;
482 bool m_tagsHasBeenSet =
false;
483 bool m_artifactConfigHasBeenSet =
false;
484 bool m_kmsKeyArnHasBeenSet =
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 & AddAddReplicaLocations(AddReplicaLocationsT &&value)
CreateCanaryRequest & WithName(NameT &&value)
CreateCanaryRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Vector< BrowserConfig > & GetBrowserConfigs() const
CreateCanaryRequest & AddBrowserConfigs(BrowserConfigsT &&value)
CreateCanaryRequest & WithKmsKeyArn(KmsKeyArnT &&value)
bool TagsHasBeenSet() const
void SetAddReplicaLocations(AddReplicaLocationsT &&value)
CreateCanaryRequest & WithAddReplicaLocations(AddReplicaLocationsT &&value)
CreateCanaryRequest & WithBrowserConfigs(BrowserConfigsT &&value)
const Aws::Vector< AddReplicaLocationInput > & GetAddReplicaLocations() const
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 KmsKeyArnHasBeenSet() const
bool ArtifactS3LocationHasBeenSet() const
void SetKmsKeyArn(KmsKeyArnT &&value)
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
bool AddReplicaLocationsHasBeenSet() 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)
const Aws::String & GetKmsKeyArn() const
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