/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace SESV2 { namespace Model { /** */ class CreateContactRequest : public SESV2Request { public: AWS_SESV2_API CreateContactRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateContact"; } AWS_SESV2_API Aws::String SerializePayload() const override; /** *

The name of the contact list to which the contact should be added.

*/ inline const Aws::String& GetContactListName() const{ return m_contactListName; } /** *

The name of the contact list to which the contact should be added.

*/ inline bool ContactListNameHasBeenSet() const { return m_contactListNameHasBeenSet; } /** *

The name of the contact list to which the contact should be added.

*/ inline void SetContactListName(const Aws::String& value) { m_contactListNameHasBeenSet = true; m_contactListName = value; } /** *

The name of the contact list to which the contact should be added.

*/ inline void SetContactListName(Aws::String&& value) { m_contactListNameHasBeenSet = true; m_contactListName = std::move(value); } /** *

The name of the contact list to which the contact should be added.

*/ inline void SetContactListName(const char* value) { m_contactListNameHasBeenSet = true; m_contactListName.assign(value); } /** *

The name of the contact list to which the contact should be added.

*/ inline CreateContactRequest& WithContactListName(const Aws::String& value) { SetContactListName(value); return *this;} /** *

The name of the contact list to which the contact should be added.

*/ inline CreateContactRequest& WithContactListName(Aws::String&& value) { SetContactListName(std::move(value)); return *this;} /** *

The name of the contact list to which the contact should be added.

*/ inline CreateContactRequest& WithContactListName(const char* value) { SetContactListName(value); return *this;} /** *

The contact's email address.

*/ inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; } /** *

The contact's email address.

*/ inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; } /** *

The contact's email address.

*/ inline void SetEmailAddress(const Aws::String& value) { m_emailAddressHasBeenSet = true; m_emailAddress = value; } /** *

The contact's email address.

*/ inline void SetEmailAddress(Aws::String&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::move(value); } /** *

The contact's email address.

*/ inline void SetEmailAddress(const char* value) { m_emailAddressHasBeenSet = true; m_emailAddress.assign(value); } /** *

The contact's email address.

*/ inline CreateContactRequest& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;} /** *

The contact's email address.

*/ inline CreateContactRequest& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;} /** *

The contact's email address.

*/ inline CreateContactRequest& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;} /** *

The contact's preferences for being opted-in to or opted-out of topics.

*/ inline const Aws::Vector& GetTopicPreferences() const{ return m_topicPreferences; } /** *

The contact's preferences for being opted-in to or opted-out of topics.

*/ inline bool TopicPreferencesHasBeenSet() const { return m_topicPreferencesHasBeenSet; } /** *

The contact's preferences for being opted-in to or opted-out of topics.

*/ inline void SetTopicPreferences(const Aws::Vector& value) { m_topicPreferencesHasBeenSet = true; m_topicPreferences = value; } /** *

The contact's preferences for being opted-in to or opted-out of topics.

*/ inline void SetTopicPreferences(Aws::Vector&& value) { m_topicPreferencesHasBeenSet = true; m_topicPreferences = std::move(value); } /** *

The contact's preferences for being opted-in to or opted-out of topics.

*/ inline CreateContactRequest& WithTopicPreferences(const Aws::Vector& value) { SetTopicPreferences(value); return *this;} /** *

The contact's preferences for being opted-in to or opted-out of topics.

*/ inline CreateContactRequest& WithTopicPreferences(Aws::Vector&& value) { SetTopicPreferences(std::move(value)); return *this;} /** *

The contact's preferences for being opted-in to or opted-out of topics.

*/ inline CreateContactRequest& AddTopicPreferences(const TopicPreference& value) { m_topicPreferencesHasBeenSet = true; m_topicPreferences.push_back(value); return *this; } /** *

The contact's preferences for being opted-in to or opted-out of topics.

*/ inline CreateContactRequest& AddTopicPreferences(TopicPreference&& value) { m_topicPreferencesHasBeenSet = true; m_topicPreferences.push_back(std::move(value)); return *this; } /** *

A boolean value status noting if the contact is unsubscribed from all contact * list topics.

*/ inline bool GetUnsubscribeAll() const{ return m_unsubscribeAll; } /** *

A boolean value status noting if the contact is unsubscribed from all contact * list topics.

*/ inline bool UnsubscribeAllHasBeenSet() const { return m_unsubscribeAllHasBeenSet; } /** *

A boolean value status noting if the contact is unsubscribed from all contact * list topics.

*/ inline void SetUnsubscribeAll(bool value) { m_unsubscribeAllHasBeenSet = true; m_unsubscribeAll = value; } /** *

A boolean value status noting if the contact is unsubscribed from all contact * list topics.

*/ inline CreateContactRequest& WithUnsubscribeAll(bool value) { SetUnsubscribeAll(value); return *this;} /** *

The attribute data attached to a contact.

*/ inline const Aws::String& GetAttributesData() const{ return m_attributesData; } /** *

The attribute data attached to a contact.

*/ inline bool AttributesDataHasBeenSet() const { return m_attributesDataHasBeenSet; } /** *

The attribute data attached to a contact.

*/ inline void SetAttributesData(const Aws::String& value) { m_attributesDataHasBeenSet = true; m_attributesData = value; } /** *

The attribute data attached to a contact.

*/ inline void SetAttributesData(Aws::String&& value) { m_attributesDataHasBeenSet = true; m_attributesData = std::move(value); } /** *

The attribute data attached to a contact.

*/ inline void SetAttributesData(const char* value) { m_attributesDataHasBeenSet = true; m_attributesData.assign(value); } /** *

The attribute data attached to a contact.

*/ inline CreateContactRequest& WithAttributesData(const Aws::String& value) { SetAttributesData(value); return *this;} /** *

The attribute data attached to a contact.

*/ inline CreateContactRequest& WithAttributesData(Aws::String&& value) { SetAttributesData(std::move(value)); return *this;} /** *

The attribute data attached to a contact.

*/ inline CreateContactRequest& WithAttributesData(const char* value) { SetAttributesData(value); return *this;} private: Aws::String m_contactListName; bool m_contactListNameHasBeenSet = false; Aws::String m_emailAddress; bool m_emailAddressHasBeenSet = false; Aws::Vector m_topicPreferences; bool m_topicPreferencesHasBeenSet = false; bool m_unsubscribeAll; bool m_unsubscribeAllHasBeenSet = false; Aws::String m_attributesData; bool m_attributesDataHasBeenSet = false; }; } // namespace Model } // namespace SESV2 } // namespace Aws