/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace SESV2 { namespace Model { class GetContactResult { public: AWS_SESV2_API GetContactResult(); AWS_SESV2_API GetContactResult(const Aws::AmazonWebServiceResult& result); AWS_SESV2_API GetContactResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The name of the contact list to which the contact belongs.

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

The name of the contact list to which the contact belongs.

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

The name of the contact list to which the contact belongs.

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

The name of the contact list to which the contact belongs.

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

The name of the contact list to which the contact belongs.

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

The name of the contact list to which the contact belongs.

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

The name of the contact list to which the contact belongs.

*/ inline GetContactResult& 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 void SetEmailAddress(const Aws::String& value) { m_emailAddress = value; } /** *

The contact's email address.

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

The contact's email address.

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

The contact's email address.

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

The contact's email address.

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

The contact's email address.

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

The contact's preference for being opted-in to or opted-out of a * topic.>

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

The contact's preference for being opted-in to or opted-out of a * topic.>

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

The contact's preference for being opted-in to or opted-out of a * topic.>

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

The contact's preference for being opted-in to or opted-out of a * topic.>

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

The contact's preference for being opted-in to or opted-out of a * topic.>

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

The contact's preference for being opted-in to or opted-out of a * topic.>

*/ inline GetContactResult& AddTopicPreferences(const TopicPreference& value) { m_topicPreferences.push_back(value); return *this; } /** *

The contact's preference for being opted-in to or opted-out of a * topic.>

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

The default topic preferences applied to the contact.

*/ inline const Aws::Vector& GetTopicDefaultPreferences() const{ return m_topicDefaultPreferences; } /** *

The default topic preferences applied to the contact.

*/ inline void SetTopicDefaultPreferences(const Aws::Vector& value) { m_topicDefaultPreferences = value; } /** *

The default topic preferences applied to the contact.

*/ inline void SetTopicDefaultPreferences(Aws::Vector&& value) { m_topicDefaultPreferences = std::move(value); } /** *

The default topic preferences applied to the contact.

*/ inline GetContactResult& WithTopicDefaultPreferences(const Aws::Vector& value) { SetTopicDefaultPreferences(value); return *this;} /** *

The default topic preferences applied to the contact.

*/ inline GetContactResult& WithTopicDefaultPreferences(Aws::Vector&& value) { SetTopicDefaultPreferences(std::move(value)); return *this;} /** *

The default topic preferences applied to the contact.

*/ inline GetContactResult& AddTopicDefaultPreferences(const TopicPreference& value) { m_topicDefaultPreferences.push_back(value); return *this; } /** *

The default topic preferences applied to the contact.

*/ inline GetContactResult& AddTopicDefaultPreferences(TopicPreference&& value) { m_topicDefaultPreferences.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 void SetUnsubscribeAll(bool value) { m_unsubscribeAll = value; } /** *

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

*/ inline GetContactResult& 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 void SetAttributesData(const Aws::String& value) { m_attributesData = value; } /** *

The attribute data attached to a contact.

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

The attribute data attached to a contact.

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

The attribute data attached to a contact.

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

The attribute data attached to a contact.

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

The attribute data attached to a contact.

*/ inline GetContactResult& WithAttributesData(const char* value) { SetAttributesData(value); return *this;} /** *

A timestamp noting when the contact was created.

*/ inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; } /** *

A timestamp noting when the contact was created.

*/ inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestamp = value; } /** *

A timestamp noting when the contact was created.

*/ inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestamp = std::move(value); } /** *

A timestamp noting when the contact was created.

*/ inline GetContactResult& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;} /** *

A timestamp noting when the contact was created.

*/ inline GetContactResult& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;} /** *

A timestamp noting the last time the contact's information was updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; } /** *

A timestamp noting the last time the contact's information was updated.

*/ inline void SetLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimestamp = value; } /** *

A timestamp noting the last time the contact's information was updated.

*/ inline void SetLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimestamp = std::move(value); } /** *

A timestamp noting the last time the contact's information was updated.

*/ inline GetContactResult& WithLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { SetLastUpdatedTimestamp(value); return *this;} /** *

A timestamp noting the last time the contact's information was updated.

*/ inline GetContactResult& WithLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { SetLastUpdatedTimestamp(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetContactResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetContactResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetContactResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_contactListName; Aws::String m_emailAddress; Aws::Vector m_topicPreferences; Aws::Vector m_topicDefaultPreferences; bool m_unsubscribeAll; Aws::String m_attributesData; Aws::Utils::DateTime m_createdTimestamp; Aws::Utils::DateTime m_lastUpdatedTimestamp; Aws::String m_requestId; }; } // namespace Model } // namespace SESV2 } // namespace Aws