Class EventSubscription

java.lang.Object
com.amazonaws.services.inspector.model.EventSubscription
All Implemented Interfaces:
Serializable, Cloneable

public class EventSubscription extends Object implements Serializable, Cloneable

This data type is used in the Subscription data type.

See Also:
  • Constructor Details

    • EventSubscription

      public EventSubscription()
  • Method Details

    • setEvent

      public void setEvent(String event)

      The event for which Amazon Simple Notification Service (SNS) notifications are sent.

      Parameters:
      event - The event for which Amazon Simple Notification Service (SNS) notifications are sent.
      See Also:
    • getEvent

      public String getEvent()

      The event for which Amazon Simple Notification Service (SNS) notifications are sent.

      Returns:
      The event for which Amazon Simple Notification Service (SNS) notifications are sent.
      See Also:
    • withEvent

      public EventSubscription withEvent(String event)

      The event for which Amazon Simple Notification Service (SNS) notifications are sent.

      Parameters:
      event - The event for which Amazon Simple Notification Service (SNS) notifications are sent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setEvent

      public void setEvent(InspectorEvent event)

      The event for which Amazon Simple Notification Service (SNS) notifications are sent.

      Parameters:
      event - The event for which Amazon Simple Notification Service (SNS) notifications are sent.
      See Also:
    • withEvent

      public EventSubscription withEvent(InspectorEvent event)

      The event for which Amazon Simple Notification Service (SNS) notifications are sent.

      Parameters:
      event - The event for which Amazon Simple Notification Service (SNS) notifications are sent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setSubscribedAt

      public void setSubscribedAt(Date subscribedAt)

      The time at which SubscribeToEvent is called.

      Parameters:
      subscribedAt - The time at which SubscribeToEvent is called.
    • getSubscribedAt

      public Date getSubscribedAt()

      The time at which SubscribeToEvent is called.

      Returns:
      The time at which SubscribeToEvent is called.
    • withSubscribedAt

      public EventSubscription withSubscribedAt(Date subscribedAt)

      The time at which SubscribeToEvent is called.

      Parameters:
      subscribedAt - The time at which SubscribeToEvent is called.
      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 EventSubscription clone()
      Overrides:
      clone in class Object