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 EventSubscriptionclone()booleanequals(Object obj)StringgetEvent()The event for which Amazon Simple Notification Service (SNS) notifications are sent.DategetSubscribedAt()The time at which SubscribeToEvent is called.inthashCode()voidsetEvent(InspectorEvent event)The event for which Amazon Simple Notification Service (SNS) notifications are sent.voidsetEvent(String event)The event for which Amazon Simple Notification Service (SNS) notifications are sent.voidsetSubscribedAt(Date subscribedAt)The time at which SubscribeToEvent is called.StringtoString()Returns a string representation of this object; useful for testing and debugging.EventSubscriptionwithEvent(InspectorEvent event)The event for which Amazon Simple Notification Service (SNS) notifications are sent.EventSubscriptionwithEvent(String event)The event for which Amazon Simple Notification Service (SNS) notifications are sent.EventSubscriptionwithSubscribedAt(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public EventSubscription clone()
-
-