/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #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 GetContactListResult { public: AWS_SESV2_API GetContactListResult(); AWS_SESV2_API GetContactListResult(const Aws::AmazonWebServiceResult& result); AWS_SESV2_API GetContactListResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The name of the contact list.

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

The name of the contact list.

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

The name of the contact list.

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

The name of the contact list.

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

The name of the contact list.

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

The name of the contact list.

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

The name of the contact list.

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

An interest group, theme, or label within a list. A contact list can have * multiple topics.

*/ inline const Aws::Vector& GetTopics() const{ return m_topics; } /** *

An interest group, theme, or label within a list. A contact list can have * multiple topics.

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

An interest group, theme, or label within a list. A contact list can have * multiple topics.

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

An interest group, theme, or label within a list. A contact list can have * multiple topics.

*/ inline GetContactListResult& WithTopics(const Aws::Vector& value) { SetTopics(value); return *this;} /** *

An interest group, theme, or label within a list. A contact list can have * multiple topics.

*/ inline GetContactListResult& WithTopics(Aws::Vector&& value) { SetTopics(std::move(value)); return *this;} /** *

An interest group, theme, or label within a list. A contact list can have * multiple topics.

*/ inline GetContactListResult& AddTopics(const Topic& value) { m_topics.push_back(value); return *this; } /** *

An interest group, theme, or label within a list. A contact list can have * multiple topics.

*/ inline GetContactListResult& AddTopics(Topic&& value) { m_topics.push_back(std::move(value)); return *this; } /** *

A description of what the contact list is about.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description of what the contact list is about.

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

A description of what the contact list is about.

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

A description of what the contact list is about.

*/ inline void SetDescription(const char* value) { m_description.assign(value); } /** *

A description of what the contact list is about.

*/ inline GetContactListResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of what the contact list is about.

*/ inline GetContactListResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description of what the contact list is about.

*/ inline GetContactListResult& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

A timestamp noting when the contact list was created.

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

A timestamp noting when the contact list was created.

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

A timestamp noting when the contact list was created.

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

A timestamp noting when the contact list was created.

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

A timestamp noting when the contact list was created.

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

A timestamp noting the last time the contact list was updated.

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

A timestamp noting the last time the contact list was updated.

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

A timestamp noting the last time the contact list was updated.

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

A timestamp noting the last time the contact list was updated.

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

A timestamp noting the last time the contact list was updated.

*/ inline GetContactListResult& WithLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { SetLastUpdatedTimestamp(std::move(value)); return *this;} /** *

The tags associated with a contact list.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The tags associated with a contact list.

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

The tags associated with a contact list.

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

The tags associated with a contact list.

*/ inline GetContactListResult& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The tags associated with a contact list.

*/ inline GetContactListResult& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The tags associated with a contact list.

*/ inline GetContactListResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; } /** *

The tags associated with a contact list.

*/ inline GetContactListResult& AddTags(Tag&& value) { m_tags.push_back(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 GetContactListResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetContactListResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetContactListResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_contactListName; Aws::Vector m_topics; Aws::String m_description; Aws::Utils::DateTime m_createdTimestamp; Aws::Utils::DateTime m_lastUpdatedTimestamp; Aws::Vector m_tags; Aws::String m_requestId; }; } // namespace Model } // namespace SESV2 } // namespace Aws