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/core/utils/memory/stl/AWSMap.h>
16#include <aws/synthetics/model/ArtifactConfigInput.h>
17#include <aws/synthetics/model/ResourceToTag.h>
57 inline void SetName(
const char* value) { m_nameHasBeenSet =
true; m_name.assign(value); }
87 inline void SetArtifactS3Location(
const char* value) { m_artifactS3LocationHasBeenSet =
true; m_artifactS3Location.assign(value); }
110 inline void SetExecutionRoleArn(
const char* value) { m_executionRoleArnHasBeenSet =
true; m_executionRoleArn.assign(value); }
179 inline void SetRuntimeVersion(
const char* value) { m_runtimeVersionHasBeenSet =
true; m_runtimeVersion.assign(value); }
241 inline CreateCanaryRequest&
AddTags(
const char* key,
const char* value) { m_tagsHasBeenSet =
true; m_tags.emplace(key, value);
return *
this; }
260 bool m_nameHasBeenSet =
false;
263 bool m_codeHasBeenSet =
false;
266 bool m_artifactS3LocationHasBeenSet =
false;
269 bool m_executionRoleArnHasBeenSet =
false;
272 bool m_scheduleHasBeenSet =
false;
275 bool m_runConfigHasBeenSet =
false;
277 int m_successRetentionPeriodInDays;
278 bool m_successRetentionPeriodInDaysHasBeenSet =
false;
280 int m_failureRetentionPeriodInDays;
281 bool m_failureRetentionPeriodInDaysHasBeenSet =
false;
284 bool m_runtimeVersionHasBeenSet =
false;
287 bool m_vpcConfigHasBeenSet =
false;
290 bool m_resourcesToReplicateTagsHasBeenSet =
false;
293 bool m_tagsHasBeenSet =
false;
296 bool m_artifactConfigHasBeenSet =
false;
const ArtifactConfigInput & GetArtifactConfig() const
const CanaryScheduleInput & GetSchedule() const
bool ResourcesToReplicateTagsHasBeenSet() const
void SetRunConfig(CanaryRunConfigInput &&value)
void SetName(const char *value)
CreateCanaryRequest & WithArtifactS3Location(const char *value)
bool VpcConfigHasBeenSet() const
bool ExecutionRoleArnHasBeenSet() const
CreateCanaryRequest & WithResourcesToReplicateTags(Aws::Vector< ResourceToTag > &&value)
CreateCanaryRequest & AddTags(Aws::String &&key, Aws::String &&value)
AWS_SYNTHETICS_API CreateCanaryRequest()
CreateCanaryRequest & WithArtifactConfig(const ArtifactConfigInput &value)
bool TagsHasBeenSet() const
void SetCode(const CanaryCodeInput &value)
CreateCanaryRequest & WithArtifactS3Location(Aws::String &&value)
CreateCanaryRequest & WithArtifactS3Location(const Aws::String &value)
void SetSchedule(CanaryScheduleInput &&value)
const CanaryCodeInput & GetCode() const
CreateCanaryRequest & WithExecutionRoleArn(const Aws::String &value)
CreateCanaryRequest & WithName(const Aws::String &value)
const Aws::String & GetName() const
CreateCanaryRequest & WithName(Aws::String &&value)
const VpcConfigInput & GetVpcConfig() const
CreateCanaryRequest & WithCode(const CanaryCodeInput &value)
void SetArtifactS3Location(const Aws::String &value)
CreateCanaryRequest & AddTags(const char *key, const char *value)
bool RunConfigHasBeenSet() const
void SetArtifactS3Location(const char *value)
bool RuntimeVersionHasBeenSet() const
CreateCanaryRequest & AddResourcesToReplicateTags(const ResourceToTag &value)
CreateCanaryRequest & WithCode(CanaryCodeInput &&value)
bool SuccessRetentionPeriodInDaysHasBeenSet() const
const Aws::String & GetArtifactS3Location() const
void SetVpcConfig(VpcConfigInput &&value)
CreateCanaryRequest & WithRuntimeVersion(const char *value)
bool ScheduleHasBeenSet() const
CreateCanaryRequest & WithRuntimeVersion(const Aws::String &value)
bool ArtifactS3LocationHasBeenSet() const
CreateCanaryRequest & AddTags(Aws::String &&key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateCanaryRequest & WithVpcConfig(VpcConfigInput &&value)
CreateCanaryRequest & WithSchedule(CanaryScheduleInput &&value)
CreateCanaryRequest & WithRuntimeVersion(Aws::String &&value)
void SetRuntimeVersion(const Aws::String &value)
void SetRuntimeVersion(Aws::String &&value)
CreateCanaryRequest & WithExecutionRoleArn(const char *value)
CreateCanaryRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateCanaryRequest & WithVpcConfig(const VpcConfigInput &value)
CreateCanaryRequest & WithRunConfig(CanaryRunConfigInput &&value)
const Aws::String & GetRuntimeVersion() const
void SetName(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetExecutionRoleArn(Aws::String &&value)
bool FailureRetentionPeriodInDaysHasBeenSet() const
CreateCanaryRequest & WithFailureRetentionPeriodInDays(int value)
CreateCanaryRequest & AddResourcesToReplicateTags(ResourceToTag &&value)
void SetArtifactS3Location(Aws::String &&value)
void SetResourcesToReplicateTags(const Aws::Vector< ResourceToTag > &value)
bool ArtifactConfigHasBeenSet() const
CreateCanaryRequest & WithRunConfig(const CanaryRunConfigInput &value)
void SetRunConfig(const CanaryRunConfigInput &value)
const Aws::Vector< ResourceToTag > & GetResourcesToReplicateTags() const
const Aws::String & GetExecutionRoleArn() const
CreateCanaryRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetExecutionRoleArn(const Aws::String &value)
CreateCanaryRequest & WithSchedule(const CanaryScheduleInput &value)
CreateCanaryRequest & WithName(const char *value)
void SetArtifactConfig(const ArtifactConfigInput &value)
CreateCanaryRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateCanaryRequest & WithResourcesToReplicateTags(const Aws::Vector< ResourceToTag > &value)
void SetSchedule(const CanaryScheduleInput &value)
void SetFailureRetentionPeriodInDays(int value)
CreateCanaryRequest & AddTags(const char *key, Aws::String &&value)
AWS_SYNTHETICS_API Aws::String SerializePayload() const override
const CanaryRunConfigInput & GetRunConfig() const
bool NameHasBeenSet() const
virtual const char * GetServiceRequestName() const override
void SetSuccessRetentionPeriodInDays(int value)
void SetVpcConfig(const VpcConfigInput &value)
CreateCanaryRequest & WithExecutionRoleArn(Aws::String &&value)
void SetResourcesToReplicateTags(Aws::Vector< ResourceToTag > &&value)
void SetCode(CanaryCodeInput &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetRuntimeVersion(const char *value)
CreateCanaryRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
int GetSuccessRetentionPeriodInDays() const
void SetArtifactConfig(ArtifactConfigInput &&value)
void SetName(const Aws::String &value)
CreateCanaryRequest & WithArtifactConfig(ArtifactConfigInput &&value)
bool CodeHasBeenSet() const
CreateCanaryRequest & WithSuccessRetentionPeriodInDays(int value)
int GetFailureRetentionPeriodInDays() const
CreateCanaryRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetExecutionRoleArn(const char *value)
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