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:
  • 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

      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 Details

    • 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) or withEvents(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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public VaultNotificationConfig clone()
      Overrides:
      clone in class Object