Class Subscription
- All Implemented Interfaces:
Serializable
,Cloneable
This data type is used as a response element in the ListEventSubscriptions action.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The list of existing event subscriptions.The ARN of the assessment template that is used during the event for which the SNS notification is sent.The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.int
hashCode()
void
setEventSubscriptions
(Collection<EventSubscription> eventSubscriptions) The list of existing event subscriptions.void
setResourceArn
(String resourceArn) The ARN of the assessment template that is used during the event for which the SNS notification is sent.void
setTopicArn
(String topicArn) The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.toString()
Returns a string representation of this object; useful for testing and debugging.withEventSubscriptions
(EventSubscription... eventSubscriptions) The list of existing event subscriptions.withEventSubscriptions
(Collection<EventSubscription> eventSubscriptions) The list of existing event subscriptions.withResourceArn
(String resourceArn) The ARN of the assessment template that is used during the event for which the SNS notification is sent.withTopicArn
(String topicArn) The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.
-
Constructor Details
-
Subscription
public Subscription()
-
-
Method Details
-
setResourceArn
The ARN of the assessment template that is used during the event for which the SNS notification is sent.
- Parameters:
resourceArn
- The ARN of the assessment template that is used during the event for which the SNS notification is sent.
-
getResourceArn
The ARN of the assessment template that is used during the event for which the SNS notification is sent.
- Returns:
- The ARN of the assessment template that is used during the event for which the SNS notification is sent.
-
withResourceArn
The ARN of the assessment template that is used during the event for which the SNS notification is sent.
- Parameters:
resourceArn
- The ARN of the assessment template that is used during the event for which the SNS notification is sent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTopicArn
The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.
- Parameters:
topicArn
- The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.
-
getTopicArn
The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.
- Returns:
- The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.
-
withTopicArn
The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.
- Parameters:
topicArn
- The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getEventSubscriptions
The list of existing event subscriptions.
- Returns:
- The list of existing event subscriptions.
-
setEventSubscriptions
The list of existing event subscriptions.
- Parameters:
eventSubscriptions
- The list of existing event subscriptions.
-
withEventSubscriptions
The list of existing event subscriptions.
NOTE: This method appends the values to the existing list (if any). Use
setEventSubscriptions(java.util.Collection)
orwithEventSubscriptions(java.util.Collection)
if you want to override the existing values.- Parameters:
eventSubscriptions
- The list of existing event subscriptions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withEventSubscriptions
The list of existing event subscriptions.
- Parameters:
eventSubscriptions
- The list of existing event subscriptions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-