/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SSM { namespace Model { /** *

Configurations for sending notifications.

See Also:

AWS * API Reference

*/ class NotificationConfig { public: AWS_SSM_API NotificationConfig(); AWS_SSM_API NotificationConfig(Aws::Utils::Json::JsonView jsonValue); AWS_SSM_API NotificationConfig& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const; ///@{ /** *

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.

*/ inline const Aws::String& GetNotificationArn() const{ return m_notificationArn; } inline bool NotificationArnHasBeenSet() const { return m_notificationArnHasBeenSet; } inline void SetNotificationArn(const Aws::String& value) { m_notificationArnHasBeenSet = true; m_notificationArn = value; } inline void SetNotificationArn(Aws::String&& value) { m_notificationArnHasBeenSet = true; m_notificationArn = std::move(value); } inline void SetNotificationArn(const char* value) { m_notificationArnHasBeenSet = true; m_notificationArn.assign(value); } inline NotificationConfig& WithNotificationArn(const Aws::String& value) { SetNotificationArn(value); return *this;} inline NotificationConfig& WithNotificationArn(Aws::String&& value) { SetNotificationArn(std::move(value)); return *this;} inline NotificationConfig& WithNotificationArn(const char* value) { SetNotificationArn(value); return *this;} ///@} ///@{ /** *

The different events for which you can receive notifications. To learn more * about these events, see Monitoring * Systems Manager status changes using Amazon SNS notifications in the * Amazon Web Services Systems Manager User Guide.

*/ inline const Aws::Vector& GetNotificationEvents() const{ return m_notificationEvents; } inline bool NotificationEventsHasBeenSet() const { return m_notificationEventsHasBeenSet; } inline void SetNotificationEvents(const Aws::Vector& value) { m_notificationEventsHasBeenSet = true; m_notificationEvents = value; } inline void SetNotificationEvents(Aws::Vector&& value) { m_notificationEventsHasBeenSet = true; m_notificationEvents = std::move(value); } inline NotificationConfig& WithNotificationEvents(const Aws::Vector& value) { SetNotificationEvents(value); return *this;} inline NotificationConfig& WithNotificationEvents(Aws::Vector&& value) { SetNotificationEvents(std::move(value)); return *this;} inline NotificationConfig& AddNotificationEvents(const NotificationEvent& value) { m_notificationEventsHasBeenSet = true; m_notificationEvents.push_back(value); return *this; } inline NotificationConfig& AddNotificationEvents(NotificationEvent&& value) { m_notificationEventsHasBeenSet = true; m_notificationEvents.push_back(std::move(value)); return *this; } ///@} ///@{ /** *

The type of notification.

  • Command: Receive * notification when the status of a command changes.

  • * Invocation: For commands sent to multiple managed nodes, receive * notification on a per-node basis when the status of a command changes.

    *
*/ inline const NotificationType& GetNotificationType() const{ return m_notificationType; } inline bool NotificationTypeHasBeenSet() const { return m_notificationTypeHasBeenSet; } inline void SetNotificationType(const NotificationType& value) { m_notificationTypeHasBeenSet = true; m_notificationType = value; } inline void SetNotificationType(NotificationType&& value) { m_notificationTypeHasBeenSet = true; m_notificationType = std::move(value); } inline NotificationConfig& WithNotificationType(const NotificationType& value) { SetNotificationType(value); return *this;} inline NotificationConfig& WithNotificationType(NotificationType&& value) { SetNotificationType(std::move(value)); return *this;} ///@} private: Aws::String m_notificationArn; bool m_notificationArnHasBeenSet = false; Aws::Vector m_notificationEvents; bool m_notificationEventsHasBeenSet = false; NotificationType m_notificationType; bool m_notificationTypeHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws