7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ssm/model/OpsItemStatus.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/ssm/model/OpsItemNotification.h>
14#include <aws/ssm/model/RelatedOpsItem.h>
15#include <aws/ssm/model/OpsItemDataValue.h>
71 template<
typename CreatedByT = Aws::String>
72 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet =
true; m_createdBy = std::forward<CreatedByT>(value); }
73 template<
typename CreatedByT = Aws::String>
89 template<
typename OpsItemTypeT = Aws::String>
90 void SetOpsItemType(OpsItemTypeT&& value) { m_opsItemTypeHasBeenSet =
true; m_opsItemType = std::forward<OpsItemTypeT>(value); }
91 template<
typename OpsItemTypeT = Aws::String>
101 template<
typename CreatedTimeT = Aws::Utils::DateTime>
102 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet =
true; m_createdTime = std::forward<CreatedTimeT>(value); }
103 template<
typename CreatedTimeT = Aws::Utils::DateTime>
113 template<
typename DescriptionT = Aws::String>
114 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
115 template<
typename DescriptionT = Aws::String>
125 template<
typename LastModifiedByT = Aws::String>
126 void SetLastModifiedBy(LastModifiedByT&& value) { m_lastModifiedByHasBeenSet =
true; m_lastModifiedBy = std::forward<LastModifiedByT>(value); }
127 template<
typename LastModifiedByT = Aws::String>
137 template<
typename LastModifiedTimeT = Aws::Utils::DateTime>
138 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet =
true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
139 template<
typename LastModifiedTimeT = Aws::Utils::DateTime>
151 template<
typename NotificationsT = Aws::Vector<OpsItemNotification>>
152 void SetNotifications(NotificationsT&& value) { m_notificationsHasBeenSet =
true; m_notifications = std::forward<NotificationsT>(value); }
153 template<
typename NotificationsT = Aws::Vector<OpsItemNotification>>
155 template<
typename NotificationsT = OpsItemNotification>
156 OpsItem&
AddNotifications(NotificationsT&& value) { m_notificationsHasBeenSet =
true; m_notifications.emplace_back(std::forward<NotificationsT>(value));
return *
this; }
166 inline void SetPriority(
int value) { m_priorityHasBeenSet =
true; m_priority = value; }
178 template<
typename RelatedOpsItemsT = Aws::Vector<RelatedOpsItem>>
179 void SetRelatedOpsItems(RelatedOpsItemsT&& value) { m_relatedOpsItemsHasBeenSet =
true; m_relatedOpsItems = std::forward<RelatedOpsItemsT>(value); }
180 template<
typename RelatedOpsItemsT = Aws::Vector<RelatedOpsItem>>
182 template<
typename RelatedOpsItemsT = RelatedOpsItem>
183 OpsItem&
AddRelatedOpsItems(RelatedOpsItemsT&& value) { m_relatedOpsItemsHasBeenSet =
true; m_relatedOpsItems.emplace_back(std::forward<RelatedOpsItemsT>(value));
return *
this; }
205 template<
typename OpsItemIdT = Aws::String>
206 void SetOpsItemId(OpsItemIdT&& value) { m_opsItemIdHasBeenSet =
true; m_opsItemId = std::forward<OpsItemIdT>(value); }
207 template<
typename OpsItemIdT = Aws::String>
218 template<
typename VersionT = Aws::String>
219 void SetVersion(VersionT&& value) { m_versionHasBeenSet =
true; m_version = std::forward<VersionT>(value); }
220 template<
typename VersionT = Aws::String>
231 template<
typename TitleT = Aws::String>
232 void SetTitle(TitleT&& value) { m_titleHasBeenSet =
true; m_title = std::forward<TitleT>(value); }
233 template<
typename TitleT = Aws::String>
244 template<
typename SourceT = Aws::String>
245 void SetSource(SourceT&& value) { m_sourceHasBeenSet =
true; m_source = std::forward<SourceT>(value); }
246 template<
typename SourceT = Aws::String>
276 template<
typename OperationalDataT = Aws::Map<Aws::String, OpsItemDataValue>>
277 void SetOperationalData(OperationalDataT&& value) { m_operationalDataHasBeenSet =
true; m_operationalData = std::forward<OperationalDataT>(value); }
278 template<
typename OperationalDataT = Aws::Map<Aws::String, OpsItemDataValue>>
280 template<
typename OperationalDataKeyT = Aws::String,
typename OperationalDataValueT = OpsItemDataValue>
282 m_operationalDataHasBeenSet =
true; m_operationalData.emplace(std::forward<OperationalDataKeyT>(key), std::forward<OperationalDataValueT>(value));
return *
this;
293 template<
typename CategoryT = Aws::String>
294 void SetCategory(CategoryT&& value) { m_categoryHasBeenSet =
true; m_category = std::forward<CategoryT>(value); }
295 template<
typename CategoryT = Aws::String>
305 template<
typename SeverityT = Aws::String>
306 void SetSeverity(SeverityT&& value) { m_severityHasBeenSet =
true; m_severity = std::forward<SeverityT>(value); }
307 template<
typename SeverityT = Aws::String>
318 template<
typename ActualStartTimeT = Aws::Utils::DateTime>
319 void SetActualStartTime(ActualStartTimeT&& value) { m_actualStartTimeHasBeenSet =
true; m_actualStartTime = std::forward<ActualStartTimeT>(value); }
320 template<
typename ActualStartTimeT = Aws::Utils::DateTime>
331 template<
typename ActualEndTimeT = Aws::Utils::DateTime>
332 void SetActualEndTime(ActualEndTimeT&& value) { m_actualEndTimeHasBeenSet =
true; m_actualEndTime = std::forward<ActualEndTimeT>(value); }
333 template<
typename ActualEndTimeT = Aws::Utils::DateTime>
345 template<
typename PlannedStartTimeT = Aws::Utils::DateTime>
346 void SetPlannedStartTime(PlannedStartTimeT&& value) { m_plannedStartTimeHasBeenSet =
true; m_plannedStartTime = std::forward<PlannedStartTimeT>(value); }
347 template<
typename PlannedStartTimeT = Aws::Utils::DateTime>
359 template<
typename PlannedEndTimeT = Aws::Utils::DateTime>
360 void SetPlannedEndTime(PlannedEndTimeT&& value) { m_plannedEndTimeHasBeenSet =
true; m_plannedEndTime = std::forward<PlannedEndTimeT>(value); }
361 template<
typename PlannedEndTimeT = Aws::Utils::DateTime>
371 template<
typename OpsItemArnT = Aws::String>
372 void SetOpsItemArn(OpsItemArnT&& value) { m_opsItemArnHasBeenSet =
true; m_opsItemArn = std::forward<OpsItemArnT>(value); }
373 template<
typename OpsItemArnT = Aws::String>
379 bool m_createdByHasBeenSet =
false;
382 bool m_opsItemTypeHasBeenSet =
false;
385 bool m_createdTimeHasBeenSet =
false;
388 bool m_descriptionHasBeenSet =
false;
391 bool m_lastModifiedByHasBeenSet =
false;
394 bool m_lastModifiedTimeHasBeenSet =
false;
397 bool m_notificationsHasBeenSet =
false;
400 bool m_priorityHasBeenSet =
false;
403 bool m_relatedOpsItemsHasBeenSet =
false;
406 bool m_statusHasBeenSet =
false;
409 bool m_opsItemIdHasBeenSet =
false;
412 bool m_versionHasBeenSet =
false;
415 bool m_titleHasBeenSet =
false;
418 bool m_sourceHasBeenSet =
false;
421 bool m_operationalDataHasBeenSet =
false;
424 bool m_categoryHasBeenSet =
false;
427 bool m_severityHasBeenSet =
false;
430 bool m_actualStartTimeHasBeenSet =
false;
433 bool m_actualEndTimeHasBeenSet =
false;
436 bool m_plannedStartTimeHasBeenSet =
false;
439 bool m_plannedEndTimeHasBeenSet =
false;
442 bool m_opsItemArnHasBeenSet =
false;
void SetTitle(TitleT &&value)
bool SeverityHasBeenSet() const
void SetSeverity(SeverityT &&value)
const Aws::String & GetOpsItemId() const
void SetOpsItemArn(OpsItemArnT &&value)
AWS_SSM_API OpsItem & operator=(Aws::Utils::Json::JsonView jsonValue)
OpsItem & WithTitle(TitleT &&value)
bool OpsItemTypeHasBeenSet() const
bool SourceHasBeenSet() const
void SetLastModifiedTime(LastModifiedTimeT &&value)
void SetStatus(OpsItemStatus value)
void SetCreatedBy(CreatedByT &&value)
OpsItem & WithVersion(VersionT &&value)
const Aws::Vector< OpsItemNotification > & GetNotifications() const
OpsItem & WithPlannedEndTime(PlannedEndTimeT &&value)
void SetLastModifiedBy(LastModifiedByT &&value)
void SetVersion(VersionT &&value)
OpsItem & WithPriority(int value)
bool LastModifiedTimeHasBeenSet() const
OpsItem & WithPlannedStartTime(PlannedStartTimeT &&value)
OpsItem & AddNotifications(NotificationsT &&value)
OpsItem & WithOpsItemId(OpsItemIdT &&value)
OpsItem & WithActualStartTime(ActualStartTimeT &&value)
void SetActualStartTime(ActualStartTimeT &&value)
const Aws::String & GetDescription() const
bool NotificationsHasBeenSet() const
OpsItemStatus GetStatus() const
const Aws::String & GetCategory() const
OpsItem & WithOpsItemType(OpsItemTypeT &&value)
void SetOperationalData(OperationalDataT &&value)
OpsItem & WithStatus(OpsItemStatus value)
void SetOpsItemId(OpsItemIdT &&value)
const Aws::String & GetTitle() const
bool CreatedTimeHasBeenSet() const
bool ActualEndTimeHasBeenSet() const
OpsItem & WithActualEndTime(ActualEndTimeT &&value)
const Aws::String & GetOpsItemArn() const
void SetNotifications(NotificationsT &&value)
bool VersionHasBeenSet() const
bool TitleHasBeenSet() const
OpsItem & WithLastModifiedBy(LastModifiedByT &&value)
void SetDescription(DescriptionT &&value)
void SetPlannedStartTime(PlannedStartTimeT &&value)
bool DescriptionHasBeenSet() const
void SetOpsItemType(OpsItemTypeT &&value)
OpsItem & WithSeverity(SeverityT &&value)
bool StatusHasBeenSet() const
OpsItem & WithOperationalData(OperationalDataT &&value)
AWS_SSM_API OpsItem()=default
const Aws::Utils::DateTime & GetActualStartTime() const
bool OperationalDataHasBeenSet() const
const Aws::Utils::DateTime & GetPlannedStartTime() const
OpsItem & WithDescription(DescriptionT &&value)
void SetPriority(int value)
OpsItem & AddOperationalData(OperationalDataKeyT &&key, OperationalDataValueT &&value)
void SetSource(SourceT &&value)
const Aws::Utils::DateTime & GetCreatedTime() const
const Aws::String & GetCreatedBy() const
OpsItem & WithOpsItemArn(OpsItemArnT &&value)
const Aws::Map< Aws::String, OpsItemDataValue > & GetOperationalData() const
OpsItem & WithCreatedBy(CreatedByT &&value)
bool CategoryHasBeenSet() const
const Aws::Utils::DateTime & GetPlannedEndTime() const
void SetPlannedEndTime(PlannedEndTimeT &&value)
bool RelatedOpsItemsHasBeenSet() const
OpsItem & WithCreatedTime(CreatedTimeT &&value)
bool OpsItemArnHasBeenSet() const
const Aws::String & GetSource() const
const Aws::Vector< RelatedOpsItem > & GetRelatedOpsItems() const
OpsItem & WithCategory(CategoryT &&value)
const Aws::String & GetLastModifiedBy() const
bool PriorityHasBeenSet() const
const Aws::String & GetOpsItemType() const
bool LastModifiedByHasBeenSet() const
OpsItem & WithNotifications(NotificationsT &&value)
bool PlannedEndTimeHasBeenSet() const
void SetCategory(CategoryT &&value)
OpsItem & WithSource(SourceT &&value)
bool OpsItemIdHasBeenSet() const
bool PlannedStartTimeHasBeenSet() const
const Aws::String & GetSeverity() const
void SetCreatedTime(CreatedTimeT &&value)
bool CreatedByHasBeenSet() const
void SetRelatedOpsItems(RelatedOpsItemsT &&value)
bool ActualStartTimeHasBeenSet() const
OpsItem & AddRelatedOpsItems(RelatedOpsItemsT &&value)
const Aws::Utils::DateTime & GetActualEndTime() const
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
OpsItem & WithLastModifiedTime(LastModifiedTimeT &&value)
const Aws::String & GetVersion() const
void SetActualEndTime(ActualEndTimeT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
AWS_SSM_API OpsItem(Aws::Utils::Json::JsonView jsonValue)
OpsItem & WithRelatedOpsItems(RelatedOpsItemsT &&value)
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