public class EventSubscription extends Object implements Serializable, Cloneable
This data type is used in the Subscription data type.
Constructor and Description |
---|
EventSubscription() |
Modifier and Type | Method and Description |
---|---|
EventSubscription |
clone() |
boolean |
equals(Object obj) |
String |
getEvent()
The event for which Amazon Simple Notification Service (SNS)
notifications are sent.
|
Date |
getSubscribedAt()
The time at which the SubscribeToEvent API is called.
|
int |
hashCode() |
void |
setEvent(Event event)
The event for which Amazon Simple Notification Service (SNS)
notifications are sent.
|
void |
setEvent(String event)
The event for which Amazon Simple Notification Service (SNS)
notifications are sent.
|
void |
setSubscribedAt(Date subscribedAt)
The time at which the SubscribeToEvent API is called.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EventSubscription |
withEvent(Event event)
The event for which Amazon Simple Notification Service (SNS)
notifications are sent.
|
EventSubscription |
withEvent(String event)
The event for which Amazon Simple Notification Service (SNS)
notifications are sent.
|
EventSubscription |
withSubscribedAt(Date subscribedAt)
The time at which the SubscribeToEvent API is called.
|
public void setEvent(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.Event
public String getEvent()
The event for which Amazon Simple Notification Service (SNS) notifications are sent.
Event
public EventSubscription withEvent(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.Event
public void setEvent(Event 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.Event
public EventSubscription withEvent(Event 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.Event
public void setSubscribedAt(Date subscribedAt)
The time at which the SubscribeToEvent API is called.
subscribedAt
- The time at which the SubscribeToEvent API is called.public Date getSubscribedAt()
The time at which the SubscribeToEvent API is called.
public EventSubscription withSubscribedAt(Date subscribedAt)
The time at which the SubscribeToEvent API is called.
subscribedAt
- The time at which the SubscribeToEvent API is called.public String toString()
toString
in class Object
Object.toString()
public EventSubscription clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.