Class VaultNotificationConfig
- All Implemented Interfaces:
Serializable
,Cloneable
Represents a vault's notification configuration.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for VaultNotificationConfig object.VaultNotificationConfig
(String sNSTopic, List<String> events) Constructs a new VaultNotificationConfig object. -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
A list of one or more events for which Amazon Glacier will send a notification to the specified Amazon SNS topic.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).toString()
Returns a string representation of this object; useful for testing and debugging.withEvents
(String... events) A list of one or more events for which Amazon Glacier will send a notification to the specified Amazon SNS topic.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.withSNSTopic
(String sNSTopic) The Amazon Simple Notification Service (Amazon SNS) topic Amazon Resource Name (ARN).
-
Constructor Details
-
VaultNotificationConfig
public VaultNotificationConfig()Default constructor for VaultNotificationConfig object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it. -
VaultNotificationConfig
Constructs a new VaultNotificationConfig object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
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.
-
-
Method Details
-
setSNSTopic
The Amazon Simple Notification Service (Amazon SNS) topic Amazon Resource Name (ARN).
- Parameters:
sNSTopic
- The Amazon Simple Notification Service (Amazon SNS) topic Amazon Resource Name (ARN).
-
getSNSTopic
The Amazon Simple Notification Service (Amazon SNS) topic Amazon Resource Name (ARN).
- Returns:
- The Amazon Simple Notification Service (Amazon SNS) topic Amazon Resource Name (ARN).
-
withSNSTopic
The Amazon Simple Notification Service (Amazon SNS) topic Amazon Resource Name (ARN).
- Parameters:
sNSTopic
- The Amazon Simple Notification Service (Amazon SNS) topic Amazon Resource Name (ARN).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getEvents
A list of one or more events for which Amazon Glacier will send a notification to the specified Amazon SNS topic.
- Returns:
- A list of one or more events for which Amazon Glacier will send a notification to the specified Amazon SNS topic.
-
setEvents
A list of one or more events for which Amazon Glacier will send a notification to the specified Amazon SNS topic.
- Parameters:
events
- A list of one or more events for which Amazon Glacier will send a notification to the specified Amazon SNS topic.
-
withEvents
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)
orwithEvents(java.util.Collection)
if you want to override the existing values.- Parameters:
events
- A list of one or more events for which Amazon Glacier will send a notification to the specified Amazon SNS topic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withEvents
A list of one or more events for which Amazon Glacier will send a notification to the specified Amazon SNS topic.
- Parameters:
events
- A list of one or more events for which Amazon Glacier will send a notification to the specified Amazon SNS topic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-