AWS SDK for C++  1.9.109
AWS SDK for C++
CreateContactRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace SESV2
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateContact"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
40  inline const Aws::String& GetContactListName() const{ return m_contactListName; }
41 
45  inline bool ContactListNameHasBeenSet() const { return m_contactListNameHasBeenSet; }
46 
50  inline void SetContactListName(const Aws::String& value) { m_contactListNameHasBeenSet = true; m_contactListName = value; }
51 
55  inline void SetContactListName(Aws::String&& value) { m_contactListNameHasBeenSet = true; m_contactListName = std::move(value); }
56 
60  inline void SetContactListName(const char* value) { m_contactListNameHasBeenSet = true; m_contactListName.assign(value); }
61 
65  inline CreateContactRequest& WithContactListName(const Aws::String& value) { SetContactListName(value); return *this;}
66 
70  inline CreateContactRequest& WithContactListName(Aws::String&& value) { SetContactListName(std::move(value)); return *this;}
71 
75  inline CreateContactRequest& WithContactListName(const char* value) { SetContactListName(value); return *this;}
76 
77 
81  inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; }
82 
86  inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
87 
91  inline void SetEmailAddress(const Aws::String& value) { m_emailAddressHasBeenSet = true; m_emailAddress = value; }
92 
96  inline void SetEmailAddress(Aws::String&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::move(value); }
97 
101  inline void SetEmailAddress(const char* value) { m_emailAddressHasBeenSet = true; m_emailAddress.assign(value); }
102 
106  inline CreateContactRequest& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;}
107 
111  inline CreateContactRequest& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;}
112 
116  inline CreateContactRequest& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;}
117 
118 
122  inline const Aws::Vector<TopicPreference>& GetTopicPreferences() const{ return m_topicPreferences; }
123 
127  inline bool TopicPreferencesHasBeenSet() const { return m_topicPreferencesHasBeenSet; }
128 
132  inline void SetTopicPreferences(const Aws::Vector<TopicPreference>& value) { m_topicPreferencesHasBeenSet = true; m_topicPreferences = value; }
133 
137  inline void SetTopicPreferences(Aws::Vector<TopicPreference>&& value) { m_topicPreferencesHasBeenSet = true; m_topicPreferences = std::move(value); }
138 
142  inline CreateContactRequest& WithTopicPreferences(const Aws::Vector<TopicPreference>& value) { SetTopicPreferences(value); return *this;}
143 
147  inline CreateContactRequest& WithTopicPreferences(Aws::Vector<TopicPreference>&& value) { SetTopicPreferences(std::move(value)); return *this;}
148 
152  inline CreateContactRequest& AddTopicPreferences(const TopicPreference& value) { m_topicPreferencesHasBeenSet = true; m_topicPreferences.push_back(value); return *this; }
153 
157  inline CreateContactRequest& AddTopicPreferences(TopicPreference&& value) { m_topicPreferencesHasBeenSet = true; m_topicPreferences.push_back(std::move(value)); return *this; }
158 
159 
164  inline bool GetUnsubscribeAll() const{ return m_unsubscribeAll; }
165 
170  inline bool UnsubscribeAllHasBeenSet() const { return m_unsubscribeAllHasBeenSet; }
171 
176  inline void SetUnsubscribeAll(bool value) { m_unsubscribeAllHasBeenSet = true; m_unsubscribeAll = value; }
177 
182  inline CreateContactRequest& WithUnsubscribeAll(bool value) { SetUnsubscribeAll(value); return *this;}
183 
184 
188  inline const Aws::String& GetAttributesData() const{ return m_attributesData; }
189 
193  inline bool AttributesDataHasBeenSet() const { return m_attributesDataHasBeenSet; }
194 
198  inline void SetAttributesData(const Aws::String& value) { m_attributesDataHasBeenSet = true; m_attributesData = value; }
199 
203  inline void SetAttributesData(Aws::String&& value) { m_attributesDataHasBeenSet = true; m_attributesData = std::move(value); }
204 
208  inline void SetAttributesData(const char* value) { m_attributesDataHasBeenSet = true; m_attributesData.assign(value); }
209 
213  inline CreateContactRequest& WithAttributesData(const Aws::String& value) { SetAttributesData(value); return *this;}
214 
218  inline CreateContactRequest& WithAttributesData(Aws::String&& value) { SetAttributesData(std::move(value)); return *this;}
219 
223  inline CreateContactRequest& WithAttributesData(const char* value) { SetAttributesData(value); return *this;}
224 
225  private:
226 
227  Aws::String m_contactListName;
228  bool m_contactListNameHasBeenSet;
229 
230  Aws::String m_emailAddress;
231  bool m_emailAddressHasBeenSet;
232 
233  Aws::Vector<TopicPreference> m_topicPreferences;
234  bool m_topicPreferencesHasBeenSet;
235 
236  bool m_unsubscribeAll;
237  bool m_unsubscribeAllHasBeenSet;
238 
239  Aws::String m_attributesData;
240  bool m_attributesDataHasBeenSet;
241  };
242 
243 } // namespace Model
244 } // namespace SESV2
245 } // namespace Aws
Aws::SESV2::Model::CreateContactRequest::WithAttributesData
CreateContactRequest & WithAttributesData(Aws::String &&value)
Definition: CreateContactRequest.h:218
AWS_SESV2_API
#define AWS_SESV2_API
Definition: SESV2_EXPORTS.h:28
Aws::SESV2::Model::CreateContactRequest::WithContactListName
CreateContactRequest & WithContactListName(const Aws::String &value)
Definition: CreateContactRequest.h:65
Aws::SESV2::Model::CreateContactRequest::SetContactListName
void SetContactListName(const Aws::String &value)
Definition: CreateContactRequest.h:50
Aws::SESV2::Model::CreateContactRequest::AttributesDataHasBeenSet
bool AttributesDataHasBeenSet() const
Definition: CreateContactRequest.h:193
Aws::SESV2::Model::CreateContactRequest::WithAttributesData
CreateContactRequest & WithAttributesData(const char *value)
Definition: CreateContactRequest.h:223
Aws::SESV2::Model::TopicPreference
Definition: TopicPreference.h:34
Aws::SESV2::Model::CreateContactRequest::WithUnsubscribeAll
CreateContactRequest & WithUnsubscribeAll(bool value)
Definition: CreateContactRequest.h:182
Aws::SESV2::Model::CreateContactRequest::GetTopicPreferences
const Aws::Vector< TopicPreference > & GetTopicPreferences() const
Definition: CreateContactRequest.h:122
Aws::SESV2::Model::CreateContactRequest::WithContactListName
CreateContactRequest & WithContactListName(const char *value)
Definition: CreateContactRequest.h:75
Aws::SESV2::Model::CreateContactRequest::GetUnsubscribeAll
bool GetUnsubscribeAll() const
Definition: CreateContactRequest.h:164
Aws::SESV2::Model::CreateContactRequest
Definition: CreateContactRequest.h:24
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SESV2::Model::CreateContactRequest::SetAttributesData
void SetAttributesData(Aws::String &&value)
Definition: CreateContactRequest.h:203
Aws::SESV2::Model::CreateContactRequest::AddTopicPreferences
CreateContactRequest & AddTopicPreferences(TopicPreference &&value)
Definition: CreateContactRequest.h:157
Aws::SESV2::Model::CreateContactRequest::WithEmailAddress
CreateContactRequest & WithEmailAddress(const Aws::String &value)
Definition: CreateContactRequest.h:106
Aws::SESV2::Model::CreateContactRequest::SetEmailAddress
void SetEmailAddress(const Aws::String &value)
Definition: CreateContactRequest.h:91
AWSVector.h
Aws::SESV2::Model::CreateContactRequest::SetEmailAddress
void SetEmailAddress(const char *value)
Definition: CreateContactRequest.h:101
Aws::SESV2::Model::CreateContactRequest::UnsubscribeAllHasBeenSet
bool UnsubscribeAllHasBeenSet() const
Definition: CreateContactRequest.h:170
Aws::SESV2::Model::CreateContactRequest::SetTopicPreferences
void SetTopicPreferences(const Aws::Vector< TopicPreference > &value)
Definition: CreateContactRequest.h:132
Aws::SESV2::Model::CreateContactRequest::GetAttributesData
const Aws::String & GetAttributesData() const
Definition: CreateContactRequest.h:188
Aws::SESV2::Model::CreateContactRequest::SetAttributesData
void SetAttributesData(const char *value)
Definition: CreateContactRequest.h:208
Aws::SESV2::Model::CreateContactRequest::SetEmailAddress
void SetEmailAddress(Aws::String &&value)
Definition: CreateContactRequest.h:96
Aws::SESV2::Model::CreateContactRequest::WithAttributesData
CreateContactRequest & WithAttributesData(const Aws::String &value)
Definition: CreateContactRequest.h:213
Aws::SESV2::SESV2Request
Definition: SESV2Request.h:17
Aws::SESV2::Model::CreateContactRequest::TopicPreferencesHasBeenSet
bool TopicPreferencesHasBeenSet() const
Definition: CreateContactRequest.h:127
Aws::SESV2::Model::CreateContactRequest::WithContactListName
CreateContactRequest & WithContactListName(Aws::String &&value)
Definition: CreateContactRequest.h:70
Aws::SESV2::Model::CreateContactRequest::EmailAddressHasBeenSet
bool EmailAddressHasBeenSet() const
Definition: CreateContactRequest.h:86
AWSString.h
Aws::SESV2::Model::CreateContactRequest::AddTopicPreferences
CreateContactRequest & AddTopicPreferences(const TopicPreference &value)
Definition: CreateContactRequest.h:152
SESV2_EXPORTS.h
Aws::SESV2::Model::CreateContactRequest::WithTopicPreferences
CreateContactRequest & WithTopicPreferences(Aws::Vector< TopicPreference > &&value)
Definition: CreateContactRequest.h:147
Aws::SESV2::Model::CreateContactRequest::WithTopicPreferences
CreateContactRequest & WithTopicPreferences(const Aws::Vector< TopicPreference > &value)
Definition: CreateContactRequest.h:142
Aws::SESV2::Model::CreateContactRequest::SetAttributesData
void SetAttributesData(const Aws::String &value)
Definition: CreateContactRequest.h:198
Aws::SESV2::Model::CreateContactRequest::SetTopicPreferences
void SetTopicPreferences(Aws::Vector< TopicPreference > &&value)
Definition: CreateContactRequest.h:137
Aws
Definition: AccessManagementClient.h:15
Aws::SESV2::Model::CreateContactRequest::WithEmailAddress
CreateContactRequest & WithEmailAddress(const char *value)
Definition: CreateContactRequest.h:116
Aws::SESV2::Model::CreateContactRequest::SetContactListName
void SetContactListName(Aws::String &&value)
Definition: CreateContactRequest.h:55
Aws::SESV2::Model::CreateContactRequest::GetContactListName
const Aws::String & GetContactListName() const
Definition: CreateContactRequest.h:40
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SESV2::Model::CreateContactRequest::CreateContactRequest
CreateContactRequest()
Aws::SESV2::Model::CreateContactRequest::GetEmailAddress
const Aws::String & GetEmailAddress() const
Definition: CreateContactRequest.h:81
SESV2Request.h
Aws::SESV2::Model::CreateContactRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SESV2::Model::CreateContactRequest::WithEmailAddress
CreateContactRequest & WithEmailAddress(Aws::String &&value)
Definition: CreateContactRequest.h:111
Aws::SESV2::Model::CreateContactRequest::SetContactListName
void SetContactListName(const char *value)
Definition: CreateContactRequest.h:60
Aws::SESV2::Model::CreateContactRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateContactRequest.h:32
Aws::SESV2::Model::CreateContactRequest::ContactListNameHasBeenSet
bool ContactListNameHasBeenSet() const
Definition: CreateContactRequest.h:45
Aws::SESV2::Model::CreateContactRequest::SetUnsubscribeAll
void SetUnsubscribeAll(bool value)
Definition: CreateContactRequest.h:176
TopicPreference.h