public void setTargets(java.util.Collection<TargetSummary> targets) {
        if (targets == null) {
            this.targets = null;
            return;
        }

        this.targets = new java.util.ArrayList<TargetSummary>(targets);
    }
<p>
A list of the Chatbot topics and Chatbot clients associated with the notification rule.
</p>

@param targets
       A list of the Chatbot topics and Chatbot clients associated with the notification rule.
aws-java-sdk-codestarnotifications/src/main/java/com/amazonaws/services/codestarnotifications/model/DescribeNotificationRuleResult.java