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/Synthetics_EXPORTS.h>
11#include <aws/synthetics/model/ArtifactConfigOutput.h>
12#include <aws/synthetics/model/BrowserConfig.h>
13#include <aws/synthetics/model/CanaryCodeOutput.h>
14#include <aws/synthetics/model/CanaryRunConfigOutput.h>
15#include <aws/synthetics/model/CanaryScheduleOutput.h>
16#include <aws/synthetics/model/CanaryStatus.h>
17#include <aws/synthetics/model/CanaryTimeline.h>
18#include <aws/synthetics/model/DryRunConfigOutput.h>
19#include <aws/synthetics/model/EngineConfig.h>
20#include <aws/synthetics/model/MultiLocationConfig.h>
21#include <aws/synthetics/model/ProvisionedResourceCleanupSetting.h>
22#include <aws/synthetics/model/VisualReferenceOutput.h>
23#include <aws/synthetics/model/VpcConfigOutput.h>
45 AWS_SYNTHETICS_API
Canary() =
default;
56 template <
typename IdT = Aws::String>
58 m_idHasBeenSet =
true;
59 m_id = std::forward<IdT>(value);
61 template <
typename IdT = Aws::String>
63 SetId(std::forward<IdT>(value));
74 template <
typename NameT = Aws::String>
76 m_nameHasBeenSet =
true;
77 m_name = std::forward<NameT>(value);
79 template <
typename NameT = Aws::String>
81 SetName(std::forward<NameT>(value));
90 template <
typename CodeT = CanaryCodeOutput>
92 m_codeHasBeenSet =
true;
93 m_code = std::forward<CodeT>(value);
95 template <
typename CodeT = CanaryCodeOutput>
97 SetCode(std::forward<CodeT>(value));
109 template <
typename ExecutionRoleArnT = Aws::String>
111 m_executionRoleArnHasBeenSet =
true;
112 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
114 template <
typename ExecutionRoleArnT = Aws::String>
128 template <
typename ScheduleT = CanaryScheduleOutput>
130 m_scheduleHasBeenSet =
true;
131 m_schedule = std::forward<ScheduleT>(value);
133 template <
typename ScheduleT = CanaryScheduleOutput>
144 template <
typename RunConfigT = CanaryRunConfigOutput>
146 m_runConfigHasBeenSet =
true;
147 m_runConfig = std::forward<RunConfigT>(value);
149 template <
typename RunConfigT = CanaryRunConfigOutput>
166 m_successRetentionPeriodInDaysHasBeenSet =
true;
167 m_successRetentionPeriodInDays = value;
185 m_failureRetentionPeriodInDaysHasBeenSet =
true;
186 m_failureRetentionPeriodInDays = value;
200 template <
typename StatusT = CanaryStatus>
202 m_statusHasBeenSet =
true;
203 m_status = std::forward<StatusT>(value);
205 template <
typename StatusT = CanaryStatus>
219 template <
typename TimelineT = CanaryTimeline>
221 m_timelineHasBeenSet =
true;
222 m_timeline = std::forward<TimelineT>(value);
224 template <
typename TimelineT = CanaryTimeline>
238 template <
typename ArtifactS3LocationT = Aws::String>
240 m_artifactS3LocationHasBeenSet =
true;
241 m_artifactS3Location = std::forward<ArtifactS3LocationT>(value);
243 template <
typename ArtifactS3LocationT = Aws::String>
259 template <
typename EngineArnT = Aws::String>
261 m_engineArnHasBeenSet =
true;
262 m_engineArn = std::forward<EngineArnT>(value);
264 template <
typename EngineArnT = Aws::String>
280 template <
typename RuntimeVersionT = Aws::String>
282 m_runtimeVersionHasBeenSet =
true;
283 m_runtimeVersion = std::forward<RuntimeVersionT>(value);
285 template <
typename RuntimeVersionT = Aws::String>
296 template <
typename VpcConfigT = VpcConfigOutput>
298 m_vpcConfigHasBeenSet =
true;
299 m_vpcConfig = std::forward<VpcConfigT>(value);
301 template <
typename VpcConfigT = VpcConfigOutput>
317 template <
typename VisualReferenceT = VisualReferenceOutput>
319 m_visualReferenceHasBeenSet =
true;
320 m_visualReference = std::forward<VisualReferenceT>(value);
322 template <
typename VisualReferenceT = VisualReferenceOutput>
343 m_provisionedResourceCleanupHasBeenSet =
true;
344 m_provisionedResourceCleanup = value;
361 template <
typename BrowserConfigsT = Aws::Vector<BrowserConfig>>
363 m_browserConfigsHasBeenSet =
true;
364 m_browserConfigs = std::forward<BrowserConfigsT>(value);
366 template <
typename BrowserConfigsT = Aws::Vector<BrowserConfig>>
371 template <
typename BrowserConfigsT = BrowserConfig>
373 m_browserConfigsHasBeenSet =
true;
374 m_browserConfigs.emplace_back(std::forward<BrowserConfigsT>(value));
392 template <
typename EngineConfigsT = Aws::Vector<EngineConfig>>
394 m_engineConfigsHasBeenSet =
true;
395 m_engineConfigs = std::forward<EngineConfigsT>(value);
397 template <
typename EngineConfigsT = Aws::Vector<EngineConfig>>
402 template <
typename EngineConfigsT = EngineConfig>
404 m_engineConfigsHasBeenSet =
true;
405 m_engineConfigs.emplace_back(std::forward<EngineConfigsT>(value));
425 template <
typename VisualReferencesT = Aws::Vector<VisualReferenceOutput>>
427 m_visualReferencesHasBeenSet =
true;
428 m_visualReferences = std::forward<VisualReferencesT>(value);
430 template <
typename VisualReferencesT = Aws::Vector<VisualReferenceOutput>>
435 template <
typename VisualReferencesT = VisualReferenceOutput>
437 m_visualReferencesHasBeenSet =
true;
438 m_visualReferences.emplace_back(std::forward<VisualReferencesT>(value));
451 template <
typename MultiLocationConfigT = MultiLocationConfig>
453 m_multiLocationConfigHasBeenSet =
true;
454 m_multiLocationConfig = std::forward<MultiLocationConfigT>(value);
456 template <
typename MultiLocationConfigT = MultiLocationConfig>
469 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
471 m_tagsHasBeenSet =
true;
472 m_tags = std::forward<TagsT>(value);
474 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
476 SetTags(std::forward<TagsT>(value));
479 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
481 m_tagsHasBeenSet =
true;
482 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
495 template <
typename ArtifactConfigT = ArtifactConfigOutput>
497 m_artifactConfigHasBeenSet =
true;
498 m_artifactConfig = std::forward<ArtifactConfigT>(value);
500 template <
typename ArtifactConfigT = ArtifactConfigOutput>
516 template <
typename KmsKeyArnT = Aws::String>
518 m_kmsKeyArnHasBeenSet =
true;
519 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
521 template <
typename KmsKeyArnT = Aws::String>
534 template <
typename DryRunConfigT = DryRunConfigOutput>
536 m_dryRunConfigHasBeenSet =
true;
537 m_dryRunConfig = std::forward<DryRunConfigT>(value);
539 template <
typename DryRunConfigT = DryRunConfigOutput>
558 int m_successRetentionPeriodInDays{0};
560 int m_failureRetentionPeriodInDays{0};
562 CanaryStatus m_status;
564 CanaryTimeline m_timeline;
572 VpcConfigOutput m_vpcConfig;
574 VisualReferenceOutput m_visualReference;
584 MultiLocationConfig m_multiLocationConfig;
588 ArtifactConfigOutput m_artifactConfig;
592 DryRunConfigOutput m_dryRunConfig;
593 bool m_idHasBeenSet =
false;
594 bool m_nameHasBeenSet =
false;
595 bool m_codeHasBeenSet =
false;
596 bool m_executionRoleArnHasBeenSet =
false;
597 bool m_scheduleHasBeenSet =
false;
598 bool m_runConfigHasBeenSet =
false;
599 bool m_successRetentionPeriodInDaysHasBeenSet =
false;
600 bool m_failureRetentionPeriodInDaysHasBeenSet =
false;
601 bool m_statusHasBeenSet =
false;
602 bool m_timelineHasBeenSet =
false;
603 bool m_artifactS3LocationHasBeenSet =
false;
604 bool m_engineArnHasBeenSet =
false;
605 bool m_runtimeVersionHasBeenSet =
false;
606 bool m_vpcConfigHasBeenSet =
false;
607 bool m_visualReferenceHasBeenSet =
false;
608 bool m_provisionedResourceCleanupHasBeenSet =
false;
609 bool m_browserConfigsHasBeenSet =
false;
610 bool m_engineConfigsHasBeenSet =
false;
611 bool m_visualReferencesHasBeenSet =
false;
612 bool m_multiLocationConfigHasBeenSet =
false;
613 bool m_tagsHasBeenSet =
false;
614 bool m_artifactConfigHasBeenSet =
false;
615 bool m_kmsKeyArnHasBeenSet =
false;
616 bool m_dryRunConfigHasBeenSet =
false;
const VpcConfigOutput & GetVpcConfig() const
void SetTimeline(TimelineT &&value)
bool IdHasBeenSet() const
const CanaryTimeline & GetTimeline() const
AWS_SYNTHETICS_API Canary()=default
Canary & WithEngineArn(EngineArnT &&value)
bool RuntimeVersionHasBeenSet() const
void SetDryRunConfig(DryRunConfigT &&value)
void SetExecutionRoleArn(ExecutionRoleArnT &&value)
const Aws::String & GetName() const
bool TagsHasBeenSet() const
void SetCode(CodeT &&value)
bool NameHasBeenSet() const
bool ArtifactConfigHasBeenSet() const
Canary & WithBrowserConfigs(BrowserConfigsT &&value)
const Aws::Vector< EngineConfig > & GetEngineConfigs() const
bool BrowserConfigsHasBeenSet() const
const MultiLocationConfig & GetMultiLocationConfig() const
void SetKmsKeyArn(KmsKeyArnT &&value)
bool ExecutionRoleArnHasBeenSet() const
void SetVpcConfig(VpcConfigT &&value)
const Aws::Vector< VisualReferenceOutput > & GetVisualReferences() const
bool VpcConfigHasBeenSet() const
void SetRuntimeVersion(RuntimeVersionT &&value)
bool ScheduleHasBeenSet() const
Canary & WithProvisionedResourceCleanup(ProvisionedResourceCleanupSetting value)
int GetSuccessRetentionPeriodInDays() const
const Aws::String & GetRuntimeVersion() const
Canary & WithVisualReferences(VisualReferencesT &&value)
Canary & WithName(NameT &&value)
const Aws::String & GetId() const
void SetMultiLocationConfig(MultiLocationConfigT &&value)
void SetArtifactConfig(ArtifactConfigT &&value)
AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(StatusT &&value)
const CanaryStatus & GetStatus() const
const CanaryCodeOutput & GetCode() const
const Aws::String & GetEngineArn() const
bool VisualReferencesHasBeenSet() const
bool StatusHasBeenSet() const
Canary & WithTimeline(TimelineT &&value)
void SetEngineArn(EngineArnT &&value)
Canary & WithRunConfig(RunConfigT &&value)
const DryRunConfigOutput & GetDryRunConfig() const
void SetEngineConfigs(EngineConfigsT &&value)
const VisualReferenceOutput & GetVisualReference() const
bool FailureRetentionPeriodInDaysHasBeenSet() const
Canary & AddBrowserConfigs(BrowserConfigsT &&value)
void SetVisualReference(VisualReferenceT &&value)
Canary & AddEngineConfigs(EngineConfigsT &&value)
Canary & WithId(IdT &&value)
Canary & WithEngineConfigs(EngineConfigsT &&value)
void SetVisualReferences(VisualReferencesT &&value)
Canary & WithKmsKeyArn(KmsKeyArnT &&value)
bool SuccessRetentionPeriodInDaysHasBeenSet() const
const ArtifactConfigOutput & GetArtifactConfig() const
ProvisionedResourceCleanupSetting GetProvisionedResourceCleanup() const
bool KmsKeyArnHasBeenSet() const
Canary & WithStatus(StatusT &&value)
const Aws::String & GetArtifactS3Location() const
void SetRunConfig(RunConfigT &&value)
Canary & WithFailureRetentionPeriodInDays(int value)
Canary & AddTags(TagsKeyT &&key, TagsValueT &&value)
Canary & WithMultiLocationConfig(MultiLocationConfigT &&value)
Canary & WithRuntimeVersion(RuntimeVersionT &&value)
bool MultiLocationConfigHasBeenSet() const
void SetFailureRetentionPeriodInDays(int value)
int GetFailureRetentionPeriodInDays() const
bool ProvisionedResourceCleanupHasBeenSet() const
void SetArtifactS3Location(ArtifactS3LocationT &&value)
Canary & WithDryRunConfig(DryRunConfigT &&value)
const CanaryRunConfigOutput & GetRunConfig() const
bool EngineConfigsHasBeenSet() const
Canary & WithTags(TagsT &&value)
void SetBrowserConfigs(BrowserConfigsT &&value)
Canary & WithSchedule(ScheduleT &&value)
const CanaryScheduleOutput & GetSchedule() const
AWS_SYNTHETICS_API Canary(Aws::Utils::Json::JsonView jsonValue)
bool RunConfigHasBeenSet() const
const Aws::String & GetExecutionRoleArn() const
bool DryRunConfigHasBeenSet() const
void SetName(NameT &&value)
Canary & WithArtifactConfig(ArtifactConfigT &&value)
const Aws::String & GetKmsKeyArn() const
Canary & WithExecutionRoleArn(ExecutionRoleArnT &&value)
Canary & WithVisualReference(VisualReferenceT &&value)
Canary & WithArtifactS3Location(ArtifactS3LocationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetSuccessRetentionPeriodInDays(int value)
void SetTags(TagsT &&value)
Canary & WithSuccessRetentionPeriodInDays(int value)
bool CodeHasBeenSet() const
bool VisualReferenceHasBeenSet() const
const Aws::Vector< BrowserConfig > & GetBrowserConfigs() const
void SetSchedule(ScheduleT &&value)
bool ArtifactS3LocationHasBeenSet() const
Canary & AddVisualReferences(VisualReferencesT &&value)
Canary & WithVpcConfig(VpcConfigT &&value)
Canary & WithCode(CodeT &&value)
bool TimelineHasBeenSet() const
bool EngineArnHasBeenSet() const
void SetProvisionedResourceCleanup(ProvisionedResourceCleanupSetting value)
AWS_SYNTHETICS_API Canary & operator=(Aws::Utils::Json::JsonView jsonValue)
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
Aws::Utils::Json::JsonValue JsonValue