/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.simplesystemsmanagement.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Configurations for sending notifications. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class NotificationConfig implements Serializable, Cloneable, StructuredPojo { /** ** 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. *
*/ private String notificationArn; /** ** 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. *
*/ private com.amazonaws.internal.SdkInternalList* 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.
*
* 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. *
* * @param 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. */ public void setNotificationArn(String notificationArn) { this.notificationArn = 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. *
* * @return 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. */ public String getNotificationArn() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public NotificationConfig withNotificationArn(String notificationArn) { setNotificationArn(notificationArn); 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. *
* * @return 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. * @see NotificationEvent */ public java.util.List* 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. *
* * @param notificationEvents * 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. * @see NotificationEvent */ public void setNotificationEvents(java.util.Collection* 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. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setNotificationEvents(java.util.Collection)} or {@link #withNotificationEvents(java.util.Collection)} if * you want to override the existing values. *
* * @param notificationEvents * 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. * @return Returns a reference to this object so that method calls can be chained together. * @see NotificationEvent */ public NotificationConfig withNotificationEvents(String... notificationEvents) { if (this.notificationEvents == null) { setNotificationEvents(new com.amazonaws.internal.SdkInternalList* 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. *
* * @param notificationEvents * 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. * @return Returns a reference to this object so that method calls can be chained together. * @see NotificationEvent */ public NotificationConfig withNotificationEvents(java.util.Collection* 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. *
* * @param notificationEvents * 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. * @return Returns a reference to this object so that method calls can be chained together. * @see NotificationEvent */ public NotificationConfig withNotificationEvents(NotificationEvent... notificationEvents) { com.amazonaws.internal.SdkInternalList* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*