public class VaultNotificationConfig
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents a vault's notification configuration.
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.String> |
events
A list of one or more events for which Amazon Glacier will send a
notification to the specified Amazon SNS topic.
|
private java.lang.String |
sNSTopic
The Amazon Simple Notification Service (Amazon SNS) topic Amazon Resource
Name (ARN).
|
Constructor and Description |
---|
VaultNotificationConfig()
Default constructor for VaultNotificationConfig object.
|
VaultNotificationConfig(java.lang.String sNSTopic,
java.util.List<java.lang.String> events)
Constructs a new VaultNotificationConfig object.
|
Modifier and Type | Method and Description |
---|---|
VaultNotificationConfig |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getEvents()
A list of one or more events for which Amazon Glacier will send a
notification to the specified Amazon SNS topic.
|
java.lang.String |
getSNSTopic()
The Amazon Simple Notification Service (Amazon SNS) topic Amazon Resource
Name (ARN).
|
int |
hashCode() |
void |
setEvents(java.util.Collection<java.lang.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(java.lang.String sNSTopic)
The Amazon Simple Notification Service (Amazon SNS) topic Amazon Resource
Name (ARN).
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
VaultNotificationConfig |
withEvents(java.util.Collection<java.lang.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(java.lang.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(java.lang.String sNSTopic)
The Amazon Simple Notification Service (Amazon SNS) topic Amazon Resource
Name (ARN).
|
private java.lang.String sNSTopic
The Amazon Simple Notification Service (Amazon SNS) topic Amazon Resource Name (ARN).
private java.util.List<java.lang.String> events
A list of one or more events for which Amazon Glacier will send a notification to the specified Amazon SNS topic.
public VaultNotificationConfig()
public VaultNotificationConfig(java.lang.String sNSTopic, java.util.List<java.lang.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(java.lang.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 java.lang.String getSNSTopic()
The Amazon Simple Notification Service (Amazon SNS) topic Amazon Resource Name (ARN).
public VaultNotificationConfig withSNSTopic(java.lang.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 java.util.List<java.lang.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(java.util.Collection<java.lang.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(java.lang.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(java.util.Collection<java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public VaultNotificationConfig clone()
clone
in class java.lang.Object