feat(hos_client_create, hos_client_destory): 多次调用destory不会导致重复释放

This commit is contained in:
彭宣正
2020-12-14 17:24:58 +08:00
parent 505d529c32
commit 10b370e486
55976 changed files with 8544395 additions and 2 deletions

View File

@@ -0,0 +1,799 @@
/**
* 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/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 AWS_SSM_API CreateOpsItemRequest : public SSMRequest
{
public:
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::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Information about the OpsItem. </p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>Information about the OpsItem. </p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>Information about the OpsItem. </p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>Information about the OpsItem. </p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>Information about the OpsItem. </p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>Information about the OpsItem. </p>
*/
inline CreateOpsItemRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>Information about the OpsItem. </p>
*/
inline CreateOpsItemRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>Information about the OpsItem. </p>
*/
inline CreateOpsItemRequest& WithDescription(const char* value) { SetDescription(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: amazon, aws, amzn, ssm, /amazon, /aws,
* /amzn, /ssm.</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 action) can view and search on the specified
* data. Operational data that is not searchable is only viewable by users who have
* access to the OpsItem (as provided by the <a>GetOpsItem</a> API action).</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 AWS
* CLI example commands that use these keys, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-creating-OpsItems.html#OpsCenter-manually-create-OpsItems">Creating
* OpsItems manually</a> in the <i>AWS Systems Manager User Guide</i>.</p>
*/
inline const Aws::Map<Aws::String, OpsItemDataValue>& GetOperationalData() const{ return m_operationalData; }
/**
* <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: amazon, aws, amzn, ssm, /amazon, /aws,
* /amzn, /ssm.</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 action) can view and search on the specified
* data. Operational data that is not searchable is only viewable by users who have
* access to the OpsItem (as provided by the <a>GetOpsItem</a> API action).</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 AWS
* CLI example commands that use these keys, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-creating-OpsItems.html#OpsCenter-manually-create-OpsItems">Creating
* OpsItems manually</a> in the <i>AWS Systems Manager User Guide</i>.</p>
*/
inline bool OperationalDataHasBeenSet() const { return m_operationalDataHasBeenSet; }
/**
* <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: amazon, aws, amzn, ssm, /amazon, /aws,
* /amzn, /ssm.</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 action) can view and search on the specified
* data. Operational data that is not searchable is only viewable by users who have
* access to the OpsItem (as provided by the <a>GetOpsItem</a> API action).</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 AWS
* CLI example commands that use these keys, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-creating-OpsItems.html#OpsCenter-manually-create-OpsItems">Creating
* OpsItems manually</a> in the <i>AWS Systems Manager User Guide</i>.</p>
*/
inline void SetOperationalData(const Aws::Map<Aws::String, OpsItemDataValue>& value) { m_operationalDataHasBeenSet = true; m_operationalData = value; }
/**
* <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: amazon, aws, amzn, ssm, /amazon, /aws,
* /amzn, /ssm.</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 action) can view and search on the specified
* data. Operational data that is not searchable is only viewable by users who have
* access to the OpsItem (as provided by the <a>GetOpsItem</a> API action).</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 AWS
* CLI example commands that use these keys, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-creating-OpsItems.html#OpsCenter-manually-create-OpsItems">Creating
* OpsItems manually</a> in the <i>AWS Systems Manager User Guide</i>.</p>
*/
inline void SetOperationalData(Aws::Map<Aws::String, OpsItemDataValue>&& value) { m_operationalDataHasBeenSet = true; m_operationalData = std::move(value); }
/**
* <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: amazon, aws, amzn, ssm, /amazon, /aws,
* /amzn, /ssm.</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 action) can view and search on the specified
* data. Operational data that is not searchable is only viewable by users who have
* access to the OpsItem (as provided by the <a>GetOpsItem</a> API action).</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 AWS
* CLI example commands that use these keys, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-creating-OpsItems.html#OpsCenter-manually-create-OpsItems">Creating
* OpsItems manually</a> in the <i>AWS Systems Manager User Guide</i>.</p>
*/
inline CreateOpsItemRequest& WithOperationalData(const Aws::Map<Aws::String, OpsItemDataValue>& value) { SetOperationalData(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: amazon, aws, amzn, ssm, /amazon, /aws,
* /amzn, /ssm.</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 action) can view and search on the specified
* data. Operational data that is not searchable is only viewable by users who have
* access to the OpsItem (as provided by the <a>GetOpsItem</a> API action).</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 AWS
* CLI example commands that use these keys, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-creating-OpsItems.html#OpsCenter-manually-create-OpsItems">Creating
* OpsItems manually</a> in the <i>AWS Systems Manager User Guide</i>.</p>
*/
inline CreateOpsItemRequest& WithOperationalData(Aws::Map<Aws::String, OpsItemDataValue>&& value) { SetOperationalData(std::move(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: amazon, aws, amzn, ssm, /amazon, /aws,
* /amzn, /ssm.</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 action) can view and search on the specified
* data. Operational data that is not searchable is only viewable by users who have
* access to the OpsItem (as provided by the <a>GetOpsItem</a> API action).</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 AWS
* CLI example commands that use these keys, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-creating-OpsItems.html#OpsCenter-manually-create-OpsItems">Creating
* OpsItems manually</a> in the <i>AWS Systems Manager User Guide</i>.</p>
*/
inline CreateOpsItemRequest& AddOperationalData(const Aws::String& key, const OpsItemDataValue& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(key, 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: amazon, aws, amzn, ssm, /amazon, /aws,
* /amzn, /ssm.</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 action) can view and search on the specified
* data. Operational data that is not searchable is only viewable by users who have
* access to the OpsItem (as provided by the <a>GetOpsItem</a> API action).</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 AWS
* CLI example commands that use these keys, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-creating-OpsItems.html#OpsCenter-manually-create-OpsItems">Creating
* OpsItems manually</a> in the <i>AWS Systems Manager User Guide</i>.</p>
*/
inline CreateOpsItemRequest& AddOperationalData(Aws::String&& key, const OpsItemDataValue& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(std::move(key), 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: amazon, aws, amzn, ssm, /amazon, /aws,
* /amzn, /ssm.</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 action) can view and search on the specified
* data. Operational data that is not searchable is only viewable by users who have
* access to the OpsItem (as provided by the <a>GetOpsItem</a> API action).</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 AWS
* CLI example commands that use these keys, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-creating-OpsItems.html#OpsCenter-manually-create-OpsItems">Creating
* OpsItems manually</a> in the <i>AWS Systems Manager User Guide</i>.</p>
*/
inline CreateOpsItemRequest& AddOperationalData(const Aws::String& key, OpsItemDataValue&& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(key, std::move(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: amazon, aws, amzn, ssm, /amazon, /aws,
* /amzn, /ssm.</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 action) can view and search on the specified
* data. Operational data that is not searchable is only viewable by users who have
* access to the OpsItem (as provided by the <a>GetOpsItem</a> API action).</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 AWS
* CLI example commands that use these keys, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-creating-OpsItems.html#OpsCenter-manually-create-OpsItems">Creating
* OpsItems manually</a> in the <i>AWS Systems Manager User Guide</i>.</p>
*/
inline CreateOpsItemRequest& AddOperationalData(Aws::String&& key, OpsItemDataValue&& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(std::move(key), std::move(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: amazon, aws, amzn, ssm, /amazon, /aws,
* /amzn, /ssm.</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 action) can view and search on the specified
* data. Operational data that is not searchable is only viewable by users who have
* access to the OpsItem (as provided by the <a>GetOpsItem</a> API action).</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 AWS
* CLI example commands that use these keys, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-creating-OpsItems.html#OpsCenter-manually-create-OpsItems">Creating
* OpsItems manually</a> in the <i>AWS Systems Manager User Guide</i>.</p>
*/
inline CreateOpsItemRequest& AddOperationalData(const char* key, OpsItemDataValue&& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(key, std::move(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: amazon, aws, amzn, ssm, /amazon, /aws,
* /amzn, /ssm.</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 action) can view and search on the specified
* data. Operational data that is not searchable is only viewable by users who have
* access to the OpsItem (as provided by the <a>GetOpsItem</a> API action).</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 AWS
* CLI example commands that use these keys, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-creating-OpsItems.html#OpsCenter-manually-create-OpsItems">Creating
* OpsItems manually</a> in the <i>AWS Systems Manager User Guide</i>.</p>
*/
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; }
/**
* <p>The Amazon Resource Name (ARN) of an SNS topic where notifications are sent
* when this OpsItem is edited or changed.</p>
*/
inline bool NotificationsHasBeenSet() const { return m_notificationsHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of an SNS topic where notifications are sent
* when this OpsItem is edited or changed.</p>
*/
inline void SetNotifications(const Aws::Vector<OpsItemNotification>& value) { m_notificationsHasBeenSet = true; m_notifications = value; }
/**
* <p>The Amazon Resource Name (ARN) of an SNS topic where notifications are sent
* when this OpsItem is edited or changed.</p>
*/
inline void SetNotifications(Aws::Vector<OpsItemNotification>&& value) { m_notificationsHasBeenSet = true; m_notifications = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of an SNS topic where notifications are sent
* when this OpsItem is edited or changed.</p>
*/
inline CreateOpsItemRequest& WithNotifications(const Aws::Vector<OpsItemNotification>& value) { SetNotifications(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 CreateOpsItemRequest& WithNotifications(Aws::Vector<OpsItemNotification>&& value) { SetNotifications(std::move(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 CreateOpsItemRequest& AddNotifications(const OpsItemNotification& value) { m_notificationsHasBeenSet = true; m_notifications.push_back(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 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; }
/**
* <p>The importance of this OpsItem in relation to other OpsItems in the
* system.</p>
*/
inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
/**
* <p>The importance of this OpsItem in relation to other OpsItems in the
* system.</p>
*/
inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
/**
* <p>The importance of this OpsItem in relation to other OpsItems in the
* system.</p>
*/
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; }
/**
* <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 bool RelatedOpsItemsHasBeenSet() const { return m_relatedOpsItemsHasBeenSet; }
/**
* <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 void SetRelatedOpsItems(const Aws::Vector<RelatedOpsItem>& value) { m_relatedOpsItemsHasBeenSet = true; m_relatedOpsItems = value; }
/**
* <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 void SetRelatedOpsItems(Aws::Vector<RelatedOpsItem>&& value) { m_relatedOpsItemsHasBeenSet = true; m_relatedOpsItems = std::move(value); }
/**
* <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 CreateOpsItemRequest& WithRelatedOpsItems(const Aws::Vector<RelatedOpsItem>& value) { SetRelatedOpsItems(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 CreateOpsItemRequest& WithRelatedOpsItems(Aws::Vector<RelatedOpsItem>&& value) { SetRelatedOpsItems(std::move(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 CreateOpsItemRequest& AddRelatedOpsItems(const RelatedOpsItem& value) { m_relatedOpsItemsHasBeenSet = true; m_relatedOpsItems.push_back(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 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: aws, amazon, and amzn.
* </p>
*/
inline const Aws::String& GetSource() const{ return m_source; }
/**
* <p>The origin of the OpsItem, such as Amazon EC2 or Systems Manager.</p>
* <p>The source name can't contain the following strings: aws, amazon, and amzn.
* </p>
*/
inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
/**
* <p>The origin of the OpsItem, such as Amazon EC2 or Systems Manager.</p>
* <p>The source name can't contain the following strings: aws, amazon, and amzn.
* </p>
*/
inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
/**
* <p>The origin of the OpsItem, such as Amazon EC2 or Systems Manager.</p>
* <p>The source name can't contain the following strings: aws, amazon, and amzn.
* </p>
*/
inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
/**
* <p>The origin of the OpsItem, such as Amazon EC2 or Systems Manager.</p>
* <p>The source name can't contain the following strings: aws, amazon, and amzn.
* </p>
*/
inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
/**
* <p>The origin of the OpsItem, such as Amazon EC2 or Systems Manager.</p>
* <p>The source name can't contain the following strings: aws, amazon, and amzn.
* </p>
*/
inline CreateOpsItemRequest& WithSource(const Aws::String& value) { SetSource(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: aws, amazon, and amzn.
* </p>
*/
inline CreateOpsItemRequest& WithSource(Aws::String&& value) { SetSource(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: aws, amazon, and amzn.
* </p>
*/
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; }
/**
* <p>A short heading that describes the nature of the OpsItem and the impacted
* resource.</p>
*/
inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
/**
* <p>A short heading that describes the nature of the OpsItem and the impacted
* resource.</p>
*/
inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
/**
* <p>A short heading that describes the nature of the OpsItem and the impacted
* resource.</p>
*/
inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
/**
* <p>A short heading that describes the nature of the OpsItem and the impacted
* resource.</p>
*/
inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
/**
* <p>A short heading that describes the nature of the OpsItem and the impacted
* resource.</p>
*/
inline CreateOpsItemRequest& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
/**
* <p>A short heading that describes the nature of the OpsItem and the impacted
* resource.</p>
*/
inline CreateOpsItemRequest& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
/**
* <p>A short heading that describes the nature of the OpsItem and the impacted
* resource.</p>
*/
inline CreateOpsItemRequest& WithTitle(const char* value) { SetTitle(value); return *this;}
/**
* <p>Optional metadata that you assign to a resource. You can restrict access to
* OpsItems by using an inline IAM policy that specifies tags. For more
* information, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-getting-started.html#OpsCenter-getting-started-user-permissions">Getting
* started with OpsCenter</a> in the <i>AWS Systems Manager User Guide</i>.</p>
* <p>Tags use a key-value pair. For example:</p> <p>
* <code>Key=Department,Value=Finance</code> </p> <p>To add tags to an
* existing OpsItem, use the <a>AddTagsToResource</a> action.</p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>Optional metadata that you assign to a resource. You can restrict access to
* OpsItems by using an inline IAM policy that specifies tags. For more
* information, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-getting-started.html#OpsCenter-getting-started-user-permissions">Getting
* started with OpsCenter</a> in the <i>AWS Systems Manager User Guide</i>.</p>
* <p>Tags use a key-value pair. For example:</p> <p>
* <code>Key=Department,Value=Finance</code> </p> <p>To add tags to an
* existing OpsItem, use the <a>AddTagsToResource</a> action.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>Optional metadata that you assign to a resource. You can restrict access to
* OpsItems by using an inline IAM policy that specifies tags. For more
* information, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-getting-started.html#OpsCenter-getting-started-user-permissions">Getting
* started with OpsCenter</a> in the <i>AWS Systems Manager User Guide</i>.</p>
* <p>Tags use a key-value pair. For example:</p> <p>
* <code>Key=Department,Value=Finance</code> </p> <p>To add tags to an
* existing OpsItem, use the <a>AddTagsToResource</a> action.</p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>Optional metadata that you assign to a resource. You can restrict access to
* OpsItems by using an inline IAM policy that specifies tags. For more
* information, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-getting-started.html#OpsCenter-getting-started-user-permissions">Getting
* started with OpsCenter</a> in the <i>AWS Systems Manager User Guide</i>.</p>
* <p>Tags use a key-value pair. For example:</p> <p>
* <code>Key=Department,Value=Finance</code> </p> <p>To add tags to an
* existing OpsItem, use the <a>AddTagsToResource</a> action.</p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>Optional metadata that you assign to a resource. You can restrict access to
* OpsItems by using an inline IAM policy that specifies tags. For more
* information, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-getting-started.html#OpsCenter-getting-started-user-permissions">Getting
* started with OpsCenter</a> in the <i>AWS Systems Manager User Guide</i>.</p>
* <p>Tags use a key-value pair. For example:</p> <p>
* <code>Key=Department,Value=Finance</code> </p> <p>To add tags to an
* existing OpsItem, use the <a>AddTagsToResource</a> action.</p>
*/
inline CreateOpsItemRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>Optional metadata that you assign to a resource. You can restrict access to
* OpsItems by using an inline IAM policy that specifies tags. For more
* information, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-getting-started.html#OpsCenter-getting-started-user-permissions">Getting
* started with OpsCenter</a> in the <i>AWS Systems Manager User Guide</i>.</p>
* <p>Tags use a key-value pair. For example:</p> <p>
* <code>Key=Department,Value=Finance</code> </p> <p>To add tags to an
* existing OpsItem, use the <a>AddTagsToResource</a> action.</p>
*/
inline CreateOpsItemRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>Optional metadata that you assign to a resource. You can restrict access to
* OpsItems by using an inline IAM policy that specifies tags. For more
* information, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-getting-started.html#OpsCenter-getting-started-user-permissions">Getting
* started with OpsCenter</a> in the <i>AWS Systems Manager User Guide</i>.</p>
* <p>Tags use a key-value pair. For example:</p> <p>
* <code>Key=Department,Value=Finance</code> </p> <p>To add tags to an
* existing OpsItem, use the <a>AddTagsToResource</a> action.</p>
*/
inline CreateOpsItemRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>Optional metadata that you assign to a resource. You can restrict access to
* OpsItems by using an inline IAM policy that specifies tags. For more
* information, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-getting-started.html#OpsCenter-getting-started-user-permissions">Getting
* started with OpsCenter</a> in the <i>AWS Systems Manager User Guide</i>.</p>
* <p>Tags use a key-value pair. For example:</p> <p>
* <code>Key=Department,Value=Finance</code> </p> <p>To add tags to an
* existing OpsItem, use the <a>AddTagsToResource</a> action.</p>
*/
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; }
/**
* <p>Specify a category to assign to an OpsItem. </p>
*/
inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
/**
* <p>Specify a category to assign to an OpsItem. </p>
*/
inline void SetCategory(const Aws::String& value) { m_categoryHasBeenSet = true; m_category = value; }
/**
* <p>Specify a category to assign to an OpsItem. </p>
*/
inline void SetCategory(Aws::String&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); }
/**
* <p>Specify a category to assign to an OpsItem. </p>
*/
inline void SetCategory(const char* value) { m_categoryHasBeenSet = true; m_category.assign(value); }
/**
* <p>Specify a category to assign to an OpsItem. </p>
*/
inline CreateOpsItemRequest& WithCategory(const Aws::String& value) { SetCategory(value); return *this;}
/**
* <p>Specify a category to assign to an OpsItem. </p>
*/
inline CreateOpsItemRequest& WithCategory(Aws::String&& value) { SetCategory(std::move(value)); return *this;}
/**
* <p>Specify a category to assign to an OpsItem. </p>
*/
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; }
/**
* <p>Specify a severity to assign to an OpsItem.</p>
*/
inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
/**
* <p>Specify a severity to assign to an OpsItem.</p>
*/
inline void SetSeverity(const Aws::String& value) { m_severityHasBeenSet = true; m_severity = value; }
/**
* <p>Specify a severity to assign to an OpsItem.</p>
*/
inline void SetSeverity(Aws::String&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
/**
* <p>Specify a severity to assign to an OpsItem.</p>
*/
inline void SetSeverity(const char* value) { m_severityHasBeenSet = true; m_severity.assign(value); }
/**
* <p>Specify a severity to assign to an OpsItem.</p>
*/
inline CreateOpsItemRequest& WithSeverity(const Aws::String& value) { SetSeverity(value); return *this;}
/**
* <p>Specify a severity to assign to an OpsItem.</p>
*/
inline CreateOpsItemRequest& WithSeverity(Aws::String&& value) { SetSeverity(std::move(value)); return *this;}
/**
* <p>Specify a severity to assign to an OpsItem.</p>
*/
inline CreateOpsItemRequest& WithSeverity(const char* value) { SetSeverity(value); return *this;}
private:
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::Map<Aws::String, OpsItemDataValue> m_operationalData;
bool m_operationalDataHasBeenSet;
Aws::Vector<OpsItemNotification> m_notifications;
bool m_notificationsHasBeenSet;
int m_priority;
bool m_priorityHasBeenSet;
Aws::Vector<RelatedOpsItem> m_relatedOpsItems;
bool m_relatedOpsItemsHasBeenSet;
Aws::String m_source;
bool m_sourceHasBeenSet;
Aws::String m_title;
bool m_titleHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
Aws::String m_category;
bool m_categoryHasBeenSet;
Aws::String m_severity;
bool m_severityHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws