AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Launch.h
1
6#pragma once
7#include <aws/evidently/CloudWatchEvidently_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/evidently/model/LaunchExecution.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/evidently/model/ScheduledSplitsLaunchDefinition.h>
13#include <aws/evidently/model/LaunchStatus.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/evidently/model/LaunchType.h>
16#include <aws/evidently/model/LaunchGroup.h>
17#include <aws/evidently/model/MetricMonitor.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace CloudWatchEvidently
31{
32namespace Model
33{
34
41 class Launch
42 {
43 public:
44 AWS_CLOUDWATCHEVIDENTLY_API Launch() = default;
45 AWS_CLOUDWATCHEVIDENTLY_API Launch(Aws::Utils::Json::JsonView jsonValue);
46 AWS_CLOUDWATCHEVIDENTLY_API Launch& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
54 inline const Aws::String& GetArn() const { return m_arn; }
55 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
56 template<typename ArnT = Aws::String>
57 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
58 template<typename ArnT = Aws::String>
59 Launch& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
61
63
66 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
67 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
68 template<typename CreatedTimeT = Aws::Utils::DateTime>
69 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
70 template<typename CreatedTimeT = Aws::Utils::DateTime>
71 Launch& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
73
75
78 inline const Aws::String& GetDescription() const { return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 template<typename DescriptionT = Aws::String>
81 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
82 template<typename DescriptionT = Aws::String>
83 Launch& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
85
87
91 inline const LaunchExecution& GetExecution() const { return m_execution; }
92 inline bool ExecutionHasBeenSet() const { return m_executionHasBeenSet; }
93 template<typename ExecutionT = LaunchExecution>
94 void SetExecution(ExecutionT&& value) { m_executionHasBeenSet = true; m_execution = std::forward<ExecutionT>(value); }
95 template<typename ExecutionT = LaunchExecution>
96 Launch& WithExecution(ExecutionT&& value) { SetExecution(std::forward<ExecutionT>(value)); return *this;}
98
100
104 inline const Aws::Vector<LaunchGroup>& GetGroups() const { return m_groups; }
105 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
106 template<typename GroupsT = Aws::Vector<LaunchGroup>>
107 void SetGroups(GroupsT&& value) { m_groupsHasBeenSet = true; m_groups = std::forward<GroupsT>(value); }
108 template<typename GroupsT = Aws::Vector<LaunchGroup>>
109 Launch& WithGroups(GroupsT&& value) { SetGroups(std::forward<GroupsT>(value)); return *this;}
110 template<typename GroupsT = LaunchGroup>
111 Launch& AddGroups(GroupsT&& value) { m_groupsHasBeenSet = true; m_groups.emplace_back(std::forward<GroupsT>(value)); return *this; }
113
115
118 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
119 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
120 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
121 void SetLastUpdatedTime(LastUpdatedTimeT&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value); }
122 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
123 Launch& WithLastUpdatedTime(LastUpdatedTimeT&& value) { SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value)); return *this;}
125
127
131 inline const Aws::Vector<MetricMonitor>& GetMetricMonitors() const { return m_metricMonitors; }
132 inline bool MetricMonitorsHasBeenSet() const { return m_metricMonitorsHasBeenSet; }
133 template<typename MetricMonitorsT = Aws::Vector<MetricMonitor>>
134 void SetMetricMonitors(MetricMonitorsT&& value) { m_metricMonitorsHasBeenSet = true; m_metricMonitors = std::forward<MetricMonitorsT>(value); }
135 template<typename MetricMonitorsT = Aws::Vector<MetricMonitor>>
136 Launch& WithMetricMonitors(MetricMonitorsT&& value) { SetMetricMonitors(std::forward<MetricMonitorsT>(value)); return *this;}
137 template<typename MetricMonitorsT = MetricMonitor>
138 Launch& AddMetricMonitors(MetricMonitorsT&& value) { m_metricMonitorsHasBeenSet = true; m_metricMonitors.emplace_back(std::forward<MetricMonitorsT>(value)); return *this; }
140
142
145 inline const Aws::String& GetName() const { return m_name; }
146 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
147 template<typename NameT = Aws::String>
148 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
149 template<typename NameT = Aws::String>
150 Launch& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
152
154
157 inline const Aws::String& GetProject() const { return m_project; }
158 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
159 template<typename ProjectT = Aws::String>
160 void SetProject(ProjectT&& value) { m_projectHasBeenSet = true; m_project = std::forward<ProjectT>(value); }
161 template<typename ProjectT = Aws::String>
162 Launch& WithProject(ProjectT&& value) { SetProject(std::forward<ProjectT>(value)); return *this;}
164
166
172 inline const Aws::String& GetRandomizationSalt() const { return m_randomizationSalt; }
173 inline bool RandomizationSaltHasBeenSet() const { return m_randomizationSaltHasBeenSet; }
174 template<typename RandomizationSaltT = Aws::String>
175 void SetRandomizationSalt(RandomizationSaltT&& value) { m_randomizationSaltHasBeenSet = true; m_randomizationSalt = std::forward<RandomizationSaltT>(value); }
176 template<typename RandomizationSaltT = Aws::String>
177 Launch& WithRandomizationSalt(RandomizationSaltT&& value) { SetRandomizationSalt(std::forward<RandomizationSaltT>(value)); return *this;}
179
181
185 inline const ScheduledSplitsLaunchDefinition& GetScheduledSplitsDefinition() const { return m_scheduledSplitsDefinition; }
186 inline bool ScheduledSplitsDefinitionHasBeenSet() const { return m_scheduledSplitsDefinitionHasBeenSet; }
187 template<typename ScheduledSplitsDefinitionT = ScheduledSplitsLaunchDefinition>
188 void SetScheduledSplitsDefinition(ScheduledSplitsDefinitionT&& value) { m_scheduledSplitsDefinitionHasBeenSet = true; m_scheduledSplitsDefinition = std::forward<ScheduledSplitsDefinitionT>(value); }
189 template<typename ScheduledSplitsDefinitionT = ScheduledSplitsLaunchDefinition>
190 Launch& WithScheduledSplitsDefinition(ScheduledSplitsDefinitionT&& value) { SetScheduledSplitsDefinition(std::forward<ScheduledSplitsDefinitionT>(value)); return *this;}
192
194
197 inline LaunchStatus GetStatus() const { return m_status; }
198 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
199 inline void SetStatus(LaunchStatus value) { m_statusHasBeenSet = true; m_status = value; }
200 inline Launch& WithStatus(LaunchStatus value) { SetStatus(value); return *this;}
202
204
208 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
209 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
210 template<typename StatusReasonT = Aws::String>
211 void SetStatusReason(StatusReasonT&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::forward<StatusReasonT>(value); }
212 template<typename StatusReasonT = Aws::String>
213 Launch& WithStatusReason(StatusReasonT&& value) { SetStatusReason(std::forward<StatusReasonT>(value)); return *this;}
215
217
220 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
221 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
222 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
223 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
224 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
225 Launch& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
226 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
227 Launch& AddTags(TagsKeyT&& key, TagsValueT&& value) {
228 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
229 }
231
233
236 inline LaunchType GetType() const { return m_type; }
237 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
238 inline void SetType(LaunchType value) { m_typeHasBeenSet = true; m_type = value; }
239 inline Launch& WithType(LaunchType value) { SetType(value); return *this;}
241 private:
242
243 Aws::String m_arn;
244 bool m_arnHasBeenSet = false;
245
246 Aws::Utils::DateTime m_createdTime{};
247 bool m_createdTimeHasBeenSet = false;
248
249 Aws::String m_description;
250 bool m_descriptionHasBeenSet = false;
251
252 LaunchExecution m_execution;
253 bool m_executionHasBeenSet = false;
254
256 bool m_groupsHasBeenSet = false;
257
258 Aws::Utils::DateTime m_lastUpdatedTime{};
259 bool m_lastUpdatedTimeHasBeenSet = false;
260
261 Aws::Vector<MetricMonitor> m_metricMonitors;
262 bool m_metricMonitorsHasBeenSet = false;
263
264 Aws::String m_name;
265 bool m_nameHasBeenSet = false;
266
267 Aws::String m_project;
268 bool m_projectHasBeenSet = false;
269
270 Aws::String m_randomizationSalt;
271 bool m_randomizationSaltHasBeenSet = false;
272
273 ScheduledSplitsLaunchDefinition m_scheduledSplitsDefinition;
274 bool m_scheduledSplitsDefinitionHasBeenSet = false;
275
277 bool m_statusHasBeenSet = false;
278
279 Aws::String m_statusReason;
280 bool m_statusReasonHasBeenSet = false;
281
283 bool m_tagsHasBeenSet = false;
284
286 bool m_typeHasBeenSet = false;
287 };
288
289} // namespace Model
290} // namespace CloudWatchEvidently
291} // namespace Aws
AWS_CLOUDWATCHEVIDENTLY_API Launch(Aws::Utils::Json::JsonView jsonValue)
Launch & WithArn(ArnT &&value)
Definition Launch.h:59
Launch & WithCreatedTime(CreatedTimeT &&value)
Definition Launch.h:71
void SetDescription(DescriptionT &&value)
Definition Launch.h:81
Launch & AddMetricMonitors(MetricMonitorsT &&value)
Definition Launch.h:138
Launch & AddGroups(GroupsT &&value)
Definition Launch.h:111
void SetExecution(ExecutionT &&value)
Definition Launch.h:94
const LaunchExecution & GetExecution() const
Definition Launch.h:91
const Aws::Utils::DateTime & GetLastUpdatedTime() const
Definition Launch.h:118
const Aws::Vector< MetricMonitor > & GetMetricMonitors() const
Definition Launch.h:131
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Launch.h:220
void SetStatusReason(StatusReasonT &&value)
Definition Launch.h:211
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
Definition Launch.h:121
Launch & WithGroups(GroupsT &&value)
Definition Launch.h:109
void SetScheduledSplitsDefinition(ScheduledSplitsDefinitionT &&value)
Definition Launch.h:188
Launch & WithLastUpdatedTime(LastUpdatedTimeT &&value)
Definition Launch.h:123
const Aws::String & GetRandomizationSalt() const
Definition Launch.h:172
Launch & WithMetricMonitors(MetricMonitorsT &&value)
Definition Launch.h:136
const Aws::String & GetDescription() const
Definition Launch.h:78
const Aws::String & GetArn() const
Definition Launch.h:54
const Aws::String & GetStatusReason() const
Definition Launch.h:208
Launch & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Launch.h:227
const ScheduledSplitsLaunchDefinition & GetScheduledSplitsDefinition() const
Definition Launch.h:185
void SetMetricMonitors(MetricMonitorsT &&value)
Definition Launch.h:134
const Aws::String & GetName() const
Definition Launch.h:145
bool ScheduledSplitsDefinitionHasBeenSet() const
Definition Launch.h:186
AWS_CLOUDWATCHEVIDENTLY_API Launch()=default
void SetRandomizationSalt(RandomizationSaltT &&value)
Definition Launch.h:175
Launch & WithStatus(LaunchStatus value)
Definition Launch.h:200
Launch & WithProject(ProjectT &&value)
Definition Launch.h:162
AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(LaunchStatus value)
Definition Launch.h:199
const Aws::Vector< LaunchGroup > & GetGroups() const
Definition Launch.h:104
Launch & WithTags(TagsT &&value)
Definition Launch.h:225
Launch & WithExecution(ExecutionT &&value)
Definition Launch.h:96
Launch & WithDescription(DescriptionT &&value)
Definition Launch.h:83
void SetCreatedTime(CreatedTimeT &&value)
Definition Launch.h:69
void SetType(LaunchType value)
Definition Launch.h:238
Launch & WithRandomizationSalt(RandomizationSaltT &&value)
Definition Launch.h:177
void SetProject(ProjectT &&value)
Definition Launch.h:160
Launch & WithScheduledSplitsDefinition(ScheduledSplitsDefinitionT &&value)
Definition Launch.h:190
const Aws::String & GetProject() const
Definition Launch.h:157
Launch & WithType(LaunchType value)
Definition Launch.h:239
void SetGroups(GroupsT &&value)
Definition Launch.h:107
const Aws::Utils::DateTime & GetCreatedTime() const
Definition Launch.h:66
AWS_CLOUDWATCHEVIDENTLY_API Launch & operator=(Aws::Utils::Json::JsonView jsonValue)
Launch & WithStatusReason(StatusReasonT &&value)
Definition Launch.h:213
Launch & WithName(NameT &&value)
Definition Launch.h:150
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue