@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class NotificationConfig extends Object implements Serializable, Cloneable
Configurations for sending notifications.
Constructor and Description |
---|
NotificationConfig() |
Modifier and Type | Method and Description |
---|---|
NotificationConfig |
clone() |
boolean |
equals(Object obj) |
String |
getNotificationArn()
An Amazon Resource Name (ARN) for a Simple Notification Service (SNS) topic.
|
List<String> |
getNotificationEvents()
The different events for which you can receive notifications.
|
String |
getNotificationType()
Command: Receive notification when the status of a command changes.
|
int |
hashCode() |
void |
setNotificationArn(String notificationArn)
An Amazon Resource Name (ARN) for a Simple Notification Service (SNS) topic.
|
void |
setNotificationEvents(Collection<String> notificationEvents)
The different events for which you can receive notifications.
|
void |
setNotificationType(NotificationType notificationType)
Command: Receive notification when the status of a command changes.
|
void |
setNotificationType(String notificationType)
Command: Receive notification when the status of a command changes.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
NotificationConfig |
withNotificationArn(String notificationArn)
An Amazon Resource Name (ARN) for a Simple Notification Service (SNS) topic.
|
NotificationConfig |
withNotificationEvents(Collection<String> notificationEvents)
The different events for which you can receive notifications.
|
NotificationConfig |
withNotificationEvents(NotificationEvent... notificationEvents)
The different events for which you can receive notifications.
|
NotificationConfig |
withNotificationEvents(String... notificationEvents)
The different events for which you can receive notifications.
|
NotificationConfig |
withNotificationType(NotificationType notificationType)
Command: Receive notification when the status of a command changes.
|
NotificationConfig |
withNotificationType(String notificationType)
Command: Receive notification when the status of a command changes.
|
public void setNotificationArn(String notificationArn)
An Amazon Resource Name (ARN) for a Simple Notification Service (SNS) topic. Run Command pushes notifications about command status changes to this topic.
notificationArn
- An Amazon Resource Name (ARN) for a Simple Notification Service (SNS) topic. Run Command pushes
notifications about command status changes to this topic.public String getNotificationArn()
An Amazon Resource Name (ARN) for a Simple Notification Service (SNS) topic. Run Command pushes notifications about command status changes to this topic.
public NotificationConfig withNotificationArn(String notificationArn)
An Amazon Resource Name (ARN) for a Simple Notification Service (SNS) topic. Run Command pushes notifications about command status changes to this topic.
notificationArn
- An Amazon Resource Name (ARN) for a Simple Notification Service (SNS) topic. Run Command pushes
notifications about command status changes to this topic.public List<String> getNotificationEvents()
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 Commands in the Amazon Elastic Compute Cloud User Guide .
NotificationEvent
public void setNotificationEvents(Collection<String> notificationEvents)
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 Commands in the Amazon Elastic Compute Cloud User Guide .
notificationEvents
- 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 Commands in
the Amazon Elastic Compute Cloud User Guide .NotificationEvent
public NotificationConfig withNotificationEvents(String... notificationEvents)
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 Commands in the Amazon Elastic Compute Cloud User Guide .
NOTE: This method appends the values to the existing list (if any). Use
setNotificationEvents(java.util.Collection)
or withNotificationEvents(java.util.Collection)
if
you want to override the existing values.
notificationEvents
- 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 Commands in
the Amazon Elastic Compute Cloud User Guide .NotificationEvent
public NotificationConfig withNotificationEvents(Collection<String> notificationEvents)
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 Commands in the Amazon Elastic Compute Cloud User Guide .
notificationEvents
- 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 Commands in
the Amazon Elastic Compute Cloud User Guide .NotificationEvent
public NotificationConfig withNotificationEvents(NotificationEvent... notificationEvents)
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 Commands in the Amazon Elastic Compute Cloud User Guide .
notificationEvents
- 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 Commands in
the Amazon Elastic Compute Cloud User Guide .NotificationEvent
public void setNotificationType(String 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.
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.NotificationType
public String getNotificationType()
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.
NotificationType
public NotificationConfig withNotificationType(String 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.
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.NotificationType
public void setNotificationType(NotificationType 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.
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.NotificationType
public NotificationConfig withNotificationType(NotificationType 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.
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.NotificationType
public String toString()
toString
in class Object
Object.toString()
public NotificationConfig clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.