AWS SDK for C++

AWS SDK for C++ Version 1.11.780

Loading...
Searching...
No Matches
CreateOpsItemRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ssm/SSMRequest.h>
12#include <aws/ssm/SSM_EXPORTS.h>
13#include <aws/ssm/model/OpsItemDataValue.h>
14#include <aws/ssm/model/OpsItemNotification.h>
15#include <aws/ssm/model/RelatedOpsItem.h>
16#include <aws/ssm/model/Tag.h>
17
18#include <utility>
19
20namespace Aws {
21namespace SSM {
22namespace Model {
23
27 public:
28 AWS_SSM_API CreateOpsItemRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateOpsItem"; }
35
36 AWS_SSM_API Aws::String SerializePayload() const override;
37
39
41
46 inline const Aws::String& GetDescription() const { return m_description; }
47 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
48 template <typename DescriptionT = Aws::String>
49 void SetDescription(DescriptionT&& value) {
50 m_descriptionHasBeenSet = true;
51 m_description = std::forward<DescriptionT>(value);
52 }
53 template <typename DescriptionT = Aws::String>
54 CreateOpsItemRequest& WithDescription(DescriptionT&& value) {
55 SetDescription(std::forward<DescriptionT>(value));
56 return *this;
57 }
59
61
76 inline const Aws::String& GetOpsItemType() const { return m_opsItemType; }
77 inline bool OpsItemTypeHasBeenSet() const { return m_opsItemTypeHasBeenSet; }
78 template <typename OpsItemTypeT = Aws::String>
79 void SetOpsItemType(OpsItemTypeT&& value) {
80 m_opsItemTypeHasBeenSet = true;
81 m_opsItemType = std::forward<OpsItemTypeT>(value);
82 }
83 template <typename OpsItemTypeT = Aws::String>
84 CreateOpsItemRequest& WithOpsItemType(OpsItemTypeT&& value) {
85 SetOpsItemType(std::forward<OpsItemTypeT>(value));
86 return *this;
87 }
89
91
114 inline const Aws::Map<Aws::String, OpsItemDataValue>& GetOperationalData() const { return m_operationalData; }
115 inline bool OperationalDataHasBeenSet() const { return m_operationalDataHasBeenSet; }
116 template <typename OperationalDataT = Aws::Map<Aws::String, OpsItemDataValue>>
117 void SetOperationalData(OperationalDataT&& value) {
118 m_operationalDataHasBeenSet = true;
119 m_operationalData = std::forward<OperationalDataT>(value);
120 }
121 template <typename OperationalDataT = Aws::Map<Aws::String, OpsItemDataValue>>
122 CreateOpsItemRequest& WithOperationalData(OperationalDataT&& value) {
123 SetOperationalData(std::forward<OperationalDataT>(value));
124 return *this;
125 }
126 template <typename OperationalDataKeyT = Aws::String, typename OperationalDataValueT = OpsItemDataValue>
127 CreateOpsItemRequest& AddOperationalData(OperationalDataKeyT&& key, OperationalDataValueT&& value) {
128 m_operationalDataHasBeenSet = true;
129 m_operationalData.emplace(std::forward<OperationalDataKeyT>(key), std::forward<OperationalDataValueT>(value));
130 return *this;
131 }
133
135
139 inline const Aws::Vector<OpsItemNotification>& GetNotifications() const { return m_notifications; }
140 inline bool NotificationsHasBeenSet() const { return m_notificationsHasBeenSet; }
141 template <typename NotificationsT = Aws::Vector<OpsItemNotification>>
142 void SetNotifications(NotificationsT&& value) {
143 m_notificationsHasBeenSet = true;
144 m_notifications = std::forward<NotificationsT>(value);
145 }
146 template <typename NotificationsT = Aws::Vector<OpsItemNotification>>
147 CreateOpsItemRequest& WithNotifications(NotificationsT&& value) {
148 SetNotifications(std::forward<NotificationsT>(value));
149 return *this;
150 }
151 template <typename NotificationsT = OpsItemNotification>
152 CreateOpsItemRequest& AddNotifications(NotificationsT&& value) {
153 m_notificationsHasBeenSet = true;
154 m_notifications.emplace_back(std::forward<NotificationsT>(value));
155 return *this;
156 }
158
160
164 inline int GetPriority() const { return m_priority; }
165 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
166 inline void SetPriority(int value) {
167 m_priorityHasBeenSet = true;
168 m_priority = value;
169 }
171 SetPriority(value);
172 return *this;
173 }
175
177
182 inline const Aws::Vector<RelatedOpsItem>& GetRelatedOpsItems() const { return m_relatedOpsItems; }
183 inline bool RelatedOpsItemsHasBeenSet() const { return m_relatedOpsItemsHasBeenSet; }
184 template <typename RelatedOpsItemsT = Aws::Vector<RelatedOpsItem>>
185 void SetRelatedOpsItems(RelatedOpsItemsT&& value) {
186 m_relatedOpsItemsHasBeenSet = true;
187 m_relatedOpsItems = std::forward<RelatedOpsItemsT>(value);
188 }
189 template <typename RelatedOpsItemsT = Aws::Vector<RelatedOpsItem>>
190 CreateOpsItemRequest& WithRelatedOpsItems(RelatedOpsItemsT&& value) {
191 SetRelatedOpsItems(std::forward<RelatedOpsItemsT>(value));
192 return *this;
193 }
194 template <typename RelatedOpsItemsT = RelatedOpsItem>
195 CreateOpsItemRequest& AddRelatedOpsItems(RelatedOpsItemsT&& value) {
196 m_relatedOpsItemsHasBeenSet = true;
197 m_relatedOpsItems.emplace_back(std::forward<RelatedOpsItemsT>(value));
198 return *this;
199 }
201
203
208 inline const Aws::String& GetSource() const { return m_source; }
209 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
210 template <typename SourceT = Aws::String>
211 void SetSource(SourceT&& value) {
212 m_sourceHasBeenSet = true;
213 m_source = std::forward<SourceT>(value);
214 }
215 template <typename SourceT = Aws::String>
217 SetSource(std::forward<SourceT>(value));
218 return *this;
219 }
221
223
227 inline const Aws::String& GetTitle() const { return m_title; }
228 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
229 template <typename TitleT = Aws::String>
230 void SetTitle(TitleT&& value) {
231 m_titleHasBeenSet = true;
232 m_title = std::forward<TitleT>(value);
233 }
234 template <typename TitleT = Aws::String>
236 SetTitle(std::forward<TitleT>(value));
237 return *this;
238 }
240
242
250 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
251 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
252 template <typename TagsT = Aws::Vector<Tag>>
253 void SetTags(TagsT&& value) {
254 m_tagsHasBeenSet = true;
255 m_tags = std::forward<TagsT>(value);
256 }
257 template <typename TagsT = Aws::Vector<Tag>>
259 SetTags(std::forward<TagsT>(value));
260 return *this;
261 }
262 template <typename TagsT = Tag>
264 m_tagsHasBeenSet = true;
265 m_tags.emplace_back(std::forward<TagsT>(value));
266 return *this;
267 }
269
271
274 inline const Aws::String& GetCategory() const { return m_category; }
275 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
276 template <typename CategoryT = Aws::String>
277 void SetCategory(CategoryT&& value) {
278 m_categoryHasBeenSet = true;
279 m_category = std::forward<CategoryT>(value);
280 }
281 template <typename CategoryT = Aws::String>
282 CreateOpsItemRequest& WithCategory(CategoryT&& value) {
283 SetCategory(std::forward<CategoryT>(value));
284 return *this;
285 }
287
289
292 inline const Aws::String& GetSeverity() const { return m_severity; }
293 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
294 template <typename SeverityT = Aws::String>
295 void SetSeverity(SeverityT&& value) {
296 m_severityHasBeenSet = true;
297 m_severity = std::forward<SeverityT>(value);
298 }
299 template <typename SeverityT = Aws::String>
300 CreateOpsItemRequest& WithSeverity(SeverityT&& value) {
301 SetSeverity(std::forward<SeverityT>(value));
302 return *this;
303 }
305
307
311 inline const Aws::Utils::DateTime& GetActualStartTime() const { return m_actualStartTime; }
312 inline bool ActualStartTimeHasBeenSet() const { return m_actualStartTimeHasBeenSet; }
313 template <typename ActualStartTimeT = Aws::Utils::DateTime>
314 void SetActualStartTime(ActualStartTimeT&& value) {
315 m_actualStartTimeHasBeenSet = true;
316 m_actualStartTime = std::forward<ActualStartTimeT>(value);
317 }
318 template <typename ActualStartTimeT = Aws::Utils::DateTime>
319 CreateOpsItemRequest& WithActualStartTime(ActualStartTimeT&& value) {
320 SetActualStartTime(std::forward<ActualStartTimeT>(value));
321 return *this;
322 }
324
326
330 inline const Aws::Utils::DateTime& GetActualEndTime() const { return m_actualEndTime; }
331 inline bool ActualEndTimeHasBeenSet() const { return m_actualEndTimeHasBeenSet; }
332 template <typename ActualEndTimeT = Aws::Utils::DateTime>
333 void SetActualEndTime(ActualEndTimeT&& value) {
334 m_actualEndTimeHasBeenSet = true;
335 m_actualEndTime = std::forward<ActualEndTimeT>(value);
336 }
337 template <typename ActualEndTimeT = Aws::Utils::DateTime>
338 CreateOpsItemRequest& WithActualEndTime(ActualEndTimeT&& value) {
339 SetActualEndTime(std::forward<ActualEndTimeT>(value));
340 return *this;
341 }
343
345
350 inline const Aws::Utils::DateTime& GetPlannedStartTime() const { return m_plannedStartTime; }
351 inline bool PlannedStartTimeHasBeenSet() const { return m_plannedStartTimeHasBeenSet; }
352 template <typename PlannedStartTimeT = Aws::Utils::DateTime>
353 void SetPlannedStartTime(PlannedStartTimeT&& value) {
354 m_plannedStartTimeHasBeenSet = true;
355 m_plannedStartTime = std::forward<PlannedStartTimeT>(value);
356 }
357 template <typename PlannedStartTimeT = Aws::Utils::DateTime>
358 CreateOpsItemRequest& WithPlannedStartTime(PlannedStartTimeT&& value) {
359 SetPlannedStartTime(std::forward<PlannedStartTimeT>(value));
360 return *this;
361 }
363
365
370 inline const Aws::Utils::DateTime& GetPlannedEndTime() const { return m_plannedEndTime; }
371 inline bool PlannedEndTimeHasBeenSet() const { return m_plannedEndTimeHasBeenSet; }
372 template <typename PlannedEndTimeT = Aws::Utils::DateTime>
373 void SetPlannedEndTime(PlannedEndTimeT&& value) {
374 m_plannedEndTimeHasBeenSet = true;
375 m_plannedEndTime = std::forward<PlannedEndTimeT>(value);
376 }
377 template <typename PlannedEndTimeT = Aws::Utils::DateTime>
378 CreateOpsItemRequest& WithPlannedEndTime(PlannedEndTimeT&& value) {
379 SetPlannedEndTime(std::forward<PlannedEndTimeT>(value));
380 return *this;
381 }
383
385
393 inline const Aws::String& GetAccountId() const { return m_accountId; }
394 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
395 template <typename AccountIdT = Aws::String>
396 void SetAccountId(AccountIdT&& value) {
397 m_accountIdHasBeenSet = true;
398 m_accountId = std::forward<AccountIdT>(value);
399 }
400 template <typename AccountIdT = Aws::String>
401 CreateOpsItemRequest& WithAccountId(AccountIdT&& value) {
402 SetAccountId(std::forward<AccountIdT>(value));
403 return *this;
404 }
406 private:
407 Aws::String m_description;
408
409 Aws::String m_opsItemType;
410
412
413 Aws::Vector<OpsItemNotification> m_notifications;
414
415 int m_priority{0};
416
417 Aws::Vector<RelatedOpsItem> m_relatedOpsItems;
418
419 Aws::String m_source;
420
421 Aws::String m_title;
422
423 Aws::Vector<Tag> m_tags;
424
425 Aws::String m_category;
426
427 Aws::String m_severity;
428
429 Aws::Utils::DateTime m_actualStartTime{};
430
431 Aws::Utils::DateTime m_actualEndTime{};
432
433 Aws::Utils::DateTime m_plannedStartTime{};
434
435 Aws::Utils::DateTime m_plannedEndTime{};
436
437 Aws::String m_accountId;
438 bool m_descriptionHasBeenSet = false;
439 bool m_opsItemTypeHasBeenSet = false;
440 bool m_operationalDataHasBeenSet = false;
441 bool m_notificationsHasBeenSet = false;
442 bool m_priorityHasBeenSet = false;
443 bool m_relatedOpsItemsHasBeenSet = false;
444 bool m_sourceHasBeenSet = false;
445 bool m_titleHasBeenSet = false;
446 bool m_tagsHasBeenSet = false;
447 bool m_categoryHasBeenSet = false;
448 bool m_severityHasBeenSet = false;
449 bool m_actualStartTimeHasBeenSet = false;
450 bool m_actualEndTimeHasBeenSet = false;
451 bool m_plannedStartTimeHasBeenSet = false;
452 bool m_plannedEndTimeHasBeenSet = false;
453 bool m_accountIdHasBeenSet = false;
454};
455
456} // namespace Model
457} // namespace SSM
458} // namespace Aws
CreateOpsItemRequest & WithActualStartTime(ActualStartTimeT &&value)
CreateOpsItemRequest & WithTags(TagsT &&value)
CreateOpsItemRequest & AddTags(TagsT &&value)
const Aws::Map< Aws::String, OpsItemDataValue > & GetOperationalData() const
void SetDescription(DescriptionT &&value)
CreateOpsItemRequest & WithOperationalData(OperationalDataT &&value)
AWS_SSM_API CreateOpsItemRequest()=default
CreateOpsItemRequest & AddOperationalData(OperationalDataKeyT &&key, OperationalDataValueT &&value)
const Aws::Vector< OpsItemNotification > & GetNotifications() const
void SetOpsItemType(OpsItemTypeT &&value)
CreateOpsItemRequest & WithSource(SourceT &&value)
const Aws::Vector< RelatedOpsItem > & GetRelatedOpsItems() const
const Aws::Utils::DateTime & GetPlannedStartTime() const
AWS_SSM_API Aws::String SerializePayload() const override
const Aws::Utils::DateTime & GetActualStartTime() const
const Aws::Utils::DateTime & GetActualEndTime() const
CreateOpsItemRequest & WithRelatedOpsItems(RelatedOpsItemsT &&value)
const Aws::String & GetOpsItemType() const
CreateOpsItemRequest & WithSeverity(SeverityT &&value)
CreateOpsItemRequest & WithOpsItemType(OpsItemTypeT &&value)
CreateOpsItemRequest & WithActualEndTime(ActualEndTimeT &&value)
CreateOpsItemRequest & WithPriority(int value)
CreateOpsItemRequest & WithPlannedStartTime(PlannedStartTimeT &&value)
const Aws::String & GetDescription() const
const Aws::Vector< Tag > & GetTags() const
void SetRelatedOpsItems(RelatedOpsItemsT &&value)
void SetActualStartTime(ActualStartTimeT &&value)
CreateOpsItemRequest & WithNotifications(NotificationsT &&value)
void SetOperationalData(OperationalDataT &&value)
void SetNotifications(NotificationsT &&value)
CreateOpsItemRequest & WithCategory(CategoryT &&value)
void SetPlannedStartTime(PlannedStartTimeT &&value)
virtual const char * GetServiceRequestName() const override
CreateOpsItemRequest & WithAccountId(AccountIdT &&value)
void SetActualEndTime(ActualEndTimeT &&value)
CreateOpsItemRequest & WithDescription(DescriptionT &&value)
void SetPlannedEndTime(PlannedEndTimeT &&value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateOpsItemRequest & AddNotifications(NotificationsT &&value)
CreateOpsItemRequest & AddRelatedOpsItems(RelatedOpsItemsT &&value)
CreateOpsItemRequest & WithPlannedEndTime(PlannedEndTimeT &&value)
const Aws::Utils::DateTime & GetPlannedEndTime() const
CreateOpsItemRequest & WithTitle(TitleT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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