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>
19#include <aws/synthetics/model/BrowserConfig.h>
57 template<
typename NameT = Aws::String>
58 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
59 template<
typename NameT = Aws::String>
71 template<
typename CodeT = CanaryCodeInput>
72 void SetCode(CodeT&& value) { m_codeHasBeenSet =
true; m_code = std::forward<CodeT>(value); }
73 template<
typename CodeT = CanaryCodeInput>
85 template<
typename ArtifactS3LocationT = Aws::String>
86 void SetArtifactS3Location(ArtifactS3LocationT&& value) { m_artifactS3LocationHasBeenSet =
true; m_artifactS3Location = std::forward<ArtifactS3LocationT>(value); }
87 template<
typename ArtifactS3LocationT = Aws::String>
106 template<
typename ExecutionRoleArnT = Aws::String>
107 void SetExecutionRoleArn(ExecutionRoleArnT&& value) { m_executionRoleArnHasBeenSet =
true; m_executionRoleArn = std::forward<ExecutionRoleArnT>(value); }
108 template<
typename ExecutionRoleArnT = Aws::String>
119 template<
typename ScheduleT = CanaryScheduleInput>
120 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet =
true; m_schedule = std::forward<ScheduleT>(value); }
121 template<
typename ScheduleT = CanaryScheduleInput>
135 template<
typename RunConfigT = CanaryRunConfigInput>
136 void SetRunConfig(RunConfigT&& value) { m_runConfigHasBeenSet =
true; m_runConfig = std::forward<RunConfigT>(value); }
137 template<
typename RunConfigT = CanaryRunConfigInput>
178 template<
typename RuntimeVersionT = Aws::String>
179 void SetRuntimeVersion(RuntimeVersionT&& value) { m_runtimeVersionHasBeenSet =
true; m_runtimeVersion = std::forward<RuntimeVersionT>(value); }
180 template<
typename RuntimeVersionT = Aws::String>
194 template<
typename VpcConfigT = VpcConfigInput>
195 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet =
true; m_vpcConfig = std::forward<VpcConfigT>(value); }
196 template<
typename VpcConfigT = VpcConfigInput>
210 template<
typename ResourcesToReplicateTagsT = Aws::Vector<ResourceToTag>>
211 void SetResourcesToReplicateTags(ResourcesToReplicateTagsT&& value) { m_resourcesToReplicateTagsHasBeenSet =
true; m_resourcesToReplicateTags = std::forward<ResourcesToReplicateTagsT>(value); }
212 template<
typename ResourcesToReplicateTagsT = Aws::Vector<ResourceToTag>>
247 template<
typename BrowserConfigsT = Aws::Vector<BrowserConfig>>
248 void SetBrowserConfigs(BrowserConfigsT&& value) { m_browserConfigsHasBeenSet =
true; m_browserConfigs = std::forward<BrowserConfigsT>(value); }
249 template<
typename BrowserConfigsT = Aws::Vector<BrowserConfig>>
251 template<
typename BrowserConfigsT = BrowserConfig>
267 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
268 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
269 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
271 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
273 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
285 template<
typename ArtifactConfigT = ArtifactConfigInput>
286 void SetArtifactConfig(ArtifactConfigT&& value) { m_artifactConfigHasBeenSet =
true; m_artifactConfig = std::forward<ArtifactConfigT>(value); }
287 template<
typename ArtifactConfigT = ArtifactConfigInput>
293 bool m_nameHasBeenSet =
false;
296 bool m_codeHasBeenSet =
false;
299 bool m_artifactS3LocationHasBeenSet =
false;
302 bool m_executionRoleArnHasBeenSet =
false;
305 bool m_scheduleHasBeenSet =
false;
308 bool m_runConfigHasBeenSet =
false;
310 int m_successRetentionPeriodInDays{0};
311 bool m_successRetentionPeriodInDaysHasBeenSet =
false;
313 int m_failureRetentionPeriodInDays{0};
314 bool m_failureRetentionPeriodInDaysHasBeenSet =
false;
317 bool m_runtimeVersionHasBeenSet =
false;
319 VpcConfigInput m_vpcConfig;
320 bool m_vpcConfigHasBeenSet =
false;
323 bool m_resourcesToReplicateTagsHasBeenSet =
false;
326 bool m_provisionedResourceCleanupHasBeenSet =
false;
329 bool m_browserConfigsHasBeenSet =
false;
332 bool m_tagsHasBeenSet =
false;
334 ArtifactConfigInput m_artifactConfig;
335 bool m_artifactConfigHasBeenSet =
false;
const ArtifactConfigInput & GetArtifactConfig() const
const CanaryScheduleInput & GetSchedule() const
bool ResourcesToReplicateTagsHasBeenSet() const
void SetArtifactS3Location(ArtifactS3LocationT &&value)
bool BrowserConfigsHasBeenSet() const
bool VpcConfigHasBeenSet() const
bool ExecutionRoleArnHasBeenSet() const
CreateCanaryRequest & WithName(NameT &&value)
CreateCanaryRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Vector< BrowserConfig > & GetBrowserConfigs() const
CreateCanaryRequest & AddBrowserConfigs(BrowserConfigsT &&value)
bool TagsHasBeenSet() const
CreateCanaryRequest & WithBrowserConfigs(BrowserConfigsT &&value)
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)
void SetBrowserConfigs(BrowserConfigsT &&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