Class Subscription

    • Constructor Detail

      • Subscription

        public Subscription()
    • 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​(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:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object