AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateContactListRequest.h
1
6#pragma once
7#include <aws/sesv2/SESV2_EXPORTS.h>
8#include <aws/sesv2/SESV2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/sesv2/model/Topic.h>
12#include <aws/sesv2/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SESV2
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SESV2_API CreateContactListRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateContactList"; }
34
35 AWS_SESV2_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetContactListName() const{ return m_contactListName; }
43 inline bool ContactListNameHasBeenSet() const { return m_contactListNameHasBeenSet; }
44 inline void SetContactListName(const Aws::String& value) { m_contactListNameHasBeenSet = true; m_contactListName = value; }
45 inline void SetContactListName(Aws::String&& value) { m_contactListNameHasBeenSet = true; m_contactListName = std::move(value); }
46 inline void SetContactListName(const char* value) { m_contactListNameHasBeenSet = true; m_contactListName.assign(value); }
47 inline CreateContactListRequest& WithContactListName(const Aws::String& value) { SetContactListName(value); return *this;}
48 inline CreateContactListRequest& WithContactListName(Aws::String&& value) { SetContactListName(std::move(value)); return *this;}
49 inline CreateContactListRequest& WithContactListName(const char* value) { SetContactListName(value); return *this;}
51
53
57 inline const Aws::Vector<Topic>& GetTopics() const{ return m_topics; }
58 inline bool TopicsHasBeenSet() const { return m_topicsHasBeenSet; }
59 inline void SetTopics(const Aws::Vector<Topic>& value) { m_topicsHasBeenSet = true; m_topics = value; }
60 inline void SetTopics(Aws::Vector<Topic>&& value) { m_topicsHasBeenSet = true; m_topics = std::move(value); }
61 inline CreateContactListRequest& WithTopics(const Aws::Vector<Topic>& value) { SetTopics(value); return *this;}
62 inline CreateContactListRequest& WithTopics(Aws::Vector<Topic>&& value) { SetTopics(std::move(value)); return *this;}
63 inline CreateContactListRequest& AddTopics(const Topic& value) { m_topicsHasBeenSet = true; m_topics.push_back(value); return *this; }
64 inline CreateContactListRequest& AddTopics(Topic&& value) { m_topicsHasBeenSet = true; m_topics.push_back(std::move(value)); return *this; }
66
68
71 inline const Aws::String& GetDescription() const{ return m_description; }
72 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
73 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
74 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
75 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
76 inline CreateContactListRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
77 inline CreateContactListRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
78 inline CreateContactListRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
80
82
85 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
86 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
87 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
88 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
89 inline CreateContactListRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
90 inline CreateContactListRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
91 inline CreateContactListRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
92 inline CreateContactListRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
94 private:
95
96 Aws::String m_contactListName;
97 bool m_contactListNameHasBeenSet = false;
98
99 Aws::Vector<Topic> m_topics;
100 bool m_topicsHasBeenSet = false;
101
102 Aws::String m_description;
103 bool m_descriptionHasBeenSet = false;
104
105 Aws::Vector<Tag> m_tags;
106 bool m_tagsHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace SESV2
111} // namespace Aws
CreateContactListRequest & AddTopics(Topic &&value)
CreateContactListRequest & WithContactListName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetTopics(const Aws::Vector< Topic > &value)
CreateContactListRequest & AddTags(const Tag &value)
CreateContactListRequest & WithDescription(const char *value)
CreateContactListRequest & AddTopics(const Topic &value)
void SetTags(const Aws::Vector< Tag > &value)
AWS_SESV2_API Aws::String SerializePayload() const override
CreateContactListRequest & WithContactListName(const char *value)
CreateContactListRequest & WithDescription(const Aws::String &value)
CreateContactListRequest & AddTags(Tag &&value)
CreateContactListRequest & WithContactListName(Aws::String &&value)
CreateContactListRequest & WithTags(const Aws::Vector< Tag > &value)
CreateContactListRequest & WithTags(Aws::Vector< Tag > &&value)
CreateContactListRequest & WithTopics(Aws::Vector< Topic > &&value)
CreateContactListRequest & WithDescription(Aws::String &&value)
const Aws::Vector< Topic > & GetTopics() const
CreateContactListRequest & WithTopics(const Aws::Vector< Topic > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector