/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Configurations for sending notifications.See Also:
AWS
* API Reference
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; } /** *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 bool NotificationArnHasBeenSet() const { return m_notificationArnHasBeenSet; } /** *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 void SetNotificationArn(const Aws::String& value) { m_notificationArnHasBeenSet = true; m_notificationArn = value; } /** *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 void SetNotificationArn(Aws::String&& value) { m_notificationArnHasBeenSet = true; m_notificationArn = std::move(value); } /** *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 void SetNotificationArn(const char* value) { m_notificationArnHasBeenSet = true; m_notificationArn.assign(value); } /** *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 NotificationConfig& WithNotificationArn(const Aws::String& value) { SetNotificationArn(value); return *this;} /** *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 NotificationConfig& WithNotificationArn(Aws::String&& value) { SetNotificationArn(std::move(value)); return *this;} /** *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 NotificationConfig& WithNotificationArn(const char* value) { SetNotificationArn(value); return *this;} /** *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 Monitoring * Systems Manager status changes using Amazon SNS notifications in the AWS * Systems Manager User Guide.
*/ inline const Aws::VectorThe 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 Monitoring * Systems Manager status changes using Amazon SNS notifications in the AWS * Systems Manager User Guide.
*/ inline bool NotificationEventsHasBeenSet() const { return m_notificationEventsHasBeenSet; } /** *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 Monitoring * Systems Manager status changes using Amazon SNS notifications in the AWS * Systems Manager User Guide.
*/ inline void SetNotificationEvents(const Aws::VectorThe 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 Monitoring * Systems Manager status changes using Amazon SNS notifications in the AWS * Systems Manager User Guide.
*/ inline void SetNotificationEvents(Aws::VectorThe 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 Monitoring * Systems Manager status changes using Amazon SNS notifications in the AWS * Systems Manager User Guide.
*/ inline NotificationConfig& WithNotificationEvents(const Aws::VectorThe 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 Monitoring * Systems Manager status changes using Amazon SNS notifications in the AWS * Systems Manager User Guide.
*/ inline NotificationConfig& WithNotificationEvents(Aws::VectorThe 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 Monitoring * Systems Manager status changes using Amazon SNS notifications in the AWS * Systems Manager User Guide.
*/ inline NotificationConfig& AddNotificationEvents(const NotificationEvent& value) { m_notificationEventsHasBeenSet = true; m_notificationEvents.push_back(value); return *this; } /** *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 Monitoring * Systems Manager status changes using Amazon SNS notifications in the AWS * Systems Manager User Guide.
*/ inline NotificationConfig& AddNotificationEvents(NotificationEvent&& value) { m_notificationEventsHasBeenSet = true; m_notificationEvents.push_back(std::move(value)); return *this; } /** *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.
*/ inline const NotificationType& GetNotificationType() const{ return m_notificationType; } /** *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.
*/ inline bool NotificationTypeHasBeenSet() const { return m_notificationTypeHasBeenSet; } /** *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.
*/ inline void SetNotificationType(const NotificationType& value) { m_notificationTypeHasBeenSet = true; m_notificationType = value; } /** *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.
*/ inline void SetNotificationType(NotificationType&& value) { m_notificationTypeHasBeenSet = true; m_notificationType = std::move(value); } /** *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.
*/ inline NotificationConfig& WithNotificationType(const NotificationType& value) { SetNotificationType(value); return *this;} /** *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.
*/ inline NotificationConfig& WithNotificationType(NotificationType&& value) { SetNotificationType(std::move(value)); return *this;} private: Aws::String m_notificationArn; bool m_notificationArnHasBeenSet; Aws::Vector