AWS SDK for C++  1.9.159
AWS SDK for C++
CreateContactListRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/sesv2/model/Topic.h>
12 #include <aws/sesv2/model/Tag.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace SESV2
18 {
19 namespace Model
20 {
21 
25  {
26  public:
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::String SerializePayload() const override;
36 
37 
41  inline const Aws::String& GetContactListName() const{ return m_contactListName; }
42 
46  inline bool ContactListNameHasBeenSet() const { return m_contactListNameHasBeenSet; }
47 
51  inline void SetContactListName(const Aws::String& value) { m_contactListNameHasBeenSet = true; m_contactListName = value; }
52 
56  inline void SetContactListName(Aws::String&& value) { m_contactListNameHasBeenSet = true; m_contactListName = std::move(value); }
57 
61  inline void SetContactListName(const char* value) { m_contactListNameHasBeenSet = true; m_contactListName.assign(value); }
62 
66  inline CreateContactListRequest& WithContactListName(const Aws::String& value) { SetContactListName(value); return *this;}
67 
71  inline CreateContactListRequest& WithContactListName(Aws::String&& value) { SetContactListName(std::move(value)); return *this;}
72 
76  inline CreateContactListRequest& WithContactListName(const char* value) { SetContactListName(value); return *this;}
77 
78 
83  inline const Aws::Vector<Topic>& GetTopics() const{ return m_topics; }
84 
89  inline bool TopicsHasBeenSet() const { return m_topicsHasBeenSet; }
90 
95  inline void SetTopics(const Aws::Vector<Topic>& value) { m_topicsHasBeenSet = true; m_topics = value; }
96 
101  inline void SetTopics(Aws::Vector<Topic>&& value) { m_topicsHasBeenSet = true; m_topics = std::move(value); }
102 
107  inline CreateContactListRequest& WithTopics(const Aws::Vector<Topic>& value) { SetTopics(value); return *this;}
108 
113  inline CreateContactListRequest& WithTopics(Aws::Vector<Topic>&& value) { SetTopics(std::move(value)); return *this;}
114 
119  inline CreateContactListRequest& AddTopics(const Topic& value) { m_topicsHasBeenSet = true; m_topics.push_back(value); return *this; }
120 
125  inline CreateContactListRequest& AddTopics(Topic&& value) { m_topicsHasBeenSet = true; m_topics.push_back(std::move(value)); return *this; }
126 
127 
131  inline const Aws::String& GetDescription() const{ return m_description; }
132 
136  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
137 
141  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
142 
146  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
147 
151  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
152 
156  inline CreateContactListRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
157 
161  inline CreateContactListRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
162 
166  inline CreateContactListRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
167 
168 
172  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
173 
177  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
178 
182  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
183 
187  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
188 
192  inline CreateContactListRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
193 
197  inline CreateContactListRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
198 
202  inline CreateContactListRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
203 
207  inline CreateContactListRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
208 
209  private:
210 
211  Aws::String m_contactListName;
212  bool m_contactListNameHasBeenSet;
213 
214  Aws::Vector<Topic> m_topics;
215  bool m_topicsHasBeenSet;
216 
217  Aws::String m_description;
218  bool m_descriptionHasBeenSet;
219 
220  Aws::Vector<Tag> m_tags;
221  bool m_tagsHasBeenSet;
222  };
223 
224 } // namespace Model
225 } // namespace SESV2
226 } // namespace Aws
Aws::SESV2::Model::CreateContactListRequest::AddTopics
CreateContactListRequest & AddTopics(const Topic &value)
Definition: CreateContactListRequest.h:119
Aws::SESV2::Model::CreateContactListRequest::WithContactListName
CreateContactListRequest & WithContactListName(const char *value)
Definition: CreateContactListRequest.h:76
AWS_SESV2_API
#define AWS_SESV2_API
Definition: SESV2_EXPORTS.h:28
Aws::SESV2::Model::CreateContactListRequest::WithTags
CreateContactListRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateContactListRequest.h:192
Aws::SESV2::Model::CreateContactListRequest::SetTopics
void SetTopics(Aws::Vector< Topic > &&value)
Definition: CreateContactListRequest.h:101
Aws::SESV2::Model::Topic
Definition: Topic.h:34
Aws::SESV2::Model::CreateContactListRequest::TopicsHasBeenSet
bool TopicsHasBeenSet() const
Definition: CreateContactListRequest.h:89
Aws::SESV2::Model::CreateContactListRequest::AddTags
CreateContactListRequest & AddTags(const Tag &value)
Definition: CreateContactListRequest.h:202
Aws::SESV2::Model::CreateContactListRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateContactListRequest.h:187
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Tag.h
Aws::SESV2::Model::CreateContactListRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateContactListRequest.h:151
Aws::SESV2::Model::CreateContactListRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateContactListRequest.h:182
AWSVector.h
Aws::SESV2::Model::CreateContactListRequest::GetContactListName
const Aws::String & GetContactListName() const
Definition: CreateContactListRequest.h:41
Aws::SESV2::Model::CreateContactListRequest::WithDescription
CreateContactListRequest & WithDescription(const Aws::String &value)
Definition: CreateContactListRequest.h:156
Aws::SESV2::Model::CreateContactListRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateContactListRequest.h:131
Aws::SESV2::Model::CreateContactListRequest::ContactListNameHasBeenSet
bool ContactListNameHasBeenSet() const
Definition: CreateContactListRequest.h:46
Aws::SESV2::Model::CreateContactListRequest::WithTags
CreateContactListRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateContactListRequest.h:197
Aws::SESV2::SESV2Request
Definition: SESV2Request.h:17
Aws::SESV2::Model::CreateContactListRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateContactListRequest.h:136
Aws::SESV2::Model::CreateContactListRequest::WithDescription
CreateContactListRequest & WithDescription(Aws::String &&value)
Definition: CreateContactListRequest.h:161
AWSString.h
SESV2_EXPORTS.h
Aws::SESV2::Model::CreateContactListRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateContactListRequest.h:146
Aws::SESV2::Model::CreateContactListRequest::SetContactListName
void SetContactListName(Aws::String &&value)
Definition: CreateContactListRequest.h:56
Aws::SESV2::Model::CreateContactListRequest::CreateContactListRequest
CreateContactListRequest()
Topic.h
Aws::SESV2::Model::CreateContactListRequest::AddTopics
CreateContactListRequest & AddTopics(Topic &&value)
Definition: CreateContactListRequest.h:125
Aws::SESV2::Model::CreateContactListRequest::WithContactListName
CreateContactListRequest & WithContactListName(Aws::String &&value)
Definition: CreateContactListRequest.h:71
Aws::SESV2::Model::CreateContactListRequest::WithDescription
CreateContactListRequest & WithDescription(const char *value)
Definition: CreateContactListRequest.h:166
Aws
Definition: AccessManagementClient.h:15
Aws::SESV2::Model::CreateContactListRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateContactListRequest.h:33
Aws::SESV2::Model::CreateContactListRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateContactListRequest.h:172
Aws::SESV2::Model::CreateContactListRequest::AddTags
CreateContactListRequest & AddTags(Tag &&value)
Definition: CreateContactListRequest.h:207
Aws::SESV2::Model::CreateContactListRequest::SetContactListName
void SetContactListName(const char *value)
Definition: CreateContactListRequest.h:61
Aws::SESV2::Model::CreateContactListRequest::WithTopics
CreateContactListRequest & WithTopics(const Aws::Vector< Topic > &value)
Definition: CreateContactListRequest.h:107
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SESV2::Model::Tag
Definition: Tag.h:53
Aws::SESV2::Model::CreateContactListRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SESV2::Model::CreateContactListRequest::GetTopics
const Aws::Vector< Topic > & GetTopics() const
Definition: CreateContactListRequest.h:83
Aws::SESV2::Model::CreateContactListRequest
Definition: CreateContactListRequest.h:25
SESV2Request.h
Aws::SESV2::Model::CreateContactListRequest::SetTopics
void SetTopics(const Aws::Vector< Topic > &value)
Definition: CreateContactListRequest.h:95
Aws::SESV2::Model::CreateContactListRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateContactListRequest.h:177
Aws::SESV2::Model::CreateContactListRequest::WithContactListName
CreateContactListRequest & WithContactListName(const Aws::String &value)
Definition: CreateContactListRequest.h:66
Aws::SESV2::Model::CreateContactListRequest::SetContactListName
void SetContactListName(const Aws::String &value)
Definition: CreateContactListRequest.h:51
Aws::SESV2::Model::CreateContactListRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateContactListRequest.h:141
Aws::SESV2::Model::CreateContactListRequest::WithTopics
CreateContactListRequest & WithTopics(Aws::Vector< Topic > &&value)
Definition: CreateContactListRequest.h:113