public class VaultNotificationConfig extends Object implements Serializable
Represents a vault's notification configuration.
Constructor and Description |
---|
VaultNotificationConfig()
Default constructor for a new VaultNotificationConfig object.
|
VaultNotificationConfig(String sNSTopic,
List<String> events)
Constructs a new VaultNotificationConfig object.
|
Modifier and Type | Method and Description |
---|---|
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 String getSNSTopic()
public void setSNSTopic(String sNSTopic)
sNSTopic
- The Amazon Simple Notification Service (Amazon SNS) topic Amazon
Resource Name (ARN).public VaultNotificationConfig withSNSTopic(String sNSTopic)
Returns a reference to this object so that method calls can be chained together.
sNSTopic
- The Amazon Simple Notification Service (Amazon SNS) topic Amazon
Resource Name (ARN).public List<String> getEvents()
public void setEvents(Collection<String> events)
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)
Returns a reference to this object so that method calls can be chained together.
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)
Returns a reference to this object so that method calls can be chained together.
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()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.