AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StartCanaryDryRunRequest.h
1
6#pragma once
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/CanaryRunConfigInput.h>
12#include <aws/synthetics/model/VpcConfigInput.h>
13#include <aws/synthetics/model/VisualReferenceInput.h>
14#include <aws/synthetics/model/ArtifactConfigInput.h>
15#include <aws/synthetics/model/ProvisionedResourceCleanupSetting.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Synthetics
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_SYNTHETICS_API StartCanaryDryRunRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "StartCanaryDryRun"; }
37
38 AWS_SYNTHETICS_API Aws::String SerializePayload() const override;
39
40
42
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 StartCanaryDryRunRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
53
55
56 inline const CanaryCodeInput& GetCode() const { return m_code; }
57 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
58 template<typename CodeT = CanaryCodeInput>
59 void SetCode(CodeT&& value) { m_codeHasBeenSet = true; m_code = std::forward<CodeT>(value); }
60 template<typename CodeT = CanaryCodeInput>
61 StartCanaryDryRunRequest& WithCode(CodeT&& value) { SetCode(std::forward<CodeT>(value)); return *this;}
63
65
71 inline const Aws::String& GetRuntimeVersion() const { return m_runtimeVersion; }
72 inline bool RuntimeVersionHasBeenSet() const { return m_runtimeVersionHasBeenSet; }
73 template<typename RuntimeVersionT = Aws::String>
74 void SetRuntimeVersion(RuntimeVersionT&& value) { m_runtimeVersionHasBeenSet = true; m_runtimeVersion = std::forward<RuntimeVersionT>(value); }
75 template<typename RuntimeVersionT = Aws::String>
76 StartCanaryDryRunRequest& WithRuntimeVersion(RuntimeVersionT&& value) { SetRuntimeVersion(std::forward<RuntimeVersionT>(value)); return *this;}
78
80
81 inline const CanaryRunConfigInput& GetRunConfig() const { return m_runConfig; }
82 inline bool RunConfigHasBeenSet() const { return m_runConfigHasBeenSet; }
83 template<typename RunConfigT = CanaryRunConfigInput>
84 void SetRunConfig(RunConfigT&& value) { m_runConfigHasBeenSet = true; m_runConfig = std::forward<RunConfigT>(value); }
85 template<typename RunConfigT = CanaryRunConfigInput>
86 StartCanaryDryRunRequest& WithRunConfig(RunConfigT&& value) { SetRunConfig(std::forward<RunConfigT>(value)); return *this;}
88
90
91 inline const VpcConfigInput& GetVpcConfig() const { return m_vpcConfig; }
92 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
93 template<typename VpcConfigT = VpcConfigInput>
94 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::forward<VpcConfigT>(value); }
95 template<typename VpcConfigT = VpcConfigInput>
96 StartCanaryDryRunRequest& WithVpcConfig(VpcConfigT&& value) { SetVpcConfig(std::forward<VpcConfigT>(value)); return *this;}
98
100
105 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
106 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
107 template<typename ExecutionRoleArnT = Aws::String>
108 void SetExecutionRoleArn(ExecutionRoleArnT&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::forward<ExecutionRoleArnT>(value); }
109 template<typename ExecutionRoleArnT = Aws::String>
110 StartCanaryDryRunRequest& WithExecutionRoleArn(ExecutionRoleArnT&& value) { SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value)); return *this;}
112
114
121 inline int GetSuccessRetentionPeriodInDays() const { return m_successRetentionPeriodInDays; }
122 inline bool SuccessRetentionPeriodInDaysHasBeenSet() const { return m_successRetentionPeriodInDaysHasBeenSet; }
123 inline void SetSuccessRetentionPeriodInDays(int value) { m_successRetentionPeriodInDaysHasBeenSet = true; m_successRetentionPeriodInDays = value; }
126
128
135 inline int GetFailureRetentionPeriodInDays() const { return m_failureRetentionPeriodInDays; }
136 inline bool FailureRetentionPeriodInDaysHasBeenSet() const { return m_failureRetentionPeriodInDaysHasBeenSet; }
137 inline void SetFailureRetentionPeriodInDays(int value) { m_failureRetentionPeriodInDaysHasBeenSet = true; m_failureRetentionPeriodInDays = value; }
140
142
143 inline const VisualReferenceInput& GetVisualReference() const { return m_visualReference; }
144 inline bool VisualReferenceHasBeenSet() const { return m_visualReferenceHasBeenSet; }
145 template<typename VisualReferenceT = VisualReferenceInput>
146 void SetVisualReference(VisualReferenceT&& value) { m_visualReferenceHasBeenSet = true; m_visualReference = std::forward<VisualReferenceT>(value); }
147 template<typename VisualReferenceT = VisualReferenceInput>
148 StartCanaryDryRunRequest& WithVisualReference(VisualReferenceT&& value) { SetVisualReference(std::forward<VisualReferenceT>(value)); return *this;}
150
152
157 inline const Aws::String& GetArtifactS3Location() const { return m_artifactS3Location; }
158 inline bool ArtifactS3LocationHasBeenSet() const { return m_artifactS3LocationHasBeenSet; }
159 template<typename ArtifactS3LocationT = Aws::String>
160 void SetArtifactS3Location(ArtifactS3LocationT&& value) { m_artifactS3LocationHasBeenSet = true; m_artifactS3Location = std::forward<ArtifactS3LocationT>(value); }
161 template<typename ArtifactS3LocationT = Aws::String>
162 StartCanaryDryRunRequest& WithArtifactS3Location(ArtifactS3LocationT&& value) { SetArtifactS3Location(std::forward<ArtifactS3LocationT>(value)); return *this;}
164
166
167 inline const ArtifactConfigInput& GetArtifactConfig() const { return m_artifactConfig; }
168 inline bool ArtifactConfigHasBeenSet() const { return m_artifactConfigHasBeenSet; }
169 template<typename ArtifactConfigT = ArtifactConfigInput>
170 void SetArtifactConfig(ArtifactConfigT&& value) { m_artifactConfigHasBeenSet = true; m_artifactConfig = std::forward<ArtifactConfigT>(value); }
171 template<typename ArtifactConfigT = ArtifactConfigInput>
172 StartCanaryDryRunRequest& WithArtifactConfig(ArtifactConfigT&& value) { SetArtifactConfig(std::forward<ArtifactConfigT>(value)); return *this;}
174
176
187 inline ProvisionedResourceCleanupSetting GetProvisionedResourceCleanup() const { return m_provisionedResourceCleanup; }
188 inline bool ProvisionedResourceCleanupHasBeenSet() const { return m_provisionedResourceCleanupHasBeenSet; }
189 inline void SetProvisionedResourceCleanup(ProvisionedResourceCleanupSetting value) { m_provisionedResourceCleanupHasBeenSet = true; m_provisionedResourceCleanup = value; }
192 private:
193
194 Aws::String m_name;
195 bool m_nameHasBeenSet = false;
196
197 CanaryCodeInput m_code;
198 bool m_codeHasBeenSet = false;
199
200 Aws::String m_runtimeVersion;
201 bool m_runtimeVersionHasBeenSet = false;
202
203 CanaryRunConfigInput m_runConfig;
204 bool m_runConfigHasBeenSet = false;
205
206 VpcConfigInput m_vpcConfig;
207 bool m_vpcConfigHasBeenSet = false;
208
209 Aws::String m_executionRoleArn;
210 bool m_executionRoleArnHasBeenSet = false;
211
212 int m_successRetentionPeriodInDays{0};
213 bool m_successRetentionPeriodInDaysHasBeenSet = false;
214
215 int m_failureRetentionPeriodInDays{0};
216 bool m_failureRetentionPeriodInDaysHasBeenSet = false;
217
218 VisualReferenceInput m_visualReference;
219 bool m_visualReferenceHasBeenSet = false;
220
221 Aws::String m_artifactS3Location;
222 bool m_artifactS3LocationHasBeenSet = false;
223
224 ArtifactConfigInput m_artifactConfig;
225 bool m_artifactConfigHasBeenSet = false;
226
228 bool m_provisionedResourceCleanupHasBeenSet = false;
229 };
230
231} // namespace Model
232} // namespace Synthetics
233} // namespace Aws
StartCanaryDryRunRequest & WithRunConfig(RunConfigT &&value)
void SetProvisionedResourceCleanup(ProvisionedResourceCleanupSetting value)
StartCanaryDryRunRequest & WithArtifactS3Location(ArtifactS3LocationT &&value)
StartCanaryDryRunRequest & WithSuccessRetentionPeriodInDays(int value)
const VisualReferenceInput & GetVisualReference() const
virtual const char * GetServiceRequestName() const override
ProvisionedResourceCleanupSetting GetProvisionedResourceCleanup() const
StartCanaryDryRunRequest & WithRuntimeVersion(RuntimeVersionT &&value)
StartCanaryDryRunRequest & WithFailureRetentionPeriodInDays(int value)
StartCanaryDryRunRequest & WithProvisionedResourceCleanup(ProvisionedResourceCleanupSetting value)
StartCanaryDryRunRequest & WithCode(CodeT &&value)
StartCanaryDryRunRequest & WithName(NameT &&value)
StartCanaryDryRunRequest & WithArtifactConfig(ArtifactConfigT &&value)
AWS_SYNTHETICS_API StartCanaryDryRunRequest()=default
StartCanaryDryRunRequest & WithVpcConfig(VpcConfigT &&value)
StartCanaryDryRunRequest & WithVisualReference(VisualReferenceT &&value)
StartCanaryDryRunRequest & WithExecutionRoleArn(ExecutionRoleArnT &&value)
AWS_SYNTHETICS_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String