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/AWSMap.h>
18#include <aws/synthetics/model/ArtifactConfigOutput.h>
19#include <aws/synthetics/model/DryRunConfigOutput.h>
46 AWS_SYNTHETICS_API
Canary() =
default;
58 template<
typename IdT = Aws::String>
59 void SetId(IdT&& value) { m_idHasBeenSet =
true; m_id = std::forward<IdT>(value); }
60 template<
typename IdT = Aws::String>
70 template<
typename NameT = Aws::String>
71 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
72 template<
typename NameT = Aws::String>
80 template<
typename CodeT = CanaryCodeOutput>
81 void SetCode(CodeT&& value) { m_codeHasBeenSet =
true; m_code = std::forward<CodeT>(value); }
82 template<
typename CodeT = CanaryCodeOutput>
93 template<
typename ExecutionRoleArnT = Aws::String>
94 void SetExecutionRoleArn(ExecutionRoleArnT&& value) { m_executionRoleArnHasBeenSet =
true; m_executionRoleArn = std::forward<ExecutionRoleArnT>(value); }
95 template<
typename ExecutionRoleArnT = Aws::String>
106 template<
typename ScheduleT = CanaryScheduleOutput>
107 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet =
true; m_schedule = std::forward<ScheduleT>(value); }
108 template<
typename ScheduleT = CanaryScheduleOutput>
116 template<
typename RunConfigT = CanaryRunConfigOutput>
117 void SetRunConfig(RunConfigT&& value) { m_runConfigHasBeenSet =
true; m_runConfig = std::forward<RunConfigT>(value); }
118 template<
typename RunConfigT = CanaryRunConfigOutput>
154 template<
typename StatusT = CanaryStatus>
155 void SetStatus(StatusT&& value) { m_statusHasBeenSet =
true; m_status = std::forward<StatusT>(value); }
156 template<
typename StatusT = CanaryStatus>
167 template<
typename TimelineT = CanaryTimeline>
168 void SetTimeline(TimelineT&& value) { m_timelineHasBeenSet =
true; m_timeline = std::forward<TimelineT>(value); }
169 template<
typename TimelineT = CanaryTimeline>
180 template<
typename ArtifactS3LocationT = Aws::String>
181 void SetArtifactS3Location(ArtifactS3LocationT&& value) { m_artifactS3LocationHasBeenSet =
true; m_artifactS3Location = std::forward<ArtifactS3LocationT>(value); }
182 template<
typename ArtifactS3LocationT = Aws::String>
195 template<
typename EngineArnT = Aws::String>
196 void SetEngineArn(EngineArnT&& value) { m_engineArnHasBeenSet =
true; m_engineArn = std::forward<EngineArnT>(value); }
197 template<
typename EngineArnT = Aws::String>
210 template<
typename RuntimeVersionT = Aws::String>
211 void SetRuntimeVersion(RuntimeVersionT&& value) { m_runtimeVersionHasBeenSet =
true; m_runtimeVersion = std::forward<RuntimeVersionT>(value); }
212 template<
typename RuntimeVersionT = Aws::String>
220 template<
typename VpcConfigT = VpcConfigOutput>
221 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet =
true; m_vpcConfig = std::forward<VpcConfigT>(value); }
222 template<
typename VpcConfigT = VpcConfigOutput>
235 template<
typename VisualReferenceT = VisualReferenceOutput>
236 void SetVisualReference(VisualReferenceT&& value) { m_visualReferenceHasBeenSet =
true; m_visualReference = std::forward<VisualReferenceT>(value); }
237 template<
typename VisualReferenceT = VisualReferenceOutput>
264 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
265 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
266 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
268 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
270 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
282 template<
typename ArtifactConfigT = ArtifactConfigOutput>
283 void SetArtifactConfig(ArtifactConfigT&& value) { m_artifactConfigHasBeenSet =
true; m_artifactConfig = std::forward<ArtifactConfigT>(value); }
284 template<
typename ArtifactConfigT = ArtifactConfigOutput>
294 template<
typename DryRunConfigT = DryRunConfigOutput>
295 void SetDryRunConfig(DryRunConfigT&& value) { m_dryRunConfigHasBeenSet =
true; m_dryRunConfig = std::forward<DryRunConfigT>(value); }
296 template<
typename DryRunConfigT = DryRunConfigOutput>
302 bool m_idHasBeenSet =
false;
305 bool m_nameHasBeenSet =
false;
308 bool m_codeHasBeenSet =
false;
311 bool m_executionRoleArnHasBeenSet =
false;
314 bool m_scheduleHasBeenSet =
false;
317 bool m_runConfigHasBeenSet =
false;
319 int m_successRetentionPeriodInDays{0};
320 bool m_successRetentionPeriodInDaysHasBeenSet =
false;
322 int m_failureRetentionPeriodInDays{0};
323 bool m_failureRetentionPeriodInDaysHasBeenSet =
false;
325 CanaryStatus m_status;
326 bool m_statusHasBeenSet =
false;
328 CanaryTimeline m_timeline;
329 bool m_timelineHasBeenSet =
false;
332 bool m_artifactS3LocationHasBeenSet =
false;
335 bool m_engineArnHasBeenSet =
false;
338 bool m_runtimeVersionHasBeenSet =
false;
340 VpcConfigOutput m_vpcConfig;
341 bool m_vpcConfigHasBeenSet =
false;
343 VisualReferenceOutput m_visualReference;
344 bool m_visualReferenceHasBeenSet =
false;
347 bool m_provisionedResourceCleanupHasBeenSet =
false;
350 bool m_tagsHasBeenSet =
false;
352 ArtifactConfigOutput m_artifactConfig;
353 bool m_artifactConfigHasBeenSet =
false;
355 DryRunConfigOutput m_dryRunConfig;
356 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
bool ExecutionRoleArnHasBeenSet() const
void SetVpcConfig(VpcConfigT &&value)
bool VpcConfigHasBeenSet() const
void SetRuntimeVersion(RuntimeVersionT &&value)
bool ScheduleHasBeenSet() const
Canary & WithProvisionedResourceCleanup(ProvisionedResourceCleanupSetting value)
int GetSuccessRetentionPeriodInDays() const
const Aws::String & GetRuntimeVersion() const
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 StatusHasBeenSet() const
Canary & WithTimeline(TimelineT &&value)
void SetEngineArn(EngineArnT &&value)
Canary & WithRunConfig(RunConfigT &&value)
const DryRunConfigOutput & GetDryRunConfig() const
const VisualReferenceOutput & GetVisualReference() const
bool FailureRetentionPeriodInDaysHasBeenSet() const
void SetVisualReference(VisualReferenceT &&value)
Canary & WithId(IdT &&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
Canary & WithTags(TagsT &&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
void SetSchedule(ScheduleT &&value)
bool ArtifactS3LocationHasBeenSet() const
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
Aws::Utils::Json::JsonValue JsonValue