AWS SDK for C++

AWS SDK for C++ Version 1.11.551

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
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() = default;
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 template<typename DescriptionT = Aws::String>
53 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
54 template<typename DescriptionT = Aws::String>
55 CreateOpsItemRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
57
59
68 inline const Aws::String& GetOpsItemType() const { return m_opsItemType; }
69 inline bool OpsItemTypeHasBeenSet() const { return m_opsItemTypeHasBeenSet; }
70 template<typename OpsItemTypeT = Aws::String>
71 void SetOpsItemType(OpsItemTypeT&& value) { m_opsItemTypeHasBeenSet = true; m_opsItemType = std::forward<OpsItemTypeT>(value); }
72 template<typename OpsItemTypeT = Aws::String>
73 CreateOpsItemRequest& WithOpsItemType(OpsItemTypeT&& value) { SetOpsItemType(std::forward<OpsItemTypeT>(value)); return *this;}
75
77
100 inline const Aws::Map<Aws::String, OpsItemDataValue>& GetOperationalData() const { return m_operationalData; }
101 inline bool OperationalDataHasBeenSet() const { return m_operationalDataHasBeenSet; }
102 template<typename OperationalDataT = Aws::Map<Aws::String, OpsItemDataValue>>
103 void SetOperationalData(OperationalDataT&& value) { m_operationalDataHasBeenSet = true; m_operationalData = std::forward<OperationalDataT>(value); }
104 template<typename OperationalDataT = Aws::Map<Aws::String, OpsItemDataValue>>
105 CreateOpsItemRequest& WithOperationalData(OperationalDataT&& value) { SetOperationalData(std::forward<OperationalDataT>(value)); return *this;}
106 template<typename OperationalDataKeyT = Aws::String, typename OperationalDataValueT = OpsItemDataValue>
107 CreateOpsItemRequest& AddOperationalData(OperationalDataKeyT&& key, OperationalDataValueT&& value) {
108 m_operationalDataHasBeenSet = true; m_operationalData.emplace(std::forward<OperationalDataKeyT>(key), std::forward<OperationalDataValueT>(value)); return *this;
109 }
111
113
117 inline const Aws::Vector<OpsItemNotification>& GetNotifications() const { return m_notifications; }
118 inline bool NotificationsHasBeenSet() const { return m_notificationsHasBeenSet; }
119 template<typename NotificationsT = Aws::Vector<OpsItemNotification>>
120 void SetNotifications(NotificationsT&& value) { m_notificationsHasBeenSet = true; m_notifications = std::forward<NotificationsT>(value); }
121 template<typename NotificationsT = Aws::Vector<OpsItemNotification>>
122 CreateOpsItemRequest& WithNotifications(NotificationsT&& value) { SetNotifications(std::forward<NotificationsT>(value)); return *this;}
123 template<typename NotificationsT = OpsItemNotification>
124 CreateOpsItemRequest& AddNotifications(NotificationsT&& value) { m_notificationsHasBeenSet = true; m_notifications.emplace_back(std::forward<NotificationsT>(value)); return *this; }
126
128
132 inline int GetPriority() const { return m_priority; }
133 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
134 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
135 inline CreateOpsItemRequest& WithPriority(int value) { SetPriority(value); return *this;}
137
139
144 inline const Aws::Vector<RelatedOpsItem>& GetRelatedOpsItems() const { return m_relatedOpsItems; }
145 inline bool RelatedOpsItemsHasBeenSet() const { return m_relatedOpsItemsHasBeenSet; }
146 template<typename RelatedOpsItemsT = Aws::Vector<RelatedOpsItem>>
147 void SetRelatedOpsItems(RelatedOpsItemsT&& value) { m_relatedOpsItemsHasBeenSet = true; m_relatedOpsItems = std::forward<RelatedOpsItemsT>(value); }
148 template<typename RelatedOpsItemsT = Aws::Vector<RelatedOpsItem>>
149 CreateOpsItemRequest& WithRelatedOpsItems(RelatedOpsItemsT&& value) { SetRelatedOpsItems(std::forward<RelatedOpsItemsT>(value)); return *this;}
150 template<typename RelatedOpsItemsT = RelatedOpsItem>
151 CreateOpsItemRequest& AddRelatedOpsItems(RelatedOpsItemsT&& value) { m_relatedOpsItemsHasBeenSet = true; m_relatedOpsItems.emplace_back(std::forward<RelatedOpsItemsT>(value)); return *this; }
153
155
160 inline const Aws::String& GetSource() const { return m_source; }
161 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
162 template<typename SourceT = Aws::String>
163 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
164 template<typename SourceT = Aws::String>
165 CreateOpsItemRequest& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
167
169
173 inline const Aws::String& GetTitle() const { return m_title; }
174 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
175 template<typename TitleT = Aws::String>
176 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
177 template<typename TitleT = Aws::String>
178 CreateOpsItemRequest& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
180
182
190 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
191 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
192 template<typename TagsT = Aws::Vector<Tag>>
193 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
194 template<typename TagsT = Aws::Vector<Tag>>
195 CreateOpsItemRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
196 template<typename TagsT = Tag>
197 CreateOpsItemRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
199
201
204 inline const Aws::String& GetCategory() const { return m_category; }
205 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
206 template<typename CategoryT = Aws::String>
207 void SetCategory(CategoryT&& value) { m_categoryHasBeenSet = true; m_category = std::forward<CategoryT>(value); }
208 template<typename CategoryT = Aws::String>
209 CreateOpsItemRequest& WithCategory(CategoryT&& value) { SetCategory(std::forward<CategoryT>(value)); return *this;}
211
213
216 inline const Aws::String& GetSeverity() const { return m_severity; }
217 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
218 template<typename SeverityT = Aws::String>
219 void SetSeverity(SeverityT&& value) { m_severityHasBeenSet = true; m_severity = std::forward<SeverityT>(value); }
220 template<typename SeverityT = Aws::String>
221 CreateOpsItemRequest& WithSeverity(SeverityT&& value) { SetSeverity(std::forward<SeverityT>(value)); return *this;}
223
225
229 inline const Aws::Utils::DateTime& GetActualStartTime() const { return m_actualStartTime; }
230 inline bool ActualStartTimeHasBeenSet() const { return m_actualStartTimeHasBeenSet; }
231 template<typename ActualStartTimeT = Aws::Utils::DateTime>
232 void SetActualStartTime(ActualStartTimeT&& value) { m_actualStartTimeHasBeenSet = true; m_actualStartTime = std::forward<ActualStartTimeT>(value); }
233 template<typename ActualStartTimeT = Aws::Utils::DateTime>
234 CreateOpsItemRequest& WithActualStartTime(ActualStartTimeT&& value) { SetActualStartTime(std::forward<ActualStartTimeT>(value)); return *this;}
236
238
242 inline const Aws::Utils::DateTime& GetActualEndTime() const { return m_actualEndTime; }
243 inline bool ActualEndTimeHasBeenSet() const { return m_actualEndTimeHasBeenSet; }
244 template<typename ActualEndTimeT = Aws::Utils::DateTime>
245 void SetActualEndTime(ActualEndTimeT&& value) { m_actualEndTimeHasBeenSet = true; m_actualEndTime = std::forward<ActualEndTimeT>(value); }
246 template<typename ActualEndTimeT = Aws::Utils::DateTime>
247 CreateOpsItemRequest& WithActualEndTime(ActualEndTimeT&& value) { SetActualEndTime(std::forward<ActualEndTimeT>(value)); return *this;}
249
251
256 inline const Aws::Utils::DateTime& GetPlannedStartTime() const { return m_plannedStartTime; }
257 inline bool PlannedStartTimeHasBeenSet() const { return m_plannedStartTimeHasBeenSet; }
258 template<typename PlannedStartTimeT = Aws::Utils::DateTime>
259 void SetPlannedStartTime(PlannedStartTimeT&& value) { m_plannedStartTimeHasBeenSet = true; m_plannedStartTime = std::forward<PlannedStartTimeT>(value); }
260 template<typename PlannedStartTimeT = Aws::Utils::DateTime>
261 CreateOpsItemRequest& WithPlannedStartTime(PlannedStartTimeT&& value) { SetPlannedStartTime(std::forward<PlannedStartTimeT>(value)); return *this;}
263
265
270 inline const Aws::Utils::DateTime& GetPlannedEndTime() const { return m_plannedEndTime; }
271 inline bool PlannedEndTimeHasBeenSet() const { return m_plannedEndTimeHasBeenSet; }
272 template<typename PlannedEndTimeT = Aws::Utils::DateTime>
273 void SetPlannedEndTime(PlannedEndTimeT&& value) { m_plannedEndTimeHasBeenSet = true; m_plannedEndTime = std::forward<PlannedEndTimeT>(value); }
274 template<typename PlannedEndTimeT = Aws::Utils::DateTime>
275 CreateOpsItemRequest& WithPlannedEndTime(PlannedEndTimeT&& value) { SetPlannedEndTime(std::forward<PlannedEndTimeT>(value)); return *this;}
277
279
287 inline const Aws::String& GetAccountId() const { return m_accountId; }
288 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
289 template<typename AccountIdT = Aws::String>
290 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
291 template<typename AccountIdT = Aws::String>
292 CreateOpsItemRequest& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
294 private:
295
296 Aws::String m_description;
297 bool m_descriptionHasBeenSet = false;
298
299 Aws::String m_opsItemType;
300 bool m_opsItemTypeHasBeenSet = false;
301
303 bool m_operationalDataHasBeenSet = false;
304
305 Aws::Vector<OpsItemNotification> m_notifications;
306 bool m_notificationsHasBeenSet = false;
307
308 int m_priority{0};
309 bool m_priorityHasBeenSet = false;
310
311 Aws::Vector<RelatedOpsItem> m_relatedOpsItems;
312 bool m_relatedOpsItemsHasBeenSet = false;
313
314 Aws::String m_source;
315 bool m_sourceHasBeenSet = false;
316
317 Aws::String m_title;
318 bool m_titleHasBeenSet = false;
319
320 Aws::Vector<Tag> m_tags;
321 bool m_tagsHasBeenSet = false;
322
323 Aws::String m_category;
324 bool m_categoryHasBeenSet = false;
325
326 Aws::String m_severity;
327 bool m_severityHasBeenSet = false;
328
329 Aws::Utils::DateTime m_actualStartTime{};
330 bool m_actualStartTimeHasBeenSet = false;
331
332 Aws::Utils::DateTime m_actualEndTime{};
333 bool m_actualEndTimeHasBeenSet = false;
334
335 Aws::Utils::DateTime m_plannedStartTime{};
336 bool m_plannedStartTimeHasBeenSet = false;
337
338 Aws::Utils::DateTime m_plannedEndTime{};
339 bool m_plannedEndTimeHasBeenSet = false;
340
341 Aws::String m_accountId;
342 bool m_accountIdHasBeenSet = false;
343 };
344
345} // namespace Model
346} // namespace SSM
347} // 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