/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SESV2 { namespace Model { /** *

An object used to specify a list or topic to which an email belongs, which * will be used when a contact chooses to unsubscribe.

See Also:

* AWS * API Reference

*/ class ListManagementOptions { public: AWS_SESV2_API ListManagementOptions(); AWS_SESV2_API ListManagementOptions(Aws::Utils::Json::JsonView jsonValue); AWS_SESV2_API ListManagementOptions& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the contact list.

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

The name of the contact list.

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

The name of the contact list.

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

The name of the contact list.

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

The name of the contact list.

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

The name of the contact list.

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

The name of the contact list.

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

The name of the contact list.

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

The name of the topic.

*/ inline const Aws::String& GetTopicName() const{ return m_topicName; } /** *

The name of the topic.

*/ inline bool TopicNameHasBeenSet() const { return m_topicNameHasBeenSet; } /** *

The name of the topic.

*/ inline void SetTopicName(const Aws::String& value) { m_topicNameHasBeenSet = true; m_topicName = value; } /** *

The name of the topic.

*/ inline void SetTopicName(Aws::String&& value) { m_topicNameHasBeenSet = true; m_topicName = std::move(value); } /** *

The name of the topic.

*/ inline void SetTopicName(const char* value) { m_topicNameHasBeenSet = true; m_topicName.assign(value); } /** *

The name of the topic.

*/ inline ListManagementOptions& WithTopicName(const Aws::String& value) { SetTopicName(value); return *this;} /** *

The name of the topic.

*/ inline ListManagementOptions& WithTopicName(Aws::String&& value) { SetTopicName(std::move(value)); return *this;} /** *

The name of the topic.

*/ inline ListManagementOptions& WithTopicName(const char* value) { SetTopicName(value); return *this;} private: Aws::String m_contactListName; bool m_contactListNameHasBeenSet = false; Aws::String m_topicName; bool m_topicNameHasBeenSet = false; }; } // namespace Model } // namespace SESV2 } // namespace Aws