public CreateContactRequest withTopicPreferences(java.util.Collection<TopicPreference> topicPreferences) {
        setTopicPreferences(topicPreferences);
        return this;
    }
<p>
The contact's preferences for being opted-in to or opted-out of topics.
</p>

@param topicPreferences
       The contact's preferences for being opted-in to or opted-out of topics.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sesv2/src/main/java/com/amazonaws/services/simpleemailv2/model/CreateContactRequest.java