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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EventSubscription()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 SubscribeToEvent is called.int
hashCode()
void
setEvent(InspectorEvent 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 SubscribeToEvent is called.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(String event)
The event for which Amazon Simple Notification Service (SNS) notifications are sent.EventSubscription
withSubscribedAt(Date subscribedAt)
The time at which SubscribeToEvent is called.
-
-
-
Method Detail
-
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:
InspectorEvent
-
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:
InspectorEvent
-
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:
InspectorEvent
-
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:
InspectorEvent
-
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:
InspectorEvent
-
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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public EventSubscription clone()
-
-