public void setTopicPreferences(java.util.Collection<TopicPreference> topicPreferences) {
        if (topicPreferences == null) {
            this.topicPreferences = null;
            return;
        }

        this.topicPreferences = new java.util.ArrayList<TopicPreference>(topicPreferences);
    }
<p>
The contact's preference for being opted-in to or opted-out of a topic.&gt;
</p>

@param topicPreferences
       The contact's preference for being opted-in to or opted-out of a topic.&gt;
aws-java-sdk-sesv2/src/main/java/com/amazonaws/services/simpleemailv2/model/GetContactResult.java