Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.glacier.model
Class VaultNotificationConfig

java.lang.Object
  extended by com.amazonaws.services.glacier.model.VaultNotificationConfig
All Implemented Interfaces:
Serializable

public class VaultNotificationConfig
extends Object
implements Serializable

Represents a vault's notification configuration.

See Also:
Serialized Form

Constructor Summary
VaultNotificationConfig()
          Default constructor for a new VaultNotificationConfig object.
VaultNotificationConfig(String sNSTopic, List<String> events)
          Constructs a new VaultNotificationConfig object.
 
Method Summary
 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).
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VaultNotificationConfig

public VaultNotificationConfig()
Default constructor for a new VaultNotificationConfig object. Callers should use the setter or fluent setter (with...) methods to initialize this 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

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).

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).

withSNSTopic

public VaultNotificationConfig withSNSTopic(String sNSTopic)
The Amazon Simple Notification Service (Amazon SNS) topic Amazon Resource Name (ARN).

Returns a reference to this object so that method calls can be chained together.

Parameters:
sNSTopic - The Amazon Simple Notification Service (Amazon SNS) topic Amazon Resource Name (ARN).
Returns:
A reference to this updated 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
events - A list of one or more events for which Amazon Glacier will send a notification to the specified Amazon SNS topic.
Returns:
A reference to this updated 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
events - A list of one or more events for which Amazon Glacier will send a notification to the specified Amazon SNS topic.
Returns:
A reference to this updated 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 class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.