/** * 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 { namespace SESV2 { namespace Model { /** */ class CreateContactListRequest : public SESV2Request { public: AWS_SESV2_API CreateContactListRequest(); // 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 "CreateContactList"; } AWS_SESV2_API Aws::String SerializePayload() const override; /** *

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 CreateContactListRequest& WithContactListName(const Aws::String& value) { SetContactListName(value); return *this;} /** *

The name of the contact list.

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

The name of the contact list.

*/ inline CreateContactListRequest& 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 bool TopicsHasBeenSet() const { return m_topicsHasBeenSet; } /** *

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

*/ inline void SetTopics(const Aws::Vector& value) { m_topicsHasBeenSet = true; 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_topicsHasBeenSet = true; m_topics = std::move(value); } /** *

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

*/ inline CreateContactListRequest& 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 CreateContactListRequest& 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 CreateContactListRequest& AddTopics(const Topic& value) { m_topicsHasBeenSet = true; m_topics.push_back(value); return *this; } /** *

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

*/ inline CreateContactListRequest& AddTopics(Topic&& value) { m_topicsHasBeenSet = true; 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 bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description of what the contact list is about.

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

A description of what the contact list is about.

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

A description of what the contact list is about.

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

A description of what the contact list is about.

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

A description of what the contact list is about.

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

A description of what the contact list is about.

*/ inline CreateContactListRequest& WithDescription(const char* value) { SetDescription(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 bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags associated with a contact list.

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

The tags associated with a contact list.

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

The tags associated with a contact list.

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

The tags associated with a contact list.

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

The tags associated with a contact list.

*/ inline CreateContactListRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The tags associated with a contact list.

*/ inline CreateContactListRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_contactListName; bool m_contactListNameHasBeenSet = false; Aws::Vector m_topics; bool m_topicsHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace SESV2 } // namespace Aws