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/ProvisionedResourceCleanupSetting.h>
21#include <aws/synthetics/model/VisualReferenceOutput.h>
22#include <aws/synthetics/model/VpcConfigOutput.h>
44 AWS_SYNTHETICS_API
Canary() =
default;
55 template <
typename IdT = Aws::String>
57 m_idHasBeenSet =
true;
58 m_id = std::forward<IdT>(value);
60 template <
typename IdT = Aws::String>
62 SetId(std::forward<IdT>(value));
73 template <
typename NameT = Aws::String>
75 m_nameHasBeenSet =
true;
76 m_name = std::forward<NameT>(value);
78 template <
typename NameT = Aws::String>
80 SetName(std::forward<NameT>(value));
89 template <
typename CodeT = CanaryCodeOutput>
91 m_codeHasBeenSet =
true;
92 m_code = std::forward<CodeT>(value);
94 template <
typename CodeT = CanaryCodeOutput>
96 SetCode(std::forward<CodeT>(value));
108 template <
typename ExecutionRoleArnT = Aws::String>
110 m_executionRoleArnHasBeenSet =
true;
111 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
113 template <
typename ExecutionRoleArnT = Aws::String>
127 template <
typename ScheduleT = CanaryScheduleOutput>
129 m_scheduleHasBeenSet =
true;
130 m_schedule = std::forward<ScheduleT>(value);
132 template <
typename ScheduleT = CanaryScheduleOutput>
143 template <
typename RunConfigT = CanaryRunConfigOutput>
145 m_runConfigHasBeenSet =
true;
146 m_runConfig = std::forward<RunConfigT>(value);
148 template <
typename RunConfigT = CanaryRunConfigOutput>
165 m_successRetentionPeriodInDaysHasBeenSet =
true;
166 m_successRetentionPeriodInDays = value;
184 m_failureRetentionPeriodInDaysHasBeenSet =
true;
185 m_failureRetentionPeriodInDays = value;
199 template <
typename StatusT = CanaryStatus>
201 m_statusHasBeenSet =
true;
202 m_status = std::forward<StatusT>(value);
204 template <
typename StatusT = CanaryStatus>
218 template <
typename TimelineT = CanaryTimeline>
220 m_timelineHasBeenSet =
true;
221 m_timeline = std::forward<TimelineT>(value);
223 template <
typename TimelineT = CanaryTimeline>
237 template <
typename ArtifactS3LocationT = Aws::String>
239 m_artifactS3LocationHasBeenSet =
true;
240 m_artifactS3Location = std::forward<ArtifactS3LocationT>(value);
242 template <
typename ArtifactS3LocationT = Aws::String>
258 template <
typename EngineArnT = Aws::String>
260 m_engineArnHasBeenSet =
true;
261 m_engineArn = std::forward<EngineArnT>(value);
263 template <
typename EngineArnT = Aws::String>
279 template <
typename RuntimeVersionT = Aws::String>
281 m_runtimeVersionHasBeenSet =
true;
282 m_runtimeVersion = std::forward<RuntimeVersionT>(value);
284 template <
typename RuntimeVersionT = Aws::String>
295 template <
typename VpcConfigT = VpcConfigOutput>
297 m_vpcConfigHasBeenSet =
true;
298 m_vpcConfig = std::forward<VpcConfigT>(value);
300 template <
typename VpcConfigT = VpcConfigOutput>
316 template <
typename VisualReferenceT = VisualReferenceOutput>
318 m_visualReferenceHasBeenSet =
true;
319 m_visualReference = std::forward<VisualReferenceT>(value);
321 template <
typename VisualReferenceT = VisualReferenceOutput>
342 m_provisionedResourceCleanupHasBeenSet =
true;
343 m_provisionedResourceCleanup = value;
360 template <
typename BrowserConfigsT = Aws::Vector<BrowserConfig>>
362 m_browserConfigsHasBeenSet =
true;
363 m_browserConfigs = std::forward<BrowserConfigsT>(value);
365 template <
typename BrowserConfigsT = Aws::Vector<BrowserConfig>>
370 template <
typename BrowserConfigsT = BrowserConfig>
372 m_browserConfigsHasBeenSet =
true;
373 m_browserConfigs.emplace_back(std::forward<BrowserConfigsT>(value));
391 template <
typename EngineConfigsT = Aws::Vector<EngineConfig>>
393 m_engineConfigsHasBeenSet =
true;
394 m_engineConfigs = std::forward<EngineConfigsT>(value);
396 template <
typename EngineConfigsT = Aws::Vector<EngineConfig>>
401 template <
typename EngineConfigsT = EngineConfig>
403 m_engineConfigsHasBeenSet =
true;
404 m_engineConfigs.emplace_back(std::forward<EngineConfigsT>(value));
424 template <
typename VisualReferencesT = Aws::Vector<VisualReferenceOutput>>
426 m_visualReferencesHasBeenSet =
true;
427 m_visualReferences = std::forward<VisualReferencesT>(value);
429 template <
typename VisualReferencesT = Aws::Vector<VisualReferenceOutput>>
434 template <
typename VisualReferencesT = VisualReferenceOutput>
436 m_visualReferencesHasBeenSet =
true;
437 m_visualReferences.emplace_back(std::forward<VisualReferencesT>(value));
448 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
450 m_tagsHasBeenSet =
true;
451 m_tags = std::forward<TagsT>(value);
453 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
455 SetTags(std::forward<TagsT>(value));
458 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
460 m_tagsHasBeenSet =
true;
461 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
474 template <
typename ArtifactConfigT = ArtifactConfigOutput>
476 m_artifactConfigHasBeenSet =
true;
477 m_artifactConfig = std::forward<ArtifactConfigT>(value);
479 template <
typename ArtifactConfigT = ArtifactConfigOutput>
492 template <
typename DryRunConfigT = DryRunConfigOutput>
494 m_dryRunConfigHasBeenSet =
true;
495 m_dryRunConfig = std::forward<DryRunConfigT>(value);
497 template <
typename DryRunConfigT = DryRunConfigOutput>
516 int m_successRetentionPeriodInDays{0};
518 int m_failureRetentionPeriodInDays{0};
520 CanaryStatus m_status;
522 CanaryTimeline m_timeline;
530 VpcConfigOutput m_vpcConfig;
532 VisualReferenceOutput m_visualReference;
544 ArtifactConfigOutput m_artifactConfig;
546 DryRunConfigOutput m_dryRunConfig;
547 bool m_idHasBeenSet =
false;
548 bool m_nameHasBeenSet =
false;
549 bool m_codeHasBeenSet =
false;
550 bool m_executionRoleArnHasBeenSet =
false;
551 bool m_scheduleHasBeenSet =
false;
552 bool m_runConfigHasBeenSet =
false;
553 bool m_successRetentionPeriodInDaysHasBeenSet =
false;
554 bool m_failureRetentionPeriodInDaysHasBeenSet =
false;
555 bool m_statusHasBeenSet =
false;
556 bool m_timelineHasBeenSet =
false;
557 bool m_artifactS3LocationHasBeenSet =
false;
558 bool m_engineArnHasBeenSet =
false;
559 bool m_runtimeVersionHasBeenSet =
false;
560 bool m_vpcConfigHasBeenSet =
false;
561 bool m_visualReferenceHasBeenSet =
false;
562 bool m_provisionedResourceCleanupHasBeenSet =
false;
563 bool m_browserConfigsHasBeenSet =
false;
564 bool m_engineConfigsHasBeenSet =
false;
565 bool m_visualReferencesHasBeenSet =
false;
566 bool m_tagsHasBeenSet =
false;
567 bool m_artifactConfigHasBeenSet =
false;
568 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
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 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)
bool SuccessRetentionPeriodInDaysHasBeenSet() const
const ArtifactConfigOutput & GetArtifactConfig() const
ProvisionedResourceCleanupSetting GetProvisionedResourceCleanup() 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 & WithRuntimeVersion(RuntimeVersionT &&value)
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)
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