AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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 <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Synthetics
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_SYNTHETICS_API CanaryRun() = default;
39 AWS_SYNTHETICS_API CanaryRun(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SYNTHETICS_API CanaryRun& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetId() const { return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 template<typename IdT = Aws::String>
51 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
52 template<typename IdT = Aws::String>
53 CanaryRun& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
55
57
60 inline const Aws::String& GetScheduledRunId() const { return m_scheduledRunId; }
61 inline bool ScheduledRunIdHasBeenSet() const { return m_scheduledRunIdHasBeenSet; }
62 template<typename ScheduledRunIdT = Aws::String>
63 void SetScheduledRunId(ScheduledRunIdT&& value) { m_scheduledRunIdHasBeenSet = true; m_scheduledRunId = std::forward<ScheduledRunIdT>(value); }
64 template<typename ScheduledRunIdT = Aws::String>
65 CanaryRun& WithScheduledRunId(ScheduledRunIdT&& value) { SetScheduledRunId(std::forward<ScheduledRunIdT>(value)); return *this;}
67
69
72 inline int GetRetryAttempt() const { return m_retryAttempt; }
73 inline bool RetryAttemptHasBeenSet() const { return m_retryAttemptHasBeenSet; }
74 inline void SetRetryAttempt(int value) { m_retryAttemptHasBeenSet = true; m_retryAttempt = value; }
75 inline CanaryRun& WithRetryAttempt(int value) { SetRetryAttempt(value); return *this;}
77
79
82 inline const Aws::String& GetName() const { return m_name; }
83 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
84 template<typename NameT = Aws::String>
85 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
86 template<typename NameT = Aws::String>
87 CanaryRun& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
89
91
94 inline const CanaryRunStatus& GetStatus() const { return m_status; }
95 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
96 template<typename StatusT = CanaryRunStatus>
97 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
98 template<typename StatusT = CanaryRunStatus>
99 CanaryRun& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
101
103
106 inline const CanaryRunTimeline& GetTimeline() const { return m_timeline; }
107 inline bool TimelineHasBeenSet() const { return m_timelineHasBeenSet; }
108 template<typename TimelineT = CanaryRunTimeline>
109 void SetTimeline(TimelineT&& value) { m_timelineHasBeenSet = true; m_timeline = std::forward<TimelineT>(value); }
110 template<typename TimelineT = CanaryRunTimeline>
111 CanaryRun& WithTimeline(TimelineT&& value) { SetTimeline(std::forward<TimelineT>(value)); return *this;}
113
115
119 inline const Aws::String& GetArtifactS3Location() const { return m_artifactS3Location; }
120 inline bool ArtifactS3LocationHasBeenSet() const { return m_artifactS3LocationHasBeenSet; }
121 template<typename ArtifactS3LocationT = Aws::String>
122 void SetArtifactS3Location(ArtifactS3LocationT&& value) { m_artifactS3LocationHasBeenSet = true; m_artifactS3Location = std::forward<ArtifactS3LocationT>(value); }
123 template<typename ArtifactS3LocationT = Aws::String>
124 CanaryRun& WithArtifactS3Location(ArtifactS3LocationT&& value) { SetArtifactS3Location(std::forward<ArtifactS3LocationT>(value)); return *this;}
126
128
131 inline const CanaryDryRunConfigOutput& GetDryRunConfig() const { return m_dryRunConfig; }
132 inline bool DryRunConfigHasBeenSet() const { return m_dryRunConfigHasBeenSet; }
133 template<typename DryRunConfigT = CanaryDryRunConfigOutput>
134 void SetDryRunConfig(DryRunConfigT&& value) { m_dryRunConfigHasBeenSet = true; m_dryRunConfig = std::forward<DryRunConfigT>(value); }
135 template<typename DryRunConfigT = CanaryDryRunConfigOutput>
136 CanaryRun& WithDryRunConfig(DryRunConfigT&& value) { SetDryRunConfig(std::forward<DryRunConfigT>(value)); return *this;}
138 private:
139
140 Aws::String m_id;
141 bool m_idHasBeenSet = false;
142
143 Aws::String m_scheduledRunId;
144 bool m_scheduledRunIdHasBeenSet = false;
145
146 int m_retryAttempt{0};
147 bool m_retryAttemptHasBeenSet = false;
148
149 Aws::String m_name;
150 bool m_nameHasBeenSet = false;
151
152 CanaryRunStatus m_status;
153 bool m_statusHasBeenSet = false;
154
155 CanaryRunTimeline m_timeline;
156 bool m_timelineHasBeenSet = false;
157
158 Aws::String m_artifactS3Location;
159 bool m_artifactS3LocationHasBeenSet = false;
160
161 CanaryDryRunConfigOutput m_dryRunConfig;
162 bool m_dryRunConfigHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace Synthetics
167} // namespace Aws
bool ArtifactS3LocationHasBeenSet() const
Definition CanaryRun.h:120
AWS_SYNTHETICS_API CanaryRun()=default
AWS_SYNTHETICS_API CanaryRun & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
Definition CanaryRun.h:82
CanaryRun & WithId(IdT &&value)
Definition CanaryRun.h:53
void SetName(NameT &&value)
Definition CanaryRun.h:85
CanaryRun & WithArtifactS3Location(ArtifactS3LocationT &&value)
Definition CanaryRun.h:124
const CanaryRunTimeline & GetTimeline() const
Definition CanaryRun.h:106
const Aws::String & GetArtifactS3Location() const
Definition CanaryRun.h:119
CanaryRun & WithName(NameT &&value)
Definition CanaryRun.h:87
void SetArtifactS3Location(ArtifactS3LocationT &&value)
Definition CanaryRun.h:122
const CanaryDryRunConfigOutput & GetDryRunConfig() const
Definition CanaryRun.h:131
CanaryRun & WithStatus(StatusT &&value)
Definition CanaryRun.h:99
CanaryRun & WithTimeline(TimelineT &&value)
Definition CanaryRun.h:111
const Aws::String & GetScheduledRunId() const
Definition CanaryRun.h:60
CanaryRun & WithScheduledRunId(ScheduledRunIdT &&value)
Definition CanaryRun.h:65
CanaryRun & WithDryRunConfig(DryRunConfigT &&value)
Definition CanaryRun.h:136
CanaryRun & WithRetryAttempt(int value)
Definition CanaryRun.h:75
const CanaryRunStatus & GetStatus() const
Definition CanaryRun.h:94
void SetScheduledRunId(ScheduledRunIdT &&value)
Definition CanaryRun.h:63
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:134
void SetTimeline(TimelineT &&value)
Definition CanaryRun.h:109
const Aws::String & GetId() const
Definition CanaryRun.h:48
void SetStatus(StatusT &&value)
Definition CanaryRun.h:97
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue