AWS SDK for C++  1.9.154
AWS SDK for C++
CanaryRun.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace Synthetics
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetId() const{ return m_id; }
47 
51  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 
56  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
57 
61  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
62 
66  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
67 
71  inline CanaryRun& WithId(const Aws::String& value) { SetId(value); return *this;}
72 
76  inline CanaryRun& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
77 
81  inline CanaryRun& WithId(const char* value) { SetId(value); return *this;}
82 
83 
87  inline const Aws::String& GetName() const{ return m_name; }
88 
92  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
93 
97  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
98 
102  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
103 
107  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
108 
112  inline CanaryRun& WithName(const Aws::String& value) { SetName(value); return *this;}
113 
117  inline CanaryRun& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
118 
122  inline CanaryRun& WithName(const char* value) { SetName(value); return *this;}
123 
124 
128  inline const CanaryRunStatus& GetStatus() const{ return m_status; }
129 
133  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
134 
138  inline void SetStatus(const CanaryRunStatus& value) { m_statusHasBeenSet = true; m_status = value; }
139 
143  inline void SetStatus(CanaryRunStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
144 
148  inline CanaryRun& WithStatus(const CanaryRunStatus& value) { SetStatus(value); return *this;}
149 
153  inline CanaryRun& WithStatus(CanaryRunStatus&& value) { SetStatus(std::move(value)); return *this;}
154 
155 
159  inline const CanaryRunTimeline& GetTimeline() const{ return m_timeline; }
160 
164  inline bool TimelineHasBeenSet() const { return m_timelineHasBeenSet; }
165 
169  inline void SetTimeline(const CanaryRunTimeline& value) { m_timelineHasBeenSet = true; m_timeline = value; }
170 
174  inline void SetTimeline(CanaryRunTimeline&& value) { m_timelineHasBeenSet = true; m_timeline = std::move(value); }
175 
179  inline CanaryRun& WithTimeline(const CanaryRunTimeline& value) { SetTimeline(value); return *this;}
180 
184  inline CanaryRun& WithTimeline(CanaryRunTimeline&& value) { SetTimeline(std::move(value)); return *this;}
185 
186 
191  inline const Aws::String& GetArtifactS3Location() const{ return m_artifactS3Location; }
192 
197  inline bool ArtifactS3LocationHasBeenSet() const { return m_artifactS3LocationHasBeenSet; }
198 
203  inline void SetArtifactS3Location(const Aws::String& value) { m_artifactS3LocationHasBeenSet = true; m_artifactS3Location = value; }
204 
209  inline void SetArtifactS3Location(Aws::String&& value) { m_artifactS3LocationHasBeenSet = true; m_artifactS3Location = std::move(value); }
210 
215  inline void SetArtifactS3Location(const char* value) { m_artifactS3LocationHasBeenSet = true; m_artifactS3Location.assign(value); }
216 
221  inline CanaryRun& WithArtifactS3Location(const Aws::String& value) { SetArtifactS3Location(value); return *this;}
222 
227  inline CanaryRun& WithArtifactS3Location(Aws::String&& value) { SetArtifactS3Location(std::move(value)); return *this;}
228 
233  inline CanaryRun& WithArtifactS3Location(const char* value) { SetArtifactS3Location(value); return *this;}
234 
235  private:
236 
237  Aws::String m_id;
238  bool m_idHasBeenSet;
239 
240  Aws::String m_name;
241  bool m_nameHasBeenSet;
242 
243  CanaryRunStatus m_status;
244  bool m_statusHasBeenSet;
245 
246  CanaryRunTimeline m_timeline;
247  bool m_timelineHasBeenSet;
248 
249  Aws::String m_artifactS3Location;
250  bool m_artifactS3LocationHasBeenSet;
251  };
252 
253 } // namespace Model
254 } // namespace Synthetics
255 } // namespace Aws
Aws::Synthetics::Model::CanaryRun::ArtifactS3LocationHasBeenSet
bool ArtifactS3LocationHasBeenSet() const
Definition: CanaryRun.h:197
Aws::Synthetics::Model::CanaryRun::WithId
CanaryRun & WithId(const Aws::String &value)
Definition: CanaryRun.h:71
Aws::Synthetics::Model::CanaryRun::WithName
CanaryRun & WithName(Aws::String &&value)
Definition: CanaryRun.h:117
Aws::Synthetics::Model::CanaryRunStatus
Definition: CanaryRunStatus.h:35
Aws::Synthetics::Model::CanaryRunTimeline
Definition: CanaryRunTimeline.h:33
Aws::Synthetics::Model::CanaryRun::GetStatus
const CanaryRunStatus & GetStatus() const
Definition: CanaryRun.h:128
Aws::Synthetics::Model::CanaryRun
Definition: CanaryRun.h:35
Aws::Synthetics::Model::CanaryRun::CanaryRun
CanaryRun(Aws::Utils::Json::JsonView jsonValue)
Aws::Synthetics::Model::CanaryRun::WithStatus
CanaryRun & WithStatus(const CanaryRunStatus &value)
Definition: CanaryRun.h:148
Aws::Synthetics::Model::CanaryRun::SetId
void SetId(Aws::String &&value)
Definition: CanaryRun.h:61
CanaryRunTimeline.h
Aws::Synthetics::Model::CanaryRun::SetName
void SetName(const Aws::String &value)
Definition: CanaryRun.h:97
Aws::Synthetics::Model::CanaryRun::GetId
const Aws::String & GetId() const
Definition: CanaryRun.h:46
AWS_SYNTHETICS_API
#define AWS_SYNTHETICS_API
Definition: Synthetics_EXPORTS.h:28
Aws::Synthetics::Model::CanaryRun::SetTimeline
void SetTimeline(const CanaryRunTimeline &value)
Definition: CanaryRun.h:169
Aws::Synthetics::Model::CanaryRun::SetStatus
void SetStatus(CanaryRunStatus &&value)
Definition: CanaryRun.h:143
Aws::Synthetics::Model::CanaryRun::CanaryRun
CanaryRun()
Aws::Synthetics::Model::CanaryRun::SetId
void SetId(const Aws::String &value)
Definition: CanaryRun.h:56
Aws::Synthetics::Model::CanaryRun::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Synthetics::Model::CanaryRun::IdHasBeenSet
bool IdHasBeenSet() const
Definition: CanaryRun.h:51
Aws::Synthetics::Model::CanaryRun::TimelineHasBeenSet
bool TimelineHasBeenSet() const
Definition: CanaryRun.h:164
Aws::Synthetics::Model::CanaryRun::WithName
CanaryRun & WithName(const char *value)
Definition: CanaryRun.h:122
Aws::Synthetics::Model::CanaryRun::WithTimeline
CanaryRun & WithTimeline(CanaryRunTimeline &&value)
Definition: CanaryRun.h:184
Aws::Synthetics::Model::CanaryRun::GetArtifactS3Location
const Aws::String & GetArtifactS3Location() const
Definition: CanaryRun.h:191
Aws::Synthetics::Model::CanaryRun::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: CanaryRun.h:133
Aws::Synthetics::Model::CanaryRun::SetStatus
void SetStatus(const CanaryRunStatus &value)
Definition: CanaryRun.h:138
Aws::Synthetics::Model::CanaryRun::SetId
void SetId(const char *value)
Definition: CanaryRun.h:66
Aws::Synthetics::Model::CanaryRun::SetTimeline
void SetTimeline(CanaryRunTimeline &&value)
Definition: CanaryRun.h:174
Aws::Synthetics::Model::CanaryRun::WithId
CanaryRun & WithId(const char *value)
Definition: CanaryRun.h:81
Aws::Synthetics::Model::CanaryRun::WithArtifactS3Location
CanaryRun & WithArtifactS3Location(const Aws::String &value)
Definition: CanaryRun.h:221
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Synthetics::Model::CanaryRun::GetName
const Aws::String & GetName() const
Definition: CanaryRun.h:87
CanaryRunStatus.h
Aws::Synthetics::Model::CanaryRun::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CanaryRun.h:92
Aws::Synthetics::Model::CanaryRun::operator=
CanaryRun & operator=(Aws::Utils::Json::JsonView jsonValue)
Synthetics_EXPORTS.h
Aws::Synthetics::Model::CanaryRun::WithId
CanaryRun & WithId(Aws::String &&value)
Definition: CanaryRun.h:76
Aws::Synthetics::Model::CanaryRun::WithTimeline
CanaryRun & WithTimeline(const CanaryRunTimeline &value)
Definition: CanaryRun.h:179
Aws::Synthetics::Model::CanaryRun::WithArtifactS3Location
CanaryRun & WithArtifactS3Location(const char *value)
Definition: CanaryRun.h:233
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Synthetics::Model::CanaryRun::GetTimeline
const CanaryRunTimeline & GetTimeline() const
Definition: CanaryRun.h:159
Aws::Synthetics::Model::CanaryRun::SetName
void SetName(const char *value)
Definition: CanaryRun.h:107
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Synthetics::Model::CanaryRun::WithName
CanaryRun & WithName(const Aws::String &value)
Definition: CanaryRun.h:112
Aws::Synthetics::Model::CanaryRun::SetArtifactS3Location
void SetArtifactS3Location(const Aws::String &value)
Definition: CanaryRun.h:203
Aws::Synthetics::Model::CanaryRun::WithArtifactS3Location
CanaryRun & WithArtifactS3Location(Aws::String &&value)
Definition: CanaryRun.h:227
Aws::Synthetics::Model::CanaryRun::SetArtifactS3Location
void SetArtifactS3Location(const char *value)
Definition: CanaryRun.h:215
Aws::Synthetics::Model::CanaryRun::WithStatus
CanaryRun & WithStatus(CanaryRunStatus &&value)
Definition: CanaryRun.h:153
Aws::Synthetics::Model::CanaryRun::SetArtifactS3Location
void SetArtifactS3Location(Aws::String &&value)
Definition: CanaryRun.h:209
Aws::Synthetics::Model::CanaryRun::SetName
void SetName(Aws::String &&value)
Definition: CanaryRun.h:102