public class EventSubscription
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
This data type is used in the Subscription data type.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
event
The event for which Amazon Simple Notification Service (SNS)
notifications are sent.
|
private java.util.Date |
subscribedAt
The time at which SubscribeToEvent is called.
|
Constructor and Description |
---|
EventSubscription() |
Modifier and Type | Method and Description |
---|---|
EventSubscription |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getEvent()
The event for which Amazon Simple Notification Service (SNS)
notifications are sent.
|
java.util.Date |
getSubscribedAt()
The time at which SubscribeToEvent is called.
|
int |
hashCode() |
void |
setEvent(InspectorEvent event)
The event for which Amazon Simple Notification Service (SNS)
notifications are sent.
|
void |
setEvent(java.lang.String event)
The event for which Amazon Simple Notification Service (SNS)
notifications are sent.
|
void |
setSubscribedAt(java.util.Date subscribedAt)
The time at which SubscribeToEvent is called.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EventSubscription |
withEvent(InspectorEvent event)
The event for which Amazon Simple Notification Service (SNS)
notifications are sent.
|
EventSubscription |
withEvent(java.lang.String event)
The event for which Amazon Simple Notification Service (SNS)
notifications are sent.
|
EventSubscription |
withSubscribedAt(java.util.Date subscribedAt)
The time at which SubscribeToEvent is called.
|
private java.lang.String event
The event for which Amazon Simple Notification Service (SNS) notifications are sent.
private java.util.Date subscribedAt
The time at which SubscribeToEvent is called.
public void setEvent(java.lang.String event)
The event for which Amazon Simple Notification Service (SNS) notifications are sent.
event
- The event for which Amazon Simple Notification Service (SNS)
notifications are sent.InspectorEvent
public java.lang.String getEvent()
The event for which Amazon Simple Notification Service (SNS) notifications are sent.
InspectorEvent
public EventSubscription withEvent(java.lang.String event)
The event for which Amazon Simple Notification Service (SNS) notifications are sent.
event
- The event for which Amazon Simple Notification Service (SNS)
notifications are sent.InspectorEvent
public void setEvent(InspectorEvent event)
The event for which Amazon Simple Notification Service (SNS) notifications are sent.
event
- The event for which Amazon Simple Notification Service (SNS)
notifications are sent.InspectorEvent
public EventSubscription withEvent(InspectorEvent event)
The event for which Amazon Simple Notification Service (SNS) notifications are sent.
event
- The event for which Amazon Simple Notification Service (SNS)
notifications are sent.InspectorEvent
public void setSubscribedAt(java.util.Date subscribedAt)
The time at which SubscribeToEvent is called.
subscribedAt
- The time at which SubscribeToEvent is called.public java.util.Date getSubscribedAt()
The time at which SubscribeToEvent is called.
public EventSubscription withSubscribedAt(java.util.Date subscribedAt)
The time at which SubscribeToEvent is called.
subscribedAt
- The time at which SubscribeToEvent is called.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public EventSubscription clone()
clone
in class java.lang.Object