7#include <aws/synthetics/Synthetics_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/synthetics/model/CanaryCodeOutput.h>
10#include <aws/synthetics/model/CanaryScheduleOutput.h>
11#include <aws/synthetics/model/CanaryRunConfigOutput.h>
12#include <aws/synthetics/model/CanaryStatus.h>
13#include <aws/synthetics/model/CanaryTimeline.h>
14#include <aws/synthetics/model/VpcConfigOutput.h>
15#include <aws/synthetics/model/VisualReferenceOutput.h>
16#include <aws/synthetics/model/ProvisionedResourceCleanupSetting.h>
17#include <aws/core/utils/memory/stl/AWSVector.h>
18#include <aws/core/utils/memory/stl/AWSMap.h>
19#include <aws/synthetics/model/ArtifactConfigOutput.h>
20#include <aws/synthetics/model/DryRunConfigOutput.h>
21#include <aws/synthetics/model/BrowserConfig.h>
22#include <aws/synthetics/model/EngineConfig.h>
49 AWS_SYNTHETICS_API
Canary() =
default;
61 template<
typename IdT = Aws::String>
62 void SetId(IdT&& value) { m_idHasBeenSet =
true; m_id = std::forward<IdT>(value); }
63 template<
typename IdT = Aws::String>
73 template<
typename NameT = Aws::String>
74 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
75 template<
typename NameT = Aws::String>
83 template<
typename CodeT = CanaryCodeOutput>
84 void SetCode(CodeT&& value) { m_codeHasBeenSet =
true; m_code = std::forward<CodeT>(value); }
85 template<
typename CodeT = CanaryCodeOutput>
96 template<
typename ExecutionRoleArnT = Aws::String>
97 void SetExecutionRoleArn(ExecutionRoleArnT&& value) { m_executionRoleArnHasBeenSet =
true; m_executionRoleArn = std::forward<ExecutionRoleArnT>(value); }
98 template<
typename ExecutionRoleArnT = Aws::String>
109 template<
typename ScheduleT = CanaryScheduleOutput>
110 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet =
true; m_schedule = std::forward<ScheduleT>(value); }
111 template<
typename ScheduleT = CanaryScheduleOutput>
119 template<
typename RunConfigT = CanaryRunConfigOutput>
120 void SetRunConfig(RunConfigT&& value) { m_runConfigHasBeenSet =
true; m_runConfig = std::forward<RunConfigT>(value); }
121 template<
typename RunConfigT = CanaryRunConfigOutput>
157 template<
typename StatusT = CanaryStatus>
158 void SetStatus(StatusT&& value) { m_statusHasBeenSet =
true; m_status = std::forward<StatusT>(value); }
159 template<
typename StatusT = CanaryStatus>
170 template<
typename TimelineT = CanaryTimeline>
171 void SetTimeline(TimelineT&& value) { m_timelineHasBeenSet =
true; m_timeline = std::forward<TimelineT>(value); }
172 template<
typename TimelineT = CanaryTimeline>
183 template<
typename ArtifactS3LocationT = Aws::String>
184 void SetArtifactS3Location(ArtifactS3LocationT&& value) { m_artifactS3LocationHasBeenSet =
true; m_artifactS3Location = std::forward<ArtifactS3LocationT>(value); }
185 template<
typename ArtifactS3LocationT = Aws::String>
198 template<
typename EngineArnT = Aws::String>
199 void SetEngineArn(EngineArnT&& value) { m_engineArnHasBeenSet =
true; m_engineArn = std::forward<EngineArnT>(value); }
200 template<
typename EngineArnT = Aws::String>
213 template<
typename RuntimeVersionT = Aws::String>
214 void SetRuntimeVersion(RuntimeVersionT&& value) { m_runtimeVersionHasBeenSet =
true; m_runtimeVersion = std::forward<RuntimeVersionT>(value); }
215 template<
typename RuntimeVersionT = Aws::String>
223 template<
typename VpcConfigT = VpcConfigOutput>
224 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet =
true; m_vpcConfig = std::forward<VpcConfigT>(value); }
225 template<
typename VpcConfigT = VpcConfigOutput>
238 template<
typename VisualReferenceT = VisualReferenceOutput>
239 void SetVisualReference(VisualReferenceT&& value) { m_visualReferenceHasBeenSet =
true; m_visualReference = std::forward<VisualReferenceT>(value); }
240 template<
typename VisualReferenceT = VisualReferenceOutput>
270 template<
typename BrowserConfigsT = Aws::Vector<BrowserConfig>>
271 void SetBrowserConfigs(BrowserConfigsT&& value) { m_browserConfigsHasBeenSet =
true; m_browserConfigs = std::forward<BrowserConfigsT>(value); }
272 template<
typename BrowserConfigsT = Aws::Vector<BrowserConfig>>
274 template<
typename BrowserConfigsT = BrowserConfig>
275 Canary&
AddBrowserConfigs(BrowserConfigsT&& value) { m_browserConfigsHasBeenSet =
true; m_browserConfigs.emplace_back(std::forward<BrowserConfigsT>(value));
return *
this; }
291 template<
typename EngineConfigsT = Aws::Vector<EngineConfig>>
292 void SetEngineConfigs(EngineConfigsT&& value) { m_engineConfigsHasBeenSet =
true; m_engineConfigs = std::forward<EngineConfigsT>(value); }
293 template<
typename EngineConfigsT = Aws::Vector<EngineConfig>>
295 template<
typename EngineConfigsT = EngineConfig>
296 Canary&
AddEngineConfigs(EngineConfigsT&& value) { m_engineConfigsHasBeenSet =
true; m_engineConfigs.emplace_back(std::forward<EngineConfigsT>(value));
return *
this; }
314 template<
typename VisualReferencesT = Aws::Vector<VisualReferenceOutput>>
315 void SetVisualReferences(VisualReferencesT&& value) { m_visualReferencesHasBeenSet =
true; m_visualReferences = std::forward<VisualReferencesT>(value); }
316 template<
typename VisualReferencesT = Aws::Vector<VisualReferenceOutput>>
318 template<
typename VisualReferencesT = VisualReferenceOutput>
319 Canary&
AddVisualReferences(VisualReferencesT&& value) { m_visualReferencesHasBeenSet =
true; m_visualReferences.emplace_back(std::forward<VisualReferencesT>(value));
return *
this; }
328 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
329 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
330 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
332 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
334 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
346 template<
typename ArtifactConfigT = ArtifactConfigOutput>
347 void SetArtifactConfig(ArtifactConfigT&& value) { m_artifactConfigHasBeenSet =
true; m_artifactConfig = std::forward<ArtifactConfigT>(value); }
348 template<
typename ArtifactConfigT = ArtifactConfigOutput>
358 template<
typename DryRunConfigT = DryRunConfigOutput>
359 void SetDryRunConfig(DryRunConfigT&& value) { m_dryRunConfigHasBeenSet =
true; m_dryRunConfig = std::forward<DryRunConfigT>(value); }
360 template<
typename DryRunConfigT = DryRunConfigOutput>
366 bool m_idHasBeenSet =
false;
369 bool m_nameHasBeenSet =
false;
372 bool m_codeHasBeenSet =
false;
375 bool m_executionRoleArnHasBeenSet =
false;
378 bool m_scheduleHasBeenSet =
false;
381 bool m_runConfigHasBeenSet =
false;
383 int m_successRetentionPeriodInDays{0};
384 bool m_successRetentionPeriodInDaysHasBeenSet =
false;
386 int m_failureRetentionPeriodInDays{0};
387 bool m_failureRetentionPeriodInDaysHasBeenSet =
false;
389 CanaryStatus m_status;
390 bool m_statusHasBeenSet =
false;
392 CanaryTimeline m_timeline;
393 bool m_timelineHasBeenSet =
false;
396 bool m_artifactS3LocationHasBeenSet =
false;
399 bool m_engineArnHasBeenSet =
false;
402 bool m_runtimeVersionHasBeenSet =
false;
404 VpcConfigOutput m_vpcConfig;
405 bool m_vpcConfigHasBeenSet =
false;
407 VisualReferenceOutput m_visualReference;
408 bool m_visualReferenceHasBeenSet =
false;
411 bool m_provisionedResourceCleanupHasBeenSet =
false;
414 bool m_browserConfigsHasBeenSet =
false;
417 bool m_engineConfigsHasBeenSet =
false;
420 bool m_visualReferencesHasBeenSet =
false;
423 bool m_tagsHasBeenSet =
false;
425 ArtifactConfigOutput m_artifactConfig;
426 bool m_artifactConfigHasBeenSet =
false;
428 DryRunConfigOutput m_dryRunConfig;
429 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