This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-ssm/include/aws/ssm/model/NotificationConfig.h

238 lines
11 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/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/ssm/model/NotificationType.h>
#include <aws/ssm/model/NotificationEvent.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
/**
* <p>Configurations for sending notifications.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/NotificationConfig">AWS
* API Reference</a></p>
*/
class AWS_SSM_API NotificationConfig
{
public:
NotificationConfig();
NotificationConfig(Aws::Utils::Json::JsonView jsonValue);
NotificationConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>An Amazon Resource Name (ARN) for an Amazon Simple Notification Service
* (Amazon SNS) topic. Run Command pushes notifications about command status
* changes to this topic.</p>
*/
inline const Aws::String& GetNotificationArn() const{ return m_notificationArn; }
/**
* <p>An Amazon Resource Name (ARN) for an Amazon Simple Notification Service
* (Amazon SNS) topic. Run Command pushes notifications about command status
* changes to this topic.</p>
*/
inline bool NotificationArnHasBeenSet() const { return m_notificationArnHasBeenSet; }
/**
* <p>An Amazon Resource Name (ARN) for an Amazon Simple Notification Service
* (Amazon SNS) topic. Run Command pushes notifications about command status
* changes to this topic.</p>
*/
inline void SetNotificationArn(const Aws::String& value) { m_notificationArnHasBeenSet = true; m_notificationArn = value; }
/**
* <p>An Amazon Resource Name (ARN) for an Amazon Simple Notification Service
* (Amazon SNS) topic. Run Command pushes notifications about command status
* changes to this topic.</p>
*/
inline void SetNotificationArn(Aws::String&& value) { m_notificationArnHasBeenSet = true; m_notificationArn = std::move(value); }
/**
* <p>An Amazon Resource Name (ARN) for an Amazon Simple Notification Service
* (Amazon SNS) topic. Run Command pushes notifications about command status
* changes to this topic.</p>
*/
inline void SetNotificationArn(const char* value) { m_notificationArnHasBeenSet = true; m_notificationArn.assign(value); }
/**
* <p>An Amazon Resource Name (ARN) for an Amazon Simple Notification Service
* (Amazon SNS) topic. Run Command pushes notifications about command status
* changes to this topic.</p>
*/
inline NotificationConfig& WithNotificationArn(const Aws::String& value) { SetNotificationArn(value); return *this;}
/**
* <p>An Amazon Resource Name (ARN) for an Amazon Simple Notification Service
* (Amazon SNS) topic. Run Command pushes notifications about command status
* changes to this topic.</p>
*/
inline NotificationConfig& WithNotificationArn(Aws::String&& value) { SetNotificationArn(std::move(value)); return *this;}
/**
* <p>An Amazon Resource Name (ARN) for an Amazon Simple Notification Service
* (Amazon SNS) topic. Run Command pushes notifications about command status
* changes to this topic.</p>
*/
inline NotificationConfig& WithNotificationArn(const char* value) { SetNotificationArn(value); return *this;}
/**
* <p>The different events for which you can receive notifications. These events
* include the following: All (events), InProgress, Success, TimedOut, Cancelled,
* Failed. To learn more about these events, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/monitoring-sns-notifications.html">Monitoring
* Systems Manager status changes using Amazon SNS notifications</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline const Aws::Vector<NotificationEvent>& GetNotificationEvents() const{ return m_notificationEvents; }
/**
* <p>The different events for which you can receive notifications. These events
* include the following: All (events), InProgress, Success, TimedOut, Cancelled,
* Failed. To learn more about these events, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/monitoring-sns-notifications.html">Monitoring
* Systems Manager status changes using Amazon SNS notifications</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline bool NotificationEventsHasBeenSet() const { return m_notificationEventsHasBeenSet; }
/**
* <p>The different events for which you can receive notifications. These events
* include the following: All (events), InProgress, Success, TimedOut, Cancelled,
* Failed. To learn more about these events, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/monitoring-sns-notifications.html">Monitoring
* Systems Manager status changes using Amazon SNS notifications</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline void SetNotificationEvents(const Aws::Vector<NotificationEvent>& value) { m_notificationEventsHasBeenSet = true; m_notificationEvents = value; }
/**
* <p>The different events for which you can receive notifications. These events
* include the following: All (events), InProgress, Success, TimedOut, Cancelled,
* Failed. To learn more about these events, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/monitoring-sns-notifications.html">Monitoring
* Systems Manager status changes using Amazon SNS notifications</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline void SetNotificationEvents(Aws::Vector<NotificationEvent>&& value) { m_notificationEventsHasBeenSet = true; m_notificationEvents = std::move(value); }
/**
* <p>The different events for which you can receive notifications. These events
* include the following: All (events), InProgress, Success, TimedOut, Cancelled,
* Failed. To learn more about these events, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/monitoring-sns-notifications.html">Monitoring
* Systems Manager status changes using Amazon SNS notifications</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline NotificationConfig& WithNotificationEvents(const Aws::Vector<NotificationEvent>& value) { SetNotificationEvents(value); return *this;}
/**
* <p>The different events for which you can receive notifications. These events
* include the following: All (events), InProgress, Success, TimedOut, Cancelled,
* Failed. To learn more about these events, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/monitoring-sns-notifications.html">Monitoring
* Systems Manager status changes using Amazon SNS notifications</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline NotificationConfig& WithNotificationEvents(Aws::Vector<NotificationEvent>&& value) { SetNotificationEvents(std::move(value)); return *this;}
/**
* <p>The different events for which you can receive notifications. These events
* include the following: All (events), InProgress, Success, TimedOut, Cancelled,
* Failed. To learn more about these events, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/monitoring-sns-notifications.html">Monitoring
* Systems Manager status changes using Amazon SNS notifications</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline NotificationConfig& AddNotificationEvents(const NotificationEvent& value) { m_notificationEventsHasBeenSet = true; m_notificationEvents.push_back(value); return *this; }
/**
* <p>The different events for which you can receive notifications. These events
* include the following: All (events), InProgress, Success, TimedOut, Cancelled,
* Failed. To learn more about these events, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/monitoring-sns-notifications.html">Monitoring
* Systems Manager status changes using Amazon SNS notifications</a> in the <i>AWS
* Systems Manager User Guide</i>.</p>
*/
inline NotificationConfig& AddNotificationEvents(NotificationEvent&& value) { m_notificationEventsHasBeenSet = true; m_notificationEvents.push_back(std::move(value)); return *this; }
/**
* <p>Command: Receive notification when the status of a command changes.
* Invocation: For commands sent to multiple instances, receive notification on a
* per-instance basis when the status of a command changes. </p>
*/
inline const NotificationType& GetNotificationType() const{ return m_notificationType; }
/**
* <p>Command: Receive notification when the status of a command changes.
* Invocation: For commands sent to multiple instances, receive notification on a
* per-instance basis when the status of a command changes. </p>
*/
inline bool NotificationTypeHasBeenSet() const { return m_notificationTypeHasBeenSet; }
/**
* <p>Command: Receive notification when the status of a command changes.
* Invocation: For commands sent to multiple instances, receive notification on a
* per-instance basis when the status of a command changes. </p>
*/
inline void SetNotificationType(const NotificationType& value) { m_notificationTypeHasBeenSet = true; m_notificationType = value; }
/**
* <p>Command: Receive notification when the status of a command changes.
* Invocation: For commands sent to multiple instances, receive notification on a
* per-instance basis when the status of a command changes. </p>
*/
inline void SetNotificationType(NotificationType&& value) { m_notificationTypeHasBeenSet = true; m_notificationType = std::move(value); }
/**
* <p>Command: Receive notification when the status of a command changes.
* Invocation: For commands sent to multiple instances, receive notification on a
* per-instance basis when the status of a command changes. </p>
*/
inline NotificationConfig& WithNotificationType(const NotificationType& value) { SetNotificationType(value); return *this;}
/**
* <p>Command: Receive notification when the status of a command changes.
* Invocation: For commands sent to multiple instances, receive notification on a
* per-instance basis when the status of a command changes. </p>
*/
inline NotificationConfig& WithNotificationType(NotificationType&& value) { SetNotificationType(std::move(value)); return *this;}
private:
Aws::String m_notificationArn;
bool m_notificationArnHasBeenSet;
Aws::Vector<NotificationEvent> m_notificationEvents;
bool m_notificationEventsHasBeenSet;
NotificationType m_notificationType;
bool m_notificationTypeHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws