7#include <aws/synthetics/Synthetics_EXPORTS.h>
8#include <aws/synthetics/SyntheticsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/synthetics/model/CanaryCodeInput.h>
11#include <aws/synthetics/model/CanaryScheduleInput.h>
12#include <aws/synthetics/model/CanaryRunConfigInput.h>
13#include <aws/synthetics/model/VpcConfigInput.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/synthetics/model/ProvisionedResourceCleanupSetting.h>
16#include <aws/core/utils/memory/stl/AWSMap.h>
17#include <aws/synthetics/model/ArtifactConfigInput.h>
18#include <aws/synthetics/model/ResourceToTag.h>
56 template<
typename NameT = Aws::String>
57 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
58 template<
typename NameT = Aws::String>
70 template<
typename CodeT = CanaryCodeInput>
71 void SetCode(CodeT&& value) { m_codeHasBeenSet =
true; m_code = std::forward<CodeT>(value); }
72 template<
typename CodeT = CanaryCodeInput>
84 template<
typename ArtifactS3LocationT = Aws::String>
85 void SetArtifactS3Location(ArtifactS3LocationT&& value) { m_artifactS3LocationHasBeenSet =
true; m_artifactS3Location = std::forward<ArtifactS3LocationT>(value); }
86 template<
typename ArtifactS3LocationT = Aws::String>
105 template<
typename ExecutionRoleArnT = Aws::String>
106 void SetExecutionRoleArn(ExecutionRoleArnT&& value) { m_executionRoleArnHasBeenSet =
true; m_executionRoleArn = std::forward<ExecutionRoleArnT>(value); }
107 template<
typename ExecutionRoleArnT = Aws::String>
118 template<
typename ScheduleT = CanaryScheduleInput>
119 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet =
true; m_schedule = std::forward<ScheduleT>(value); }
120 template<
typename ScheduleT = CanaryScheduleInput>
134 template<
typename RunConfigT = CanaryRunConfigInput>
135 void SetRunConfig(RunConfigT&& value) { m_runConfigHasBeenSet =
true; m_runConfig = std::forward<RunConfigT>(value); }
136 template<
typename RunConfigT = CanaryRunConfigInput>
177 template<
typename RuntimeVersionT = Aws::String>
178 void SetRuntimeVersion(RuntimeVersionT&& value) { m_runtimeVersionHasBeenSet =
true; m_runtimeVersion = std::forward<RuntimeVersionT>(value); }
179 template<
typename RuntimeVersionT = Aws::String>
193 template<
typename VpcConfigT = VpcConfigInput>
194 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet =
true; m_vpcConfig = std::forward<VpcConfigT>(value); }
195 template<
typename VpcConfigT = VpcConfigInput>
209 template<
typename ResourcesToReplicateTagsT = Aws::Vector<ResourceToTag>>
210 void SetResourcesToReplicateTags(ResourcesToReplicateTagsT&& value) { m_resourcesToReplicateTagsHasBeenSet =
true; m_resourcesToReplicateTags = std::forward<ResourcesToReplicateTagsT>(value); }
211 template<
typename ResourcesToReplicateTagsT = Aws::Vector<ResourceToTag>>
246 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
247 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
248 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
250 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
252 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
264 template<
typename ArtifactConfigT = ArtifactConfigInput>
265 void SetArtifactConfig(ArtifactConfigT&& value) { m_artifactConfigHasBeenSet =
true; m_artifactConfig = std::forward<ArtifactConfigT>(value); }
266 template<
typename ArtifactConfigT = ArtifactConfigInput>
272 bool m_nameHasBeenSet =
false;
275 bool m_codeHasBeenSet =
false;
278 bool m_artifactS3LocationHasBeenSet =
false;
281 bool m_executionRoleArnHasBeenSet =
false;
284 bool m_scheduleHasBeenSet =
false;
287 bool m_runConfigHasBeenSet =
false;
289 int m_successRetentionPeriodInDays{0};
290 bool m_successRetentionPeriodInDaysHasBeenSet =
false;
292 int m_failureRetentionPeriodInDays{0};
293 bool m_failureRetentionPeriodInDaysHasBeenSet =
false;
296 bool m_runtimeVersionHasBeenSet =
false;
298 VpcConfigInput m_vpcConfig;
299 bool m_vpcConfigHasBeenSet =
false;
302 bool m_resourcesToReplicateTagsHasBeenSet =
false;
305 bool m_provisionedResourceCleanupHasBeenSet =
false;
308 bool m_tagsHasBeenSet =
false;
310 ArtifactConfigInput m_artifactConfig;
311 bool m_artifactConfigHasBeenSet =
false;
const ArtifactConfigInput & GetArtifactConfig() const
const CanaryScheduleInput & GetSchedule() const
bool ResourcesToReplicateTagsHasBeenSet() const
void SetArtifactS3Location(ArtifactS3LocationT &&value)
bool VpcConfigHasBeenSet() const
bool ExecutionRoleArnHasBeenSet() const
CreateCanaryRequest & WithName(NameT &&value)
CreateCanaryRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
bool TagsHasBeenSet() 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 ArtifactS3LocationHasBeenSet() const
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
const Aws::Vector< ResourceToTag > & GetResourcesToReplicateTags() const
const Aws::String & GetExecutionRoleArn() const
void SetName(NameT &&value)
CreateCanaryRequest & WithCode(CodeT &&value)
CreateCanaryRequest & WithRuntimeVersion(RuntimeVersionT &&value)
CreateCanaryRequest & WithArtifactConfig(ArtifactConfigT &&value)
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