AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateContactRequest.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/TopicPreference.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SESV2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SESV2_API CreateContactRequest();
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_SESV2_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetContactListName() const{ return m_contactListName; }
42 inline bool ContactListNameHasBeenSet() const { return m_contactListNameHasBeenSet; }
43 inline void SetContactListName(const Aws::String& value) { m_contactListNameHasBeenSet = true; m_contactListName = value; }
44 inline void SetContactListName(Aws::String&& value) { m_contactListNameHasBeenSet = true; m_contactListName = std::move(value); }
45 inline void SetContactListName(const char* value) { m_contactListNameHasBeenSet = true; m_contactListName.assign(value); }
46 inline CreateContactRequest& WithContactListName(const Aws::String& value) { SetContactListName(value); return *this;}
47 inline CreateContactRequest& WithContactListName(Aws::String&& value) { SetContactListName(std::move(value)); return *this;}
48 inline CreateContactRequest& WithContactListName(const char* value) { SetContactListName(value); return *this;}
50
52
55 inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; }
56 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
57 inline void SetEmailAddress(const Aws::String& value) { m_emailAddressHasBeenSet = true; m_emailAddress = value; }
58 inline void SetEmailAddress(Aws::String&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::move(value); }
59 inline void SetEmailAddress(const char* value) { m_emailAddressHasBeenSet = true; m_emailAddress.assign(value); }
60 inline CreateContactRequest& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;}
61 inline CreateContactRequest& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;}
62 inline CreateContactRequest& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;}
64
66
69 inline const Aws::Vector<TopicPreference>& GetTopicPreferences() const{ return m_topicPreferences; }
70 inline bool TopicPreferencesHasBeenSet() const { return m_topicPreferencesHasBeenSet; }
71 inline void SetTopicPreferences(const Aws::Vector<TopicPreference>& value) { m_topicPreferencesHasBeenSet = true; m_topicPreferences = value; }
72 inline void SetTopicPreferences(Aws::Vector<TopicPreference>&& value) { m_topicPreferencesHasBeenSet = true; m_topicPreferences = std::move(value); }
75 inline CreateContactRequest& AddTopicPreferences(const TopicPreference& value) { m_topicPreferencesHasBeenSet = true; m_topicPreferences.push_back(value); return *this; }
76 inline CreateContactRequest& AddTopicPreferences(TopicPreference&& value) { m_topicPreferencesHasBeenSet = true; m_topicPreferences.push_back(std::move(value)); return *this; }
78
80
84 inline bool GetUnsubscribeAll() const{ return m_unsubscribeAll; }
85 inline bool UnsubscribeAllHasBeenSet() const { return m_unsubscribeAllHasBeenSet; }
86 inline void SetUnsubscribeAll(bool value) { m_unsubscribeAllHasBeenSet = true; m_unsubscribeAll = value; }
87 inline CreateContactRequest& WithUnsubscribeAll(bool value) { SetUnsubscribeAll(value); return *this;}
89
91
94 inline const Aws::String& GetAttributesData() const{ return m_attributesData; }
95 inline bool AttributesDataHasBeenSet() const { return m_attributesDataHasBeenSet; }
96 inline void SetAttributesData(const Aws::String& value) { m_attributesDataHasBeenSet = true; m_attributesData = value; }
97 inline void SetAttributesData(Aws::String&& value) { m_attributesDataHasBeenSet = true; m_attributesData = std::move(value); }
98 inline void SetAttributesData(const char* value) { m_attributesDataHasBeenSet = true; m_attributesData.assign(value); }
99 inline CreateContactRequest& WithAttributesData(const Aws::String& value) { SetAttributesData(value); return *this;}
100 inline CreateContactRequest& WithAttributesData(Aws::String&& value) { SetAttributesData(std::move(value)); return *this;}
101 inline CreateContactRequest& WithAttributesData(const char* value) { SetAttributesData(value); return *this;}
103 private:
104
105 Aws::String m_contactListName;
106 bool m_contactListNameHasBeenSet = false;
107
108 Aws::String m_emailAddress;
109 bool m_emailAddressHasBeenSet = false;
110
111 Aws::Vector<TopicPreference> m_topicPreferences;
112 bool m_topicPreferencesHasBeenSet = false;
113
114 bool m_unsubscribeAll;
115 bool m_unsubscribeAllHasBeenSet = false;
116
117 Aws::String m_attributesData;
118 bool m_attributesDataHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace SESV2
123} // namespace Aws
CreateContactRequest & WithContactListName(const Aws::String &value)
CreateContactRequest & WithTopicPreferences(const Aws::Vector< TopicPreference > &value)
CreateContactRequest & WithAttributesData(const Aws::String &value)
const Aws::String & GetAttributesData() const
CreateContactRequest & WithEmailAddress(const char *value)
CreateContactRequest & WithContactListName(const char *value)
CreateContactRequest & WithTopicPreferences(Aws::Vector< TopicPreference > &&value)
CreateContactRequest & AddTopicPreferences(const TopicPreference &value)
const Aws::String & GetEmailAddress() const
void SetAttributesData(const Aws::String &value)
CreateContactRequest & AddTopicPreferences(TopicPreference &&value)
CreateContactRequest & WithAttributesData(const char *value)
void SetEmailAddress(const Aws::String &value)
CreateContactRequest & WithAttributesData(Aws::String &&value)
void SetTopicPreferences(const Aws::Vector< TopicPreference > &value)
virtual const char * GetServiceRequestName() const override
void SetTopicPreferences(Aws::Vector< TopicPreference > &&value)
CreateContactRequest & WithContactListName(Aws::String &&value)
void SetContactListName(const Aws::String &value)
CreateContactRequest & WithEmailAddress(Aws::String &&value)
CreateContactRequest & WithUnsubscribeAll(bool value)
const Aws::Vector< TopicPreference > & GetTopicPreferences() const
const Aws::String & GetContactListName() const
CreateContactRequest & WithEmailAddress(const Aws::String &value)
AWS_SESV2_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector