AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
CanaryRun.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/synthetics/Synthetics_EXPORTS.h>
9#include <aws/synthetics/model/BrowserType.h>
10#include <aws/synthetics/model/CanaryDryRunConfigOutput.h>
11#include <aws/synthetics/model/CanaryRunStatus.h>
12#include <aws/synthetics/model/CanaryRunTimeline.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Synthetics {
24namespace Model {
25
32class CanaryRun {
33 public:
34 AWS_SYNTHETICS_API CanaryRun() = default;
35 AWS_SYNTHETICS_API CanaryRun(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SYNTHETICS_API CanaryRun& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 template <typename IdT = Aws::String>
46 void SetId(IdT&& value) {
47 m_idHasBeenSet = true;
48 m_id = std::forward<IdT>(value);
49 }
50 template <typename IdT = Aws::String>
51 CanaryRun& WithId(IdT&& value) {
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetScheduledRunId() const { return m_scheduledRunId; }
62 inline bool ScheduledRunIdHasBeenSet() const { return m_scheduledRunIdHasBeenSet; }
63 template <typename ScheduledRunIdT = Aws::String>
64 void SetScheduledRunId(ScheduledRunIdT&& value) {
65 m_scheduledRunIdHasBeenSet = true;
66 m_scheduledRunId = std::forward<ScheduledRunIdT>(value);
67 }
68 template <typename ScheduledRunIdT = Aws::String>
69 CanaryRun& WithScheduledRunId(ScheduledRunIdT&& value) {
70 SetScheduledRunId(std::forward<ScheduledRunIdT>(value));
71 return *this;
72 }
74
76
79 inline int GetRetryAttempt() const { return m_retryAttempt; }
80 inline bool RetryAttemptHasBeenSet() const { return m_retryAttemptHasBeenSet; }
81 inline void SetRetryAttempt(int value) {
82 m_retryAttemptHasBeenSet = true;
83 m_retryAttempt = value;
84 }
85 inline CanaryRun& WithRetryAttempt(int value) {
86 SetRetryAttempt(value);
87 return *this;
88 }
90
92
95 inline const Aws::String& GetName() const { return m_name; }
96 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
97 template <typename NameT = Aws::String>
98 void SetName(NameT&& value) {
99 m_nameHasBeenSet = true;
100 m_name = std::forward<NameT>(value);
101 }
102 template <typename NameT = Aws::String>
103 CanaryRun& WithName(NameT&& value) {
104 SetName(std::forward<NameT>(value));
105 return *this;
106 }
108
110
113 inline const CanaryRunStatus& GetStatus() const { return m_status; }
114 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
115 template <typename StatusT = CanaryRunStatus>
116 void SetStatus(StatusT&& value) {
117 m_statusHasBeenSet = true;
118 m_status = std::forward<StatusT>(value);
119 }
120 template <typename StatusT = CanaryRunStatus>
121 CanaryRun& WithStatus(StatusT&& value) {
122 SetStatus(std::forward<StatusT>(value));
123 return *this;
124 }
126
128
131 inline const CanaryRunTimeline& GetTimeline() const { return m_timeline; }
132 inline bool TimelineHasBeenSet() const { return m_timelineHasBeenSet; }
133 template <typename TimelineT = CanaryRunTimeline>
134 void SetTimeline(TimelineT&& value) {
135 m_timelineHasBeenSet = true;
136 m_timeline = std::forward<TimelineT>(value);
137 }
138 template <typename TimelineT = CanaryRunTimeline>
139 CanaryRun& WithTimeline(TimelineT&& value) {
140 SetTimeline(std::forward<TimelineT>(value));
141 return *this;
142 }
144
146
150 inline const Aws::String& GetArtifactS3Location() const { return m_artifactS3Location; }
151 inline bool ArtifactS3LocationHasBeenSet() const { return m_artifactS3LocationHasBeenSet; }
152 template <typename ArtifactS3LocationT = Aws::String>
153 void SetArtifactS3Location(ArtifactS3LocationT&& value) {
154 m_artifactS3LocationHasBeenSet = true;
155 m_artifactS3Location = std::forward<ArtifactS3LocationT>(value);
156 }
157 template <typename ArtifactS3LocationT = Aws::String>
158 CanaryRun& WithArtifactS3Location(ArtifactS3LocationT&& value) {
159 SetArtifactS3Location(std::forward<ArtifactS3LocationT>(value));
160 return *this;
161 }
163
165
168 inline const CanaryDryRunConfigOutput& GetDryRunConfig() const { return m_dryRunConfig; }
169 inline bool DryRunConfigHasBeenSet() const { return m_dryRunConfigHasBeenSet; }
170 template <typename DryRunConfigT = CanaryDryRunConfigOutput>
171 void SetDryRunConfig(DryRunConfigT&& value) {
172 m_dryRunConfigHasBeenSet = true;
173 m_dryRunConfig = std::forward<DryRunConfigT>(value);
174 }
175 template <typename DryRunConfigT = CanaryDryRunConfigOutput>
176 CanaryRun& WithDryRunConfig(DryRunConfigT&& value) {
177 SetDryRunConfig(std::forward<DryRunConfigT>(value));
178 return *this;
179 }
181
183
186 inline BrowserType GetBrowserType() const { return m_browserType; }
187 inline bool BrowserTypeHasBeenSet() const { return m_browserTypeHasBeenSet; }
188 inline void SetBrowserType(BrowserType value) {
189 m_browserTypeHasBeenSet = true;
190 m_browserType = value;
191 }
193 SetBrowserType(value);
194 return *this;
195 }
197 private:
198 Aws::String m_id;
199 bool m_idHasBeenSet = false;
200
201 Aws::String m_scheduledRunId;
202 bool m_scheduledRunIdHasBeenSet = false;
203
204 int m_retryAttempt{0};
205 bool m_retryAttemptHasBeenSet = false;
206
207 Aws::String m_name;
208 bool m_nameHasBeenSet = false;
209
210 CanaryRunStatus m_status;
211 bool m_statusHasBeenSet = false;
212
213 CanaryRunTimeline m_timeline;
214 bool m_timelineHasBeenSet = false;
215
216 Aws::String m_artifactS3Location;
217 bool m_artifactS3LocationHasBeenSet = false;
218
219 CanaryDryRunConfigOutput m_dryRunConfig;
220 bool m_dryRunConfigHasBeenSet = false;
221
222 BrowserType m_browserType{BrowserType::NOT_SET};
223 bool m_browserTypeHasBeenSet = false;
224};
225
226} // namespace Model
227} // namespace Synthetics
228} // namespace Aws
bool ArtifactS3LocationHasBeenSet() const
Definition CanaryRun.h:151
void SetBrowserType(BrowserType value)
Definition CanaryRun.h:188
BrowserType GetBrowserType() const
Definition CanaryRun.h:186
AWS_SYNTHETICS_API CanaryRun()=default
AWS_SYNTHETICS_API CanaryRun & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
Definition CanaryRun.h:95
CanaryRun & WithBrowserType(BrowserType value)
Definition CanaryRun.h:192
CanaryRun & WithId(IdT &&value)
Definition CanaryRun.h:51
void SetName(NameT &&value)
Definition CanaryRun.h:98
CanaryRun & WithArtifactS3Location(ArtifactS3LocationT &&value)
Definition CanaryRun.h:158
const CanaryRunTimeline & GetTimeline() const
Definition CanaryRun.h:131
const Aws::String & GetArtifactS3Location() const
Definition CanaryRun.h:150
CanaryRun & WithName(NameT &&value)
Definition CanaryRun.h:103
void SetArtifactS3Location(ArtifactS3LocationT &&value)
Definition CanaryRun.h:153
const CanaryDryRunConfigOutput & GetDryRunConfig() const
Definition CanaryRun.h:168
CanaryRun & WithStatus(StatusT &&value)
Definition CanaryRun.h:121
CanaryRun & WithTimeline(TimelineT &&value)
Definition CanaryRun.h:139
const Aws::String & GetScheduledRunId() const
Definition CanaryRun.h:61
CanaryRun & WithScheduledRunId(ScheduledRunIdT &&value)
Definition CanaryRun.h:69
CanaryRun & WithDryRunConfig(DryRunConfigT &&value)
Definition CanaryRun.h:176
CanaryRun & WithRetryAttempt(int value)
Definition CanaryRun.h:85
const CanaryRunStatus & GetStatus() const
Definition CanaryRun.h:113
void SetScheduledRunId(ScheduledRunIdT &&value)
Definition CanaryRun.h:64
AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SYNTHETICS_API CanaryRun(Aws::Utils::Json::JsonView jsonValue)
void SetDryRunConfig(DryRunConfigT &&value)
Definition CanaryRun.h:171
void SetTimeline(TimelineT &&value)
Definition CanaryRun.h:134
const Aws::String & GetId() const
Definition CanaryRun.h:43
void SetStatus(StatusT &&value)
Definition CanaryRun.h:116
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue