Class Subscription
- java.lang.Object
-
- com.amazonaws.services.inspector.model.Subscription
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Subscription extends Object implements Serializable, Cloneable
This data type is used as a response element in the ListEventSubscriptions action.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Subscription()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Subscriptionclone()booleanequals(Object obj)List<EventSubscription>getEventSubscriptions()The list of existing event subscriptions.StringgetResourceArn()The ARN of the assessment template that is used during the event for which the SNS notification is sent.StringgetTopicArn()The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.inthashCode()voidsetEventSubscriptions(Collection<EventSubscription> eventSubscriptions)The list of existing event subscriptions.voidsetResourceArn(String resourceArn)The ARN of the assessment template that is used during the event for which the SNS notification is sent.voidsetTopicArn(String topicArn)The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.StringtoString()Returns a string representation of this object; useful for testing and debugging.SubscriptionwithEventSubscriptions(EventSubscription... eventSubscriptions)The list of existing event subscriptions.SubscriptionwithEventSubscriptions(Collection<EventSubscription> eventSubscriptions)The list of existing event subscriptions.SubscriptionwithResourceArn(String resourceArn)The ARN of the assessment template that is used during the event for which the SNS notification is sent.SubscriptionwithTopicArn(String topicArn)The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.
-
-
-
Method Detail
-
setResourceArn
public void setResourceArn(String resourceArn)
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
public String 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
public Subscription withResourceArn(String resourceArn)
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
public void setTopicArn(String topicArn)
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
public String 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
public Subscription withTopicArn(String topicArn)
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
public List<EventSubscription> getEventSubscriptions()
The list of existing event subscriptions.
- Returns:
- The list of existing event subscriptions.
-
setEventSubscriptions
public void setEventSubscriptions(Collection<EventSubscription> eventSubscriptions)
The list of existing event subscriptions.
- Parameters:
eventSubscriptions- The list of existing event subscriptions.
-
withEventSubscriptions
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)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
public Subscription withEventSubscriptions(Collection<EventSubscription> eventSubscriptions)
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
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 Subscription clone()
-
-