AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateOpsItemRequest.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/SSMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/DateTime.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#include <utility>
18
19namespace Aws
20{
21namespace SSM
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_SSM_API CreateOpsItemRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateOpsItem"; }
38
39 AWS_SSM_API Aws::String SerializePayload() const override;
40
42
43
45
50 inline const Aws::String& GetDescription() const{ return m_description; }
51 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
52 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
53 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
54 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
55 inline CreateOpsItemRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
56 inline CreateOpsItemRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
57 inline CreateOpsItemRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
59
61
70 inline const Aws::String& GetOpsItemType() const{ return m_opsItemType; }
71 inline bool OpsItemTypeHasBeenSet() const { return m_opsItemTypeHasBeenSet; }
72 inline void SetOpsItemType(const Aws::String& value) { m_opsItemTypeHasBeenSet = true; m_opsItemType = value; }
73 inline void SetOpsItemType(Aws::String&& value) { m_opsItemTypeHasBeenSet = true; m_opsItemType = std::move(value); }
74 inline void SetOpsItemType(const char* value) { m_opsItemTypeHasBeenSet = true; m_opsItemType.assign(value); }
75 inline CreateOpsItemRequest& WithOpsItemType(const Aws::String& value) { SetOpsItemType(value); return *this;}
76 inline CreateOpsItemRequest& WithOpsItemType(Aws::String&& value) { SetOpsItemType(std::move(value)); return *this;}
77 inline CreateOpsItemRequest& WithOpsItemType(const char* value) { SetOpsItemType(value); return *this;}
79
81
104 inline const Aws::Map<Aws::String, OpsItemDataValue>& GetOperationalData() const{ return m_operationalData; }
105 inline bool OperationalDataHasBeenSet() const { return m_operationalDataHasBeenSet; }
106 inline void SetOperationalData(const Aws::Map<Aws::String, OpsItemDataValue>& value) { m_operationalDataHasBeenSet = true; m_operationalData = value; }
107 inline void SetOperationalData(Aws::Map<Aws::String, OpsItemDataValue>&& value) { m_operationalDataHasBeenSet = true; m_operationalData = std::move(value); }
110 inline CreateOpsItemRequest& AddOperationalData(const Aws::String& key, const OpsItemDataValue& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(key, value); return *this; }
111 inline CreateOpsItemRequest& AddOperationalData(Aws::String&& key, const OpsItemDataValue& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(std::move(key), value); return *this; }
112 inline CreateOpsItemRequest& AddOperationalData(const Aws::String& key, OpsItemDataValue&& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(key, std::move(value)); return *this; }
113 inline CreateOpsItemRequest& AddOperationalData(Aws::String&& key, OpsItemDataValue&& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(std::move(key), std::move(value)); return *this; }
114 inline CreateOpsItemRequest& AddOperationalData(const char* key, OpsItemDataValue&& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(key, std::move(value)); return *this; }
115 inline CreateOpsItemRequest& AddOperationalData(const char* key, const OpsItemDataValue& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(key, value); return *this; }
117
119
123 inline const Aws::Vector<OpsItemNotification>& GetNotifications() const{ return m_notifications; }
124 inline bool NotificationsHasBeenSet() const { return m_notificationsHasBeenSet; }
125 inline void SetNotifications(const Aws::Vector<OpsItemNotification>& value) { m_notificationsHasBeenSet = true; m_notifications = value; }
126 inline void SetNotifications(Aws::Vector<OpsItemNotification>&& value) { m_notificationsHasBeenSet = true; m_notifications = std::move(value); }
129 inline CreateOpsItemRequest& AddNotifications(const OpsItemNotification& value) { m_notificationsHasBeenSet = true; m_notifications.push_back(value); return *this; }
130 inline CreateOpsItemRequest& AddNotifications(OpsItemNotification&& value) { m_notificationsHasBeenSet = true; m_notifications.push_back(std::move(value)); return *this; }
132
134
138 inline int GetPriority() const{ return m_priority; }
139 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
140 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
141 inline CreateOpsItemRequest& WithPriority(int value) { SetPriority(value); return *this;}
143
145
150 inline const Aws::Vector<RelatedOpsItem>& GetRelatedOpsItems() const{ return m_relatedOpsItems; }
151 inline bool RelatedOpsItemsHasBeenSet() const { return m_relatedOpsItemsHasBeenSet; }
152 inline void SetRelatedOpsItems(const Aws::Vector<RelatedOpsItem>& value) { m_relatedOpsItemsHasBeenSet = true; m_relatedOpsItems = value; }
153 inline void SetRelatedOpsItems(Aws::Vector<RelatedOpsItem>&& value) { m_relatedOpsItemsHasBeenSet = true; m_relatedOpsItems = std::move(value); }
156 inline CreateOpsItemRequest& AddRelatedOpsItems(const RelatedOpsItem& value) { m_relatedOpsItemsHasBeenSet = true; m_relatedOpsItems.push_back(value); return *this; }
157 inline CreateOpsItemRequest& AddRelatedOpsItems(RelatedOpsItem&& value) { m_relatedOpsItemsHasBeenSet = true; m_relatedOpsItems.push_back(std::move(value)); return *this; }
159
161
166 inline const Aws::String& GetSource() const{ return m_source; }
167 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
168 inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
169 inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
170 inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
171 inline CreateOpsItemRequest& WithSource(const Aws::String& value) { SetSource(value); return *this;}
172 inline CreateOpsItemRequest& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
173 inline CreateOpsItemRequest& WithSource(const char* value) { SetSource(value); return *this;}
175
177
181 inline const Aws::String& GetTitle() const{ return m_title; }
182 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
183 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
184 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
185 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
186 inline CreateOpsItemRequest& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
187 inline CreateOpsItemRequest& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
188 inline CreateOpsItemRequest& WithTitle(const char* value) { SetTitle(value); return *this;}
190
192
200 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
201 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
202 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
203 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
204 inline CreateOpsItemRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
205 inline CreateOpsItemRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
206 inline CreateOpsItemRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
207 inline CreateOpsItemRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
209
211
214 inline const Aws::String& GetCategory() const{ return m_category; }
215 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
216 inline void SetCategory(const Aws::String& value) { m_categoryHasBeenSet = true; m_category = value; }
217 inline void SetCategory(Aws::String&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); }
218 inline void SetCategory(const char* value) { m_categoryHasBeenSet = true; m_category.assign(value); }
219 inline CreateOpsItemRequest& WithCategory(const Aws::String& value) { SetCategory(value); return *this;}
220 inline CreateOpsItemRequest& WithCategory(Aws::String&& value) { SetCategory(std::move(value)); return *this;}
221 inline CreateOpsItemRequest& WithCategory(const char* value) { SetCategory(value); return *this;}
223
225
228 inline const Aws::String& GetSeverity() const{ return m_severity; }
229 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
230 inline void SetSeverity(const Aws::String& value) { m_severityHasBeenSet = true; m_severity = value; }
231 inline void SetSeverity(Aws::String&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
232 inline void SetSeverity(const char* value) { m_severityHasBeenSet = true; m_severity.assign(value); }
233 inline CreateOpsItemRequest& WithSeverity(const Aws::String& value) { SetSeverity(value); return *this;}
234 inline CreateOpsItemRequest& WithSeverity(Aws::String&& value) { SetSeverity(std::move(value)); return *this;}
235 inline CreateOpsItemRequest& WithSeverity(const char* value) { SetSeverity(value); return *this;}
237
239
243 inline const Aws::Utils::DateTime& GetActualStartTime() const{ return m_actualStartTime; }
244 inline bool ActualStartTimeHasBeenSet() const { return m_actualStartTimeHasBeenSet; }
245 inline void SetActualStartTime(const Aws::Utils::DateTime& value) { m_actualStartTimeHasBeenSet = true; m_actualStartTime = value; }
246 inline void SetActualStartTime(Aws::Utils::DateTime&& value) { m_actualStartTimeHasBeenSet = true; m_actualStartTime = std::move(value); }
248 inline CreateOpsItemRequest& WithActualStartTime(Aws::Utils::DateTime&& value) { SetActualStartTime(std::move(value)); return *this;}
250
252
256 inline const Aws::Utils::DateTime& GetActualEndTime() const{ return m_actualEndTime; }
257 inline bool ActualEndTimeHasBeenSet() const { return m_actualEndTimeHasBeenSet; }
258 inline void SetActualEndTime(const Aws::Utils::DateTime& value) { m_actualEndTimeHasBeenSet = true; m_actualEndTime = value; }
259 inline void SetActualEndTime(Aws::Utils::DateTime&& value) { m_actualEndTimeHasBeenSet = true; m_actualEndTime = std::move(value); }
261 inline CreateOpsItemRequest& WithActualEndTime(Aws::Utils::DateTime&& value) { SetActualEndTime(std::move(value)); return *this;}
263
265
270 inline const Aws::Utils::DateTime& GetPlannedStartTime() const{ return m_plannedStartTime; }
271 inline bool PlannedStartTimeHasBeenSet() const { return m_plannedStartTimeHasBeenSet; }
272 inline void SetPlannedStartTime(const Aws::Utils::DateTime& value) { m_plannedStartTimeHasBeenSet = true; m_plannedStartTime = value; }
273 inline void SetPlannedStartTime(Aws::Utils::DateTime&& value) { m_plannedStartTimeHasBeenSet = true; m_plannedStartTime = std::move(value); }
275 inline CreateOpsItemRequest& WithPlannedStartTime(Aws::Utils::DateTime&& value) { SetPlannedStartTime(std::move(value)); return *this;}
277
279
284 inline const Aws::Utils::DateTime& GetPlannedEndTime() const{ return m_plannedEndTime; }
285 inline bool PlannedEndTimeHasBeenSet() const { return m_plannedEndTimeHasBeenSet; }
286 inline void SetPlannedEndTime(const Aws::Utils::DateTime& value) { m_plannedEndTimeHasBeenSet = true; m_plannedEndTime = value; }
287 inline void SetPlannedEndTime(Aws::Utils::DateTime&& value) { m_plannedEndTimeHasBeenSet = true; m_plannedEndTime = std::move(value); }
289 inline CreateOpsItemRequest& WithPlannedEndTime(Aws::Utils::DateTime&& value) { SetPlannedEndTime(std::move(value)); return *this;}
291
293
301 inline const Aws::String& GetAccountId() const{ return m_accountId; }
302 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
303 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
304 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
305 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
306 inline CreateOpsItemRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
307 inline CreateOpsItemRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
308 inline CreateOpsItemRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
310 private:
311
312 Aws::String m_description;
313 bool m_descriptionHasBeenSet = false;
314
315 Aws::String m_opsItemType;
316 bool m_opsItemTypeHasBeenSet = false;
317
319 bool m_operationalDataHasBeenSet = false;
320
321 Aws::Vector<OpsItemNotification> m_notifications;
322 bool m_notificationsHasBeenSet = false;
323
324 int m_priority;
325 bool m_priorityHasBeenSet = false;
326
327 Aws::Vector<RelatedOpsItem> m_relatedOpsItems;
328 bool m_relatedOpsItemsHasBeenSet = false;
329
330 Aws::String m_source;
331 bool m_sourceHasBeenSet = false;
332
333 Aws::String m_title;
334 bool m_titleHasBeenSet = false;
335
336 Aws::Vector<Tag> m_tags;
337 bool m_tagsHasBeenSet = false;
338
339 Aws::String m_category;
340 bool m_categoryHasBeenSet = false;
341
342 Aws::String m_severity;
343 bool m_severityHasBeenSet = false;
344
345 Aws::Utils::DateTime m_actualStartTime;
346 bool m_actualStartTimeHasBeenSet = false;
347
348 Aws::Utils::DateTime m_actualEndTime;
349 bool m_actualEndTimeHasBeenSet = false;
350
351 Aws::Utils::DateTime m_plannedStartTime;
352 bool m_plannedStartTimeHasBeenSet = false;
353
354 Aws::Utils::DateTime m_plannedEndTime;
355 bool m_plannedEndTimeHasBeenSet = false;
356
357 Aws::String m_accountId;
358 bool m_accountIdHasBeenSet = false;
359 };
360
361} // namespace Model
362} // namespace SSM
363} // namespace Aws
void SetSeverity(const Aws::String &value)
CreateOpsItemRequest & WithPlannedEndTime(Aws::Utils::DateTime &&value)
void SetSource(const Aws::String &value)
CreateOpsItemRequest & WithTags(Aws::Vector< Tag > &&value)
CreateOpsItemRequest & AddRelatedOpsItems(const RelatedOpsItem &value)
const Aws::Map< Aws::String, OpsItemDataValue > & GetOperationalData() const
CreateOpsItemRequest & WithSeverity(const char *value)
CreateOpsItemRequest & WithCategory(const char *value)
void SetAccountId(const Aws::String &value)
void SetTitle(const Aws::String &value)
CreateOpsItemRequest & AddOperationalData(const Aws::String &key, OpsItemDataValue &&value)
CreateOpsItemRequest & WithAccountId(const char *value)
CreateOpsItemRequest & WithDescription(Aws::String &&value)
CreateOpsItemRequest & AddTags(Tag &&value)
CreateOpsItemRequest & WithNotifications(Aws::Vector< OpsItemNotification > &&value)
void SetRelatedOpsItems(Aws::Vector< RelatedOpsItem > &&value)
const Aws::Vector< OpsItemNotification > & GetNotifications() const
CreateOpsItemRequest & WithAccountId(Aws::String &&value)
const Aws::Vector< RelatedOpsItem > & GetRelatedOpsItems() const
const Aws::Utils::DateTime & GetPlannedStartTime() const
CreateOpsItemRequest & WithSource(const char *value)
void SetRelatedOpsItems(const Aws::Vector< RelatedOpsItem > &value)
CreateOpsItemRequest & WithOpsItemType(const char *value)
CreateOpsItemRequest & WithTags(const Aws::Vector< Tag > &value)
CreateOpsItemRequest & WithSeverity(const Aws::String &value)
CreateOpsItemRequest & AddOperationalData(const Aws::String &key, const OpsItemDataValue &value)
void SetNotifications(Aws::Vector< OpsItemNotification > &&value)
CreateOpsItemRequest & WithOperationalData(Aws::Map< Aws::String, OpsItemDataValue > &&value)
CreateOpsItemRequest & WithSource(Aws::String &&value)
void SetNotifications(const Aws::Vector< OpsItemNotification > &value)
AWS_SSM_API Aws::String SerializePayload() const override
void SetDescription(const Aws::String &value)
void SetPlannedStartTime(Aws::Utils::DateTime &&value)
CreateOpsItemRequest & AddOperationalData(Aws::String &&key, const OpsItemDataValue &value)
const Aws::Utils::DateTime & GetActualStartTime() const
void SetPlannedEndTime(const Aws::Utils::DateTime &value)
void SetTags(const Aws::Vector< Tag > &value)
CreateOpsItemRequest & WithAccountId(const Aws::String &value)
CreateOpsItemRequest & WithActualEndTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetActualEndTime() const
void SetCategory(const Aws::String &value)
CreateOpsItemRequest & WithTitle(const char *value)
CreateOpsItemRequest & AddNotifications(const OpsItemNotification &value)
void SetPlannedStartTime(const Aws::Utils::DateTime &value)
CreateOpsItemRequest & WithTitle(Aws::String &&value)
CreateOpsItemRequest & AddRelatedOpsItems(RelatedOpsItem &&value)
CreateOpsItemRequest & WithOperationalData(const Aws::Map< Aws::String, OpsItemDataValue > &value)
void SetTags(Aws::Vector< Tag > &&value)
const Aws::String & GetOpsItemType() const
void SetOperationalData(Aws::Map< Aws::String, OpsItemDataValue > &&value)
CreateOpsItemRequest & WithActualEndTime(Aws::Utils::DateTime &&value)
CreateOpsItemRequest & WithCategory(Aws::String &&value)
CreateOpsItemRequest & WithPriority(int value)
CreateOpsItemRequest & AddNotifications(OpsItemNotification &&value)
const Aws::String & GetDescription() const
const Aws::Vector< Tag > & GetTags() const
CreateOpsItemRequest & WithActualStartTime(const Aws::Utils::DateTime &value)
void SetActualStartTime(const Aws::Utils::DateTime &value)
CreateOpsItemRequest & WithPlannedStartTime(Aws::Utils::DateTime &&value)
void SetPlannedEndTime(Aws::Utils::DateTime &&value)
CreateOpsItemRequest & AddOperationalData(Aws::String &&key, OpsItemDataValue &&value)
void SetActualEndTime(const Aws::Utils::DateTime &value)
void SetOperationalData(const Aws::Map< Aws::String, OpsItemDataValue > &value)
CreateOpsItemRequest & WithCategory(const Aws::String &value)
CreateOpsItemRequest & WithOpsItemType(const Aws::String &value)
CreateOpsItemRequest & WithSource(const Aws::String &value)
CreateOpsItemRequest & WithTitle(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateOpsItemRequest & WithActualStartTime(Aws::Utils::DateTime &&value)
CreateOpsItemRequest & WithPlannedEndTime(const Aws::Utils::DateTime &value)
CreateOpsItemRequest & WithDescription(const Aws::String &value)
CreateOpsItemRequest & WithNotifications(const Aws::Vector< OpsItemNotification > &value)
CreateOpsItemRequest & WithOpsItemType(Aws::String &&value)
CreateOpsItemRequest & WithRelatedOpsItems(const Aws::Vector< RelatedOpsItem > &value)
CreateOpsItemRequest & WithRelatedOpsItems(Aws::Vector< RelatedOpsItem > &&value)
CreateOpsItemRequest & WithSeverity(Aws::String &&value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateOpsItemRequest & WithPlannedStartTime(const Aws::Utils::DateTime &value)
void SetActualEndTime(Aws::Utils::DateTime &&value)
void SetActualStartTime(Aws::Utils::DateTime &&value)
CreateOpsItemRequest & AddTags(const Tag &value)
CreateOpsItemRequest & AddOperationalData(const char *key, const OpsItemDataValue &value)
CreateOpsItemRequest & WithDescription(const char *value)
const Aws::Utils::DateTime & GetPlannedEndTime() const
void SetOpsItemType(const Aws::String &value)
CreateOpsItemRequest & AddOperationalData(const char *key, OpsItemDataValue &&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