public class VaultNotificationConfig extends Object implements Serializable, Cloneable
Represents a vault's notification configuration.
Constructor and Description |
---|
VaultNotificationConfig()
Default constructor for VaultNotificationConfig object.
|
VaultNotificationConfig(String sNSTopic,
List<String> events)
Constructs a new VaultNotificationConfig object.
|
Modifier and Type | Method and Description |
---|---|
VaultNotificationConfig |
clone() |
boolean |
equals(Object obj) |
List<String> |
getEvents()
A list of one or more events for which Amazon Glacier will send a
notification to the specified Amazon SNS topic.
|
String |
getSNSTopic()
The Amazon Simple Notification Service (Amazon SNS) topic Amazon Resource
Name (ARN).
|
int |
hashCode() |
void |
setEvents(Collection<String> events)
A list of one or more events for which Amazon Glacier will send a
notification to the specified Amazon SNS topic.
|
void |
setSNSTopic(String sNSTopic)
The Amazon Simple Notification Service (Amazon SNS) topic Amazon Resource
Name (ARN).
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
VaultNotificationConfig |
withEvents(Collection<String> events)
A list of one or more events for which Amazon Glacier will send a
notification to the specified Amazon SNS topic.
|
VaultNotificationConfig |
withEvents(String... events)
A list of one or more events for which Amazon Glacier will send a
notification to the specified Amazon SNS topic.
|
VaultNotificationConfig |
withSNSTopic(String sNSTopic)
The Amazon Simple Notification Service (Amazon SNS) topic Amazon Resource
Name (ARN).
|
public VaultNotificationConfig()
public VaultNotificationConfig(String sNSTopic, List<String> events)
sNSTopic
- The Amazon Simple Notification Service (Amazon SNS) topic Amazon
Resource Name (ARN).events
- A list of one or more events for which Amazon Glacier will send a
notification to the specified Amazon SNS topic.public void setSNSTopic(String sNSTopic)
The Amazon Simple Notification Service (Amazon SNS) topic Amazon Resource Name (ARN).
sNSTopic
- The Amazon Simple Notification Service (Amazon SNS) topic Amazon
Resource Name (ARN).public String getSNSTopic()
The Amazon Simple Notification Service (Amazon SNS) topic Amazon Resource Name (ARN).
public VaultNotificationConfig withSNSTopic(String sNSTopic)
The Amazon Simple Notification Service (Amazon SNS) topic Amazon Resource Name (ARN).
sNSTopic
- The Amazon Simple Notification Service (Amazon SNS) topic Amazon
Resource Name (ARN).public List<String> getEvents()
A list of one or more events for which Amazon Glacier will send a notification to the specified Amazon SNS topic.
public void setEvents(Collection<String> events)
A list of one or more events for which Amazon Glacier will send a notification to the specified Amazon SNS topic.
events
- A list of one or more events for which Amazon Glacier will send a
notification to the specified Amazon SNS topic.public VaultNotificationConfig withEvents(String... events)
A list of one or more events for which Amazon Glacier will send a notification to the specified Amazon SNS topic.
NOTE: This method appends the values to the existing list (if
any). Use setEvents(java.util.Collection)
or
withEvents(java.util.Collection)
if you want to override the
existing values.
events
- A list of one or more events for which Amazon Glacier will send a
notification to the specified Amazon SNS topic.public VaultNotificationConfig withEvents(Collection<String> events)
A list of one or more events for which Amazon Glacier will send a notification to the specified Amazon SNS topic.
events
- A list of one or more events for which Amazon Glacier will send a
notification to the specified Amazon SNS topic.public String toString()
toString
in class Object
Object.toString()
public VaultNotificationConfig clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.