AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
CanaryRun.h
1
6#pragma once
7#include <aws/synthetics/Synthetics_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/synthetics/model/CanaryRunStatus.h>
10#include <aws/synthetics/model/CanaryRunTimeline.h>
11#include <aws/synthetics/model/CanaryDryRunConfigOutput.h>
12#include <aws/synthetics/model/BrowserType.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Synthetics
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_SYNTHETICS_API CanaryRun() = default;
40 AWS_SYNTHETICS_API CanaryRun(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SYNTHETICS_API CanaryRun& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetId() const { return m_id; }
50 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
51 template<typename IdT = Aws::String>
52 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
53 template<typename IdT = Aws::String>
54 CanaryRun& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_scheduledRunIdHasBeenSet = true; m_scheduledRunId = std::forward<ScheduledRunIdT>(value); }
65 template<typename ScheduledRunIdT = Aws::String>
66 CanaryRun& WithScheduledRunId(ScheduledRunIdT&& value) { SetScheduledRunId(std::forward<ScheduledRunIdT>(value)); return *this;}
68
70
73 inline int GetRetryAttempt() const { return m_retryAttempt; }
74 inline bool RetryAttemptHasBeenSet() const { return m_retryAttemptHasBeenSet; }
75 inline void SetRetryAttempt(int value) { m_retryAttemptHasBeenSet = true; m_retryAttempt = value; }
76 inline CanaryRun& WithRetryAttempt(int value) { SetRetryAttempt(value); return *this;}
78
80
83 inline const Aws::String& GetName() const { return m_name; }
84 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
85 template<typename NameT = Aws::String>
86 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
87 template<typename NameT = Aws::String>
88 CanaryRun& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
90
92
95 inline const CanaryRunStatus& GetStatus() const { return m_status; }
96 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
97 template<typename StatusT = CanaryRunStatus>
98 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
99 template<typename StatusT = CanaryRunStatus>
100 CanaryRun& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
102
104
107 inline const CanaryRunTimeline& GetTimeline() const { return m_timeline; }
108 inline bool TimelineHasBeenSet() const { return m_timelineHasBeenSet; }
109 template<typename TimelineT = CanaryRunTimeline>
110 void SetTimeline(TimelineT&& value) { m_timelineHasBeenSet = true; m_timeline = std::forward<TimelineT>(value); }
111 template<typename TimelineT = CanaryRunTimeline>
112 CanaryRun& WithTimeline(TimelineT&& value) { SetTimeline(std::forward<TimelineT>(value)); return *this;}
114
116
120 inline const Aws::String& GetArtifactS3Location() const { return m_artifactS3Location; }
121 inline bool ArtifactS3LocationHasBeenSet() const { return m_artifactS3LocationHasBeenSet; }
122 template<typename ArtifactS3LocationT = Aws::String>
123 void SetArtifactS3Location(ArtifactS3LocationT&& value) { m_artifactS3LocationHasBeenSet = true; m_artifactS3Location = std::forward<ArtifactS3LocationT>(value); }
124 template<typename ArtifactS3LocationT = Aws::String>
125 CanaryRun& WithArtifactS3Location(ArtifactS3LocationT&& value) { SetArtifactS3Location(std::forward<ArtifactS3LocationT>(value)); return *this;}
127
129
132 inline const CanaryDryRunConfigOutput& GetDryRunConfig() const { return m_dryRunConfig; }
133 inline bool DryRunConfigHasBeenSet() const { return m_dryRunConfigHasBeenSet; }
134 template<typename DryRunConfigT = CanaryDryRunConfigOutput>
135 void SetDryRunConfig(DryRunConfigT&& value) { m_dryRunConfigHasBeenSet = true; m_dryRunConfig = std::forward<DryRunConfigT>(value); }
136 template<typename DryRunConfigT = CanaryDryRunConfigOutput>
137 CanaryRun& WithDryRunConfig(DryRunConfigT&& value) { SetDryRunConfig(std::forward<DryRunConfigT>(value)); return *this;}
139
141
144 inline BrowserType GetBrowserType() const { return m_browserType; }
145 inline bool BrowserTypeHasBeenSet() const { return m_browserTypeHasBeenSet; }
146 inline void SetBrowserType(BrowserType value) { m_browserTypeHasBeenSet = true; m_browserType = value; }
147 inline CanaryRun& WithBrowserType(BrowserType value) { SetBrowserType(value); return *this;}
149 private:
150
151 Aws::String m_id;
152 bool m_idHasBeenSet = false;
153
154 Aws::String m_scheduledRunId;
155 bool m_scheduledRunIdHasBeenSet = false;
156
157 int m_retryAttempt{0};
158 bool m_retryAttemptHasBeenSet = false;
159
160 Aws::String m_name;
161 bool m_nameHasBeenSet = false;
162
163 CanaryRunStatus m_status;
164 bool m_statusHasBeenSet = false;
165
166 CanaryRunTimeline m_timeline;
167 bool m_timelineHasBeenSet = false;
168
169 Aws::String m_artifactS3Location;
170 bool m_artifactS3LocationHasBeenSet = false;
171
172 CanaryDryRunConfigOutput m_dryRunConfig;
173 bool m_dryRunConfigHasBeenSet = false;
174
175 BrowserType m_browserType{BrowserType::NOT_SET};
176 bool m_browserTypeHasBeenSet = false;
177 };
178
179} // namespace Model
180} // namespace Synthetics
181} // namespace Aws
bool ArtifactS3LocationHasBeenSet() const
Definition CanaryRun.h:121
void SetBrowserType(BrowserType value)
Definition CanaryRun.h:146
BrowserType GetBrowserType() const
Definition CanaryRun.h:144
AWS_SYNTHETICS_API CanaryRun()=default
AWS_SYNTHETICS_API CanaryRun & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
Definition CanaryRun.h:83
CanaryRun & WithBrowserType(BrowserType value)
Definition CanaryRun.h:147
CanaryRun & WithId(IdT &&value)
Definition CanaryRun.h:54
void SetName(NameT &&value)
Definition CanaryRun.h:86
CanaryRun & WithArtifactS3Location(ArtifactS3LocationT &&value)
Definition CanaryRun.h:125
const CanaryRunTimeline & GetTimeline() const
Definition CanaryRun.h:107
const Aws::String & GetArtifactS3Location() const
Definition CanaryRun.h:120
CanaryRun & WithName(NameT &&value)
Definition CanaryRun.h:88
void SetArtifactS3Location(ArtifactS3LocationT &&value)
Definition CanaryRun.h:123
const CanaryDryRunConfigOutput & GetDryRunConfig() const
Definition CanaryRun.h:132
CanaryRun & WithStatus(StatusT &&value)
Definition CanaryRun.h:100
CanaryRun & WithTimeline(TimelineT &&value)
Definition CanaryRun.h:112
const Aws::String & GetScheduledRunId() const
Definition CanaryRun.h:61
CanaryRun & WithScheduledRunId(ScheduledRunIdT &&value)
Definition CanaryRun.h:66
CanaryRun & WithDryRunConfig(DryRunConfigT &&value)
Definition CanaryRun.h:137
CanaryRun & WithRetryAttempt(int value)
Definition CanaryRun.h:76
const CanaryRunStatus & GetStatus() const
Definition CanaryRun.h:95
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:135
void SetTimeline(TimelineT &&value)
Definition CanaryRun.h:110
const Aws::String & GetId() const
Definition CanaryRun.h:49
void SetStatus(StatusT &&value)
Definition CanaryRun.h:98
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue