Class VaultNotificationConfig
- java.lang.Object
-
- com.amazonaws.services.glacier.model.VaultNotificationConfig
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class VaultNotificationConfig extends Object implements Serializable, Cloneable
Represents a vault's notification configuration.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VaultNotificationConfig()
Default constructor for VaultNotificationConfig object.VaultNotificationConfig(String sNSTopic, List<String> events)
Constructs a new VaultNotificationConfig object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(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(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
withSNSTopic(String sNSTopic)
The Amazon Simple Notification Service (Amazon SNS) topic Amazon Resource Name (ARN).
-
-
-
Constructor Detail
-
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
public VaultNotificationConfig(String sNSTopic, List<String> events)
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 Detail
-
setSNSTopic
public void setSNSTopic(String sNSTopic)
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
public String 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
public VaultNotificationConfig withSNSTopic(String sNSTopic)
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
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.
- Returns:
- A list of one or more events for which Amazon Glacier will send a notification to the specified Amazon SNS topic.
-
setEvents
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.
- Parameters:
events
- A list of one or more events for which Amazon Glacier will send a notification to the specified Amazon SNS topic.
-
withEvents
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)
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
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.
- 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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public VaultNotificationConfig clone()
-
-