364 lines
22 KiB
C
364 lines
22 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/ssm/SSM_EXPORTS.h>
|
|||
|
|
#include <aws/ssm/SSMRequest.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSMap.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|||
|
|
#include <aws/core/utils/DateTime.h>
|
|||
|
|
#include <aws/ssm/model/OpsItemDataValue.h>
|
|||
|
|
#include <aws/ssm/model/OpsItemNotification.h>
|
|||
|
|
#include <aws/ssm/model/RelatedOpsItem.h>
|
|||
|
|
#include <aws/ssm/model/Tag.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace SSM
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
*/
|
|||
|
|
class CreateOpsItemRequest : public SSMRequest
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
AWS_SSM_API CreateOpsItemRequest();
|
|||
|
|
|
|||
|
|
// Service request name is the Operation name which will send this request out,
|
|||
|
|
// each operation should has unique request name, so that we can get operation's name from this request.
|
|||
|
|
// Note: this is not true for response, multiple operations may have the same response name,
|
|||
|
|
// so we can not get operation's name from response.
|
|||
|
|
inline virtual const char* GetServiceRequestName() const override { return "CreateOpsItem"; }
|
|||
|
|
|
|||
|
|
AWS_SSM_API Aws::String SerializePayload() const override;
|
|||
|
|
|
|||
|
|
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
|||
|
|
|
|||
|
|
|
|||
|
|
///@{
|
|||
|
|
/**
|
|||
|
|
* <p>User-defined text that contains information about the OpsItem, in Markdown
|
|||
|
|
* format. </p> <p>Provide enough information so that users viewing this
|
|||
|
|
* OpsItem for the first time understand the issue. </p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetDescription() const{ return m_description; }
|
|||
|
|
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
|
|||
|
|
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
|
|||
|
|
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
|
|||
|
|
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
|
|||
|
|
inline CreateOpsItemRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
|
|||
|
|
inline CreateOpsItemRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
|
|||
|
|
inline CreateOpsItemRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
|
|||
|
|
///@}
|
|||
|
|
|
|||
|
|
///@{
|
|||
|
|
/**
|
|||
|
|
* <p>The type of OpsItem to create. Systems Manager supports the following types
|
|||
|
|
* of OpsItems:</p> <ul> <li> <p> <code>/aws/issue</code> </p> <p>This type of
|
|||
|
|
* OpsItem is used for default OpsItems created by OpsCenter. </p> </li> <li> <p>
|
|||
|
|
* <code>/aws/changerequest</code> </p> <p>This type of OpsItem is used by Change
|
|||
|
|
* Manager for reviewing and approving or rejecting change requests. </p> </li>
|
|||
|
|
* <li> <p> <code>/aws/insight</code> </p> <p>This type of OpsItem is used by
|
|||
|
|
* OpsCenter for aggregating and reporting on duplicate OpsItems. </p> </li> </ul>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetOpsItemType() const{ return m_opsItemType; }
|
|||
|
|
inline bool OpsItemTypeHasBeenSet() const { return m_opsItemTypeHasBeenSet; }
|
|||
|
|
inline void SetOpsItemType(const Aws::String& value) { m_opsItemTypeHasBeenSet = true; m_opsItemType = value; }
|
|||
|
|
inline void SetOpsItemType(Aws::String&& value) { m_opsItemTypeHasBeenSet = true; m_opsItemType = std::move(value); }
|
|||
|
|
inline void SetOpsItemType(const char* value) { m_opsItemTypeHasBeenSet = true; m_opsItemType.assign(value); }
|
|||
|
|
inline CreateOpsItemRequest& WithOpsItemType(const Aws::String& value) { SetOpsItemType(value); return *this;}
|
|||
|
|
inline CreateOpsItemRequest& WithOpsItemType(Aws::String&& value) { SetOpsItemType(std::move(value)); return *this;}
|
|||
|
|
inline CreateOpsItemRequest& WithOpsItemType(const char* value) { SetOpsItemType(value); return *this;}
|
|||
|
|
///@}
|
|||
|
|
|
|||
|
|
///@{
|
|||
|
|
/**
|
|||
|
|
* <p>Operational data is custom data that provides useful reference details about
|
|||
|
|
* the OpsItem. For example, you can specify log files, error strings, license
|
|||
|
|
* keys, troubleshooting tips, or other relevant data. You enter operational data
|
|||
|
|
* as key-value pairs. The key has a maximum length of 128 characters. The value
|
|||
|
|
* has a maximum size of 20 KB.</p> <p>Operational data keys
|
|||
|
|
* <i>can't</i> begin with the following: <code>amazon</code>, <code>aws</code>,
|
|||
|
|
* <code>amzn</code>, <code>ssm</code>, <code>/amazon</code>, <code>/aws</code>,
|
|||
|
|
* <code>/amzn</code>, <code>/ssm</code>.</p> <p>You can choose to
|
|||
|
|
* make the data searchable by other users in the account or you can restrict
|
|||
|
|
* search access. Searchable data means that all users with access to the OpsItem
|
|||
|
|
* Overview page (as provided by the <a>DescribeOpsItems</a> API operation) can
|
|||
|
|
* view and search on the specified data. Operational data that isn't searchable is
|
|||
|
|
* only viewable by users who have access to the OpsItem (as provided by the
|
|||
|
|
* <a>GetOpsItem</a> API operation).</p> <p>Use the <code>/aws/resources</code> key
|
|||
|
|
* in OperationalData to specify a related resource in the request. Use the
|
|||
|
|
* <code>/aws/automations</code> key in OperationalData to associate an Automation
|
|||
|
|
* runbook with the OpsItem. To view Amazon Web Services CLI example commands that
|
|||
|
|
* use these keys, see <a
|
|||
|
|
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-manually-create-OpsItems.html">Create
|
|||
|
|
* OpsItems manually</a> in the <i>Amazon Web Services Systems Manager User
|
|||
|
|
* Guide</i>.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Map<Aws::String, OpsItemDataValue>& GetOperationalData() const{ return m_operationalData; }
|
|||
|
|
inline bool OperationalDataHasBeenSet() const { return m_operationalDataHasBeenSet; }
|
|||
|
|
inline void SetOperationalData(const Aws::Map<Aws::String, OpsItemDataValue>& value) { m_operationalDataHasBeenSet = true; m_operationalData = value; }
|
|||
|
|
inline void SetOperationalData(Aws::Map<Aws::String, OpsItemDataValue>&& value) { m_operationalDataHasBeenSet = true; m_operationalData = std::move(value); }
|
|||
|
|
inline CreateOpsItemRequest& WithOperationalData(const Aws::Map<Aws::String, OpsItemDataValue>& value) { SetOperationalData(value); return *this;}
|
|||
|
|
inline CreateOpsItemRequest& WithOperationalData(Aws::Map<Aws::String, OpsItemDataValue>&& value) { SetOperationalData(std::move(value)); return *this;}
|
|||
|
|
inline CreateOpsItemRequest& AddOperationalData(const Aws::String& key, const OpsItemDataValue& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(key, value); return *this; }
|
|||
|
|
inline CreateOpsItemRequest& AddOperationalData(Aws::String&& key, const OpsItemDataValue& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(std::move(key), value); return *this; }
|
|||
|
|
inline CreateOpsItemRequest& AddOperationalData(const Aws::String& key, OpsItemDataValue&& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(key, std::move(value)); return *this; }
|
|||
|
|
inline CreateOpsItemRequest& AddOperationalData(Aws::String&& key, OpsItemDataValue&& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(std::move(key), std::move(value)); return *this; }
|
|||
|
|
inline CreateOpsItemRequest& AddOperationalData(const char* key, OpsItemDataValue&& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(key, std::move(value)); return *this; }
|
|||
|
|
inline CreateOpsItemRequest& AddOperationalData(const char* key, const OpsItemDataValue& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(key, value); return *this; }
|
|||
|
|
///@}
|
|||
|
|
|
|||
|
|
///@{
|
|||
|
|
/**
|
|||
|
|
* <p>The Amazon Resource Name (ARN) of an SNS topic where notifications are sent
|
|||
|
|
* when this OpsItem is edited or changed.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Vector<OpsItemNotification>& GetNotifications() const{ return m_notifications; }
|
|||
|
|
inline bool NotificationsHasBeenSet() const { return m_notificationsHasBeenSet; }
|
|||
|
|
inline void SetNotifications(const Aws::Vector<OpsItemNotification>& value) { m_notificationsHasBeenSet = true; m_notifications = value; }
|
|||
|
|
inline void SetNotifications(Aws::Vector<OpsItemNotification>&& value) { m_notificationsHasBeenSet = true; m_notifications = std::move(value); }
|
|||
|
|
inline CreateOpsItemRequest& WithNotifications(const Aws::Vector<OpsItemNotification>& value) { SetNotifications(value); return *this;}
|
|||
|
|
inline CreateOpsItemRequest& WithNotifications(Aws::Vector<OpsItemNotification>&& value) { SetNotifications(std::move(value)); return *this;}
|
|||
|
|
inline CreateOpsItemRequest& AddNotifications(const OpsItemNotification& value) { m_notificationsHasBeenSet = true; m_notifications.push_back(value); return *this; }
|
|||
|
|
inline CreateOpsItemRequest& AddNotifications(OpsItemNotification&& value) { m_notificationsHasBeenSet = true; m_notifications.push_back(std::move(value)); return *this; }
|
|||
|
|
///@}
|
|||
|
|
|
|||
|
|
///@{
|
|||
|
|
/**
|
|||
|
|
* <p>The importance of this OpsItem in relation to other OpsItems in the
|
|||
|
|
* system.</p>
|
|||
|
|
*/
|
|||
|
|
inline int GetPriority() const{ return m_priority; }
|
|||
|
|
inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
|
|||
|
|
inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
|
|||
|
|
inline CreateOpsItemRequest& WithPriority(int value) { SetPriority(value); return *this;}
|
|||
|
|
///@}
|
|||
|
|
|
|||
|
|
///@{
|
|||
|
|
/**
|
|||
|
|
* <p>One or more OpsItems that share something in common with the current
|
|||
|
|
* OpsItems. For example, related OpsItems can include OpsItems with similar error
|
|||
|
|
* messages, impacted resources, or statuses for the impacted resource.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Vector<RelatedOpsItem>& GetRelatedOpsItems() const{ return m_relatedOpsItems; }
|
|||
|
|
inline bool RelatedOpsItemsHasBeenSet() const { return m_relatedOpsItemsHasBeenSet; }
|
|||
|
|
inline void SetRelatedOpsItems(const Aws::Vector<RelatedOpsItem>& value) { m_relatedOpsItemsHasBeenSet = true; m_relatedOpsItems = value; }
|
|||
|
|
inline void SetRelatedOpsItems(Aws::Vector<RelatedOpsItem>&& value) { m_relatedOpsItemsHasBeenSet = true; m_relatedOpsItems = std::move(value); }
|
|||
|
|
inline CreateOpsItemRequest& WithRelatedOpsItems(const Aws::Vector<RelatedOpsItem>& value) { SetRelatedOpsItems(value); return *this;}
|
|||
|
|
inline CreateOpsItemRequest& WithRelatedOpsItems(Aws::Vector<RelatedOpsItem>&& value) { SetRelatedOpsItems(std::move(value)); return *this;}
|
|||
|
|
inline CreateOpsItemRequest& AddRelatedOpsItems(const RelatedOpsItem& value) { m_relatedOpsItemsHasBeenSet = true; m_relatedOpsItems.push_back(value); return *this; }
|
|||
|
|
inline CreateOpsItemRequest& AddRelatedOpsItems(RelatedOpsItem&& value) { m_relatedOpsItemsHasBeenSet = true; m_relatedOpsItems.push_back(std::move(value)); return *this; }
|
|||
|
|
///@}
|
|||
|
|
|
|||
|
|
///@{
|
|||
|
|
/**
|
|||
|
|
* <p>The origin of the OpsItem, such as Amazon EC2 or Systems Manager.</p>
|
|||
|
|
* <p>The source name can't contain the following strings: <code>aws</code>,
|
|||
|
|
* <code>amazon</code>, and <code>amzn</code>. </p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetSource() const{ return m_source; }
|
|||
|
|
inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
|
|||
|
|
inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
|
|||
|
|
inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
|
|||
|
|
inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
|
|||
|
|
inline CreateOpsItemRequest& WithSource(const Aws::String& value) { SetSource(value); return *this;}
|
|||
|
|
inline CreateOpsItemRequest& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
|
|||
|
|
inline CreateOpsItemRequest& WithSource(const char* value) { SetSource(value); return *this;}
|
|||
|
|
///@}
|
|||
|
|
|
|||
|
|
///@{
|
|||
|
|
/**
|
|||
|
|
* <p>A short heading that describes the nature of the OpsItem and the impacted
|
|||
|
|
* resource.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetTitle() const{ return m_title; }
|
|||
|
|
inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
|
|||
|
|
inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
|
|||
|
|
inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
|
|||
|
|
inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
|
|||
|
|
inline CreateOpsItemRequest& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
|
|||
|
|
inline CreateOpsItemRequest& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
|
|||
|
|
inline CreateOpsItemRequest& WithTitle(const char* value) { SetTitle(value); return *this;}
|
|||
|
|
///@}
|
|||
|
|
|
|||
|
|
///@{
|
|||
|
|
/**
|
|||
|
|
* <p>Optional metadata that you assign to a resource.</p> <p>Tags use a key-value
|
|||
|
|
* pair. For example:</p> <p> <code>Key=Department,Value=Finance</code> </p>
|
|||
|
|
* <p>To add tags to a new OpsItem, a user must have IAM permissions
|
|||
|
|
* for both the <code>ssm:CreateOpsItems</code> operation and the
|
|||
|
|
* <code>ssm:AddTagsToResource</code> operation. To add tags to an existing
|
|||
|
|
* OpsItem, use the <a>AddTagsToResource</a> operation.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
|
|||
|
|
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
|
|||
|
|
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
|
|||
|
|
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
|
|||
|
|
inline CreateOpsItemRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
|
|||
|
|
inline CreateOpsItemRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
|
|||
|
|
inline CreateOpsItemRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
|
|||
|
|
inline CreateOpsItemRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
|
|||
|
|
///@}
|
|||
|
|
|
|||
|
|
///@{
|
|||
|
|
/**
|
|||
|
|
* <p>Specify a category to assign to an OpsItem. </p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetCategory() const{ return m_category; }
|
|||
|
|
inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
|
|||
|
|
inline void SetCategory(const Aws::String& value) { m_categoryHasBeenSet = true; m_category = value; }
|
|||
|
|
inline void SetCategory(Aws::String&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); }
|
|||
|
|
inline void SetCategory(const char* value) { m_categoryHasBeenSet = true; m_category.assign(value); }
|
|||
|
|
inline CreateOpsItemRequest& WithCategory(const Aws::String& value) { SetCategory(value); return *this;}
|
|||
|
|
inline CreateOpsItemRequest& WithCategory(Aws::String&& value) { SetCategory(std::move(value)); return *this;}
|
|||
|
|
inline CreateOpsItemRequest& WithCategory(const char* value) { SetCategory(value); return *this;}
|
|||
|
|
///@}
|
|||
|
|
|
|||
|
|
///@{
|
|||
|
|
/**
|
|||
|
|
* <p>Specify a severity to assign to an OpsItem.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetSeverity() const{ return m_severity; }
|
|||
|
|
inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
|
|||
|
|
inline void SetSeverity(const Aws::String& value) { m_severityHasBeenSet = true; m_severity = value; }
|
|||
|
|
inline void SetSeverity(Aws::String&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
|
|||
|
|
inline void SetSeverity(const char* value) { m_severityHasBeenSet = true; m_severity.assign(value); }
|
|||
|
|
inline CreateOpsItemRequest& WithSeverity(const Aws::String& value) { SetSeverity(value); return *this;}
|
|||
|
|
inline CreateOpsItemRequest& WithSeverity(Aws::String&& value) { SetSeverity(std::move(value)); return *this;}
|
|||
|
|
inline CreateOpsItemRequest& WithSeverity(const char* value) { SetSeverity(value); return *this;}
|
|||
|
|
///@}
|
|||
|
|
|
|||
|
|
///@{
|
|||
|
|
/**
|
|||
|
|
* <p>The time a runbook workflow started. Currently reported only for the OpsItem
|
|||
|
|
* type <code>/aws/changerequest</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Utils::DateTime& GetActualStartTime() const{ return m_actualStartTime; }
|
|||
|
|
inline bool ActualStartTimeHasBeenSet() const { return m_actualStartTimeHasBeenSet; }
|
|||
|
|
inline void SetActualStartTime(const Aws::Utils::DateTime& value) { m_actualStartTimeHasBeenSet = true; m_actualStartTime = value; }
|
|||
|
|
inline void SetActualStartTime(Aws::Utils::DateTime&& value) { m_actualStartTimeHasBeenSet = true; m_actualStartTime = std::move(value); }
|
|||
|
|
inline CreateOpsItemRequest& WithActualStartTime(const Aws::Utils::DateTime& value) { SetActualStartTime(value); return *this;}
|
|||
|
|
inline CreateOpsItemRequest& WithActualStartTime(Aws::Utils::DateTime&& value) { SetActualStartTime(std::move(value)); return *this;}
|
|||
|
|
///@}
|
|||
|
|
|
|||
|
|
///@{
|
|||
|
|
/**
|
|||
|
|
* <p>The time a runbook workflow ended. Currently reported only for the OpsItem
|
|||
|
|
* type <code>/aws/changerequest</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Utils::DateTime& GetActualEndTime() const{ return m_actualEndTime; }
|
|||
|
|
inline bool ActualEndTimeHasBeenSet() const { return m_actualEndTimeHasBeenSet; }
|
|||
|
|
inline void SetActualEndTime(const Aws::Utils::DateTime& value) { m_actualEndTimeHasBeenSet = true; m_actualEndTime = value; }
|
|||
|
|
inline void SetActualEndTime(Aws::Utils::DateTime&& value) { m_actualEndTimeHasBeenSet = true; m_actualEndTime = std::move(value); }
|
|||
|
|
inline CreateOpsItemRequest& WithActualEndTime(const Aws::Utils::DateTime& value) { SetActualEndTime(value); return *this;}
|
|||
|
|
inline CreateOpsItemRequest& WithActualEndTime(Aws::Utils::DateTime&& value) { SetActualEndTime(std::move(value)); return *this;}
|
|||
|
|
///@}
|
|||
|
|
|
|||
|
|
///@{
|
|||
|
|
/**
|
|||
|
|
* <p>The time specified in a change request for a runbook workflow to start.
|
|||
|
|
* Currently supported only for the OpsItem type
|
|||
|
|
* <code>/aws/changerequest</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Utils::DateTime& GetPlannedStartTime() const{ return m_plannedStartTime; }
|
|||
|
|
inline bool PlannedStartTimeHasBeenSet() const { return m_plannedStartTimeHasBeenSet; }
|
|||
|
|
inline void SetPlannedStartTime(const Aws::Utils::DateTime& value) { m_plannedStartTimeHasBeenSet = true; m_plannedStartTime = value; }
|
|||
|
|
inline void SetPlannedStartTime(Aws::Utils::DateTime&& value) { m_plannedStartTimeHasBeenSet = true; m_plannedStartTime = std::move(value); }
|
|||
|
|
inline CreateOpsItemRequest& WithPlannedStartTime(const Aws::Utils::DateTime& value) { SetPlannedStartTime(value); return *this;}
|
|||
|
|
inline CreateOpsItemRequest& WithPlannedStartTime(Aws::Utils::DateTime&& value) { SetPlannedStartTime(std::move(value)); return *this;}
|
|||
|
|
///@}
|
|||
|
|
|
|||
|
|
///@{
|
|||
|
|
/**
|
|||
|
|
* <p>The time specified in a change request for a runbook workflow to end.
|
|||
|
|
* Currently supported only for the OpsItem type
|
|||
|
|
* <code>/aws/changerequest</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Utils::DateTime& GetPlannedEndTime() const{ return m_plannedEndTime; }
|
|||
|
|
inline bool PlannedEndTimeHasBeenSet() const { return m_plannedEndTimeHasBeenSet; }
|
|||
|
|
inline void SetPlannedEndTime(const Aws::Utils::DateTime& value) { m_plannedEndTimeHasBeenSet = true; m_plannedEndTime = value; }
|
|||
|
|
inline void SetPlannedEndTime(Aws::Utils::DateTime&& value) { m_plannedEndTimeHasBeenSet = true; m_plannedEndTime = std::move(value); }
|
|||
|
|
inline CreateOpsItemRequest& WithPlannedEndTime(const Aws::Utils::DateTime& value) { SetPlannedEndTime(value); return *this;}
|
|||
|
|
inline CreateOpsItemRequest& WithPlannedEndTime(Aws::Utils::DateTime&& value) { SetPlannedEndTime(std::move(value)); return *this;}
|
|||
|
|
///@}
|
|||
|
|
|
|||
|
|
///@{
|
|||
|
|
/**
|
|||
|
|
* <p>The target Amazon Web Services account where you want to create an OpsItem.
|
|||
|
|
* To make this call, your account must be configured to work with OpsItems across
|
|||
|
|
* accounts. For more information, see <a
|
|||
|
|
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-setup.html">Set
|
|||
|
|
* up OpsCenter</a> in the <i>Amazon Web Services Systems Manager User
|
|||
|
|
* Guide</i>.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetAccountId() const{ return m_accountId; }
|
|||
|
|
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
|
|||
|
|
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
|
|||
|
|
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
|
|||
|
|
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
|
|||
|
|
inline CreateOpsItemRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
|
|||
|
|
inline CreateOpsItemRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
|
|||
|
|
inline CreateOpsItemRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
|
|||
|
|
///@}
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::String m_description;
|
|||
|
|
bool m_descriptionHasBeenSet = false;
|
|||
|
|
|
|||
|
|
Aws::String m_opsItemType;
|
|||
|
|
bool m_opsItemTypeHasBeenSet = false;
|
|||
|
|
|
|||
|
|
Aws::Map<Aws::String, OpsItemDataValue> m_operationalData;
|
|||
|
|
bool m_operationalDataHasBeenSet = false;
|
|||
|
|
|
|||
|
|
Aws::Vector<OpsItemNotification> m_notifications;
|
|||
|
|
bool m_notificationsHasBeenSet = false;
|
|||
|
|
|
|||
|
|
int m_priority;
|
|||
|
|
bool m_priorityHasBeenSet = false;
|
|||
|
|
|
|||
|
|
Aws::Vector<RelatedOpsItem> m_relatedOpsItems;
|
|||
|
|
bool m_relatedOpsItemsHasBeenSet = false;
|
|||
|
|
|
|||
|
|
Aws::String m_source;
|
|||
|
|
bool m_sourceHasBeenSet = false;
|
|||
|
|
|
|||
|
|
Aws::String m_title;
|
|||
|
|
bool m_titleHasBeenSet = false;
|
|||
|
|
|
|||
|
|
Aws::Vector<Tag> m_tags;
|
|||
|
|
bool m_tagsHasBeenSet = false;
|
|||
|
|
|
|||
|
|
Aws::String m_category;
|
|||
|
|
bool m_categoryHasBeenSet = false;
|
|||
|
|
|
|||
|
|
Aws::String m_severity;
|
|||
|
|
bool m_severityHasBeenSet = false;
|
|||
|
|
|
|||
|
|
Aws::Utils::DateTime m_actualStartTime;
|
|||
|
|
bool m_actualStartTimeHasBeenSet = false;
|
|||
|
|
|
|||
|
|
Aws::Utils::DateTime m_actualEndTime;
|
|||
|
|
bool m_actualEndTimeHasBeenSet = false;
|
|||
|
|
|
|||
|
|
Aws::Utils::DateTime m_plannedStartTime;
|
|||
|
|
bool m_plannedStartTimeHasBeenSet = false;
|
|||
|
|
|
|||
|
|
Aws::Utils::DateTime m_plannedEndTime;
|
|||
|
|
bool m_plannedEndTimeHasBeenSet = false;
|
|||
|
|
|
|||
|
|
Aws::String m_accountId;
|
|||
|
|
bool m_accountIdHasBeenSet = false;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace SSM
|
|||
|
|
} // namespace Aws
|