@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class NotificationConfig extends Object implements Serializable, Cloneable, StructuredPojo
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 an Amazon Simple Notification Service (Amazon SNS) topic.
|
List<String> |
getNotificationEvents()
The different events for which you can receive notifications.
|
String |
getNotificationType()
The type of notification.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setNotificationArn(String notificationArn)
An Amazon Resource Name (ARN) for an Amazon Simple Notification Service (Amazon SNS) topic.
|
void |
setNotificationEvents(Collection<String> notificationEvents)
The different events for which you can receive notifications.
|
void |
setNotificationType(NotificationType notificationType)
The type of notification.
|
void |
setNotificationType(String notificationType)
The type of notification.
|
String |
toString()
Returns a string representation of this object.
|
NotificationConfig |
withNotificationArn(String notificationArn)
An Amazon Resource Name (ARN) for an Amazon Simple Notification Service (Amazon 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)
The type of notification.
|
NotificationConfig |
withNotificationType(String notificationType)
The type of notification.
|
public void setNotificationArn(String 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.
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 String getNotificationArn()
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 NotificationConfig withNotificationArn(String 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.
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 List<String> getNotificationEvents()
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.
NotificationEvent
public void setNotificationEvents(Collection<String> 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.
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.NotificationEvent
public NotificationConfig withNotificationEvents(String... 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.
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. 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.NotificationEvent
public NotificationConfig withNotificationEvents(Collection<String> 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.
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.NotificationEvent
public NotificationConfig withNotificationEvents(NotificationEvent... 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.
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.NotificationEvent
public void setNotificationType(String notificationType)
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.
notificationType
- 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.
NotificationType
public String getNotificationType()
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.
NotificationType
public NotificationConfig withNotificationType(String notificationType)
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.
notificationType
- 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.
NotificationType
public void setNotificationType(NotificationType notificationType)
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.
notificationType
- 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.
NotificationType
public NotificationConfig withNotificationType(NotificationType notificationType)
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.
notificationType
- 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.
NotificationType
public String toString()
toString
in class Object
Object.toString()
public NotificationConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.