public class Subscription
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
This data type is used as a response element in the ListEventSubscriptions action.
Modifier and Type | Field and Description |
---|---|
private java.util.List<EventSubscription> |
eventSubscriptions
The list of existing event subscriptions.
|
private java.lang.String |
resourceArn
The ARN of the assessment template that is used during the event for
which the SNS notification is sent.
|
private java.lang.String |
topicArn
The ARN of the Amazon Simple Notification Service (SNS) topic to which
the SNS notifications are sent.
|
Constructor and Description |
---|
Subscription() |
Modifier and Type | Method and Description |
---|---|
Subscription |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<EventSubscription> |
getEventSubscriptions()
The list of existing event subscriptions.
|
java.lang.String |
getResourceArn()
The ARN of the assessment template that is used during the event for
which the SNS notification is sent.
|
java.lang.String |
getTopicArn()
The ARN of the Amazon Simple Notification Service (SNS) topic to which
the SNS notifications are sent.
|
int |
hashCode() |
void |
setEventSubscriptions(java.util.Collection<EventSubscription> eventSubscriptions)
The list of existing event subscriptions.
|
void |
setResourceArn(java.lang.String resourceArn)
The ARN of the assessment template that is used during the event for
which the SNS notification is sent.
|
void |
setTopicArn(java.lang.String topicArn)
The ARN of the Amazon Simple Notification Service (SNS) topic to which
the SNS notifications are sent.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Subscription |
withEventSubscriptions(java.util.Collection<EventSubscription> eventSubscriptions)
The list of existing event subscriptions.
|
Subscription |
withEventSubscriptions(EventSubscription... eventSubscriptions)
The list of existing event subscriptions.
|
Subscription |
withResourceArn(java.lang.String resourceArn)
The ARN of the assessment template that is used during the event for
which the SNS notification is sent.
|
Subscription |
withTopicArn(java.lang.String topicArn)
The ARN of the Amazon Simple Notification Service (SNS) topic to which
the SNS notifications are sent.
|
private java.lang.String resourceArn
The ARN of the assessment template that is used during the event for which the SNS notification is sent.
private java.lang.String topicArn
The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.
private java.util.List<EventSubscription> eventSubscriptions
The list of existing event subscriptions.
public void setResourceArn(java.lang.String resourceArn)
The ARN of the assessment template that is used during the event for which the SNS notification is sent.
resourceArn
- The ARN of the assessment template that is used during the event
for which the SNS notification is sent.public java.lang.String getResourceArn()
The ARN of the assessment template that is used during the event for which the SNS notification is sent.
public Subscription withResourceArn(java.lang.String resourceArn)
The ARN of the assessment template that is used during the event for which the SNS notification is sent.
resourceArn
- The ARN of the assessment template that is used during the event
for which the SNS notification is sent.public void setTopicArn(java.lang.String topicArn)
The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.
topicArn
- The ARN of the Amazon Simple Notification Service (SNS) topic to
which the SNS notifications are sent.public java.lang.String getTopicArn()
The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.
public Subscription withTopicArn(java.lang.String topicArn)
The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.
topicArn
- The ARN of the Amazon Simple Notification Service (SNS) topic to
which the SNS notifications are sent.public java.util.List<EventSubscription> getEventSubscriptions()
The list of existing event subscriptions.
public void setEventSubscriptions(java.util.Collection<EventSubscription> eventSubscriptions)
The list of existing event subscriptions.
eventSubscriptions
- The list of existing event subscriptions.public Subscription withEventSubscriptions(EventSubscription... eventSubscriptions)
The list of existing event subscriptions.
NOTE: This method appends the values to the existing list (if
any). Use setEventSubscriptions(java.util.Collection)
or
withEventSubscriptions(java.util.Collection)
if you want to
override the existing values.
eventSubscriptions
- The list of existing event subscriptions.public Subscription withEventSubscriptions(java.util.Collection<EventSubscription> eventSubscriptions)
The list of existing event subscriptions.
eventSubscriptions
- The list of existing event subscriptions.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 Subscription clone()
clone
in class java.lang.Object