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

An object that contains details about the action of a contact * list.

See Also:

AWS * API Reference

*/ class ContactListDestination { public: AWS_SESV2_API ContactListDestination(); AWS_SESV2_API ContactListDestination(Aws::Utils::Json::JsonView jsonValue); AWS_SESV2_API ContactListDestination& 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 ContactListDestination& WithContactListName(const Aws::String& value) { SetContactListName(value); return *this;} /** *

The name of the contact list.

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

The name of the contact list.

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

>The type of action to perform on the addresses. The following are the * possible values:

  • PUT: add the addresses to the contact list. If * the record already exists, it will override it with the new value.

  • *
  • DELETE: remove the addresses from the contact list.

*/ inline const ContactListImportAction& GetContactListImportAction() const{ return m_contactListImportAction; } /** *

>The type of action to perform on the addresses. The following are the * possible values:

  • PUT: add the addresses to the contact list. If * the record already exists, it will override it with the new value.

  • *
  • DELETE: remove the addresses from the contact list.

*/ inline bool ContactListImportActionHasBeenSet() const { return m_contactListImportActionHasBeenSet; } /** *

>The type of action to perform on the addresses. The following are the * possible values:

  • PUT: add the addresses to the contact list. If * the record already exists, it will override it with the new value.

  • *
  • DELETE: remove the addresses from the contact list.

*/ inline void SetContactListImportAction(const ContactListImportAction& value) { m_contactListImportActionHasBeenSet = true; m_contactListImportAction = value; } /** *

>The type of action to perform on the addresses. The following are the * possible values:

  • PUT: add the addresses to the contact list. If * the record already exists, it will override it with the new value.

  • *
  • DELETE: remove the addresses from the contact list.

*/ inline void SetContactListImportAction(ContactListImportAction&& value) { m_contactListImportActionHasBeenSet = true; m_contactListImportAction = std::move(value); } /** *

>The type of action to perform on the addresses. The following are the * possible values:

  • PUT: add the addresses to the contact list. If * the record already exists, it will override it with the new value.

  • *
  • DELETE: remove the addresses from the contact list.

*/ inline ContactListDestination& WithContactListImportAction(const ContactListImportAction& value) { SetContactListImportAction(value); return *this;} /** *

>The type of action to perform on the addresses. The following are the * possible values:

  • PUT: add the addresses to the contact list. If * the record already exists, it will override it with the new value.

  • *
  • DELETE: remove the addresses from the contact list.

*/ inline ContactListDestination& WithContactListImportAction(ContactListImportAction&& value) { SetContactListImportAction(std::move(value)); return *this;} private: Aws::String m_contactListName; bool m_contactListNameHasBeenSet = false; ContactListImportAction m_contactListImportAction; bool m_contactListImportActionHasBeenSet = false; }; } // namespace Model } // namespace SESV2 } // namespace Aws