AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateContactRequest.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 UpdateContactRequest();
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 "UpdateContact"; }
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 UpdateContactRequest& WithContactListName(const Aws::String& value) { SetContactListName(value); return *this;}
47 inline UpdateContactRequest& WithContactListName(Aws::String&& value) { SetContactListName(std::move(value)); return *this;}
48 inline UpdateContactRequest& 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 UpdateContactRequest& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;}
61 inline UpdateContactRequest& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;}
62 inline UpdateContactRequest& 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 UpdateContactRequest& AddTopicPreferences(const TopicPreference& value) { m_topicPreferencesHasBeenSet = true; m_topicPreferences.push_back(value); return *this; }
76 inline UpdateContactRequest& 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 UpdateContactRequest& 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 UpdateContactRequest& WithAttributesData(const Aws::String& value) { SetAttributesData(value); return *this;}
100 inline UpdateContactRequest& WithAttributesData(Aws::String&& value) { SetAttributesData(std::move(value)); return *this;}
101 inline UpdateContactRequest& 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
const Aws::String & GetEmailAddress() const
const Aws::String & GetContactListName() const
UpdateContactRequest & WithUnsubscribeAll(bool value)
UpdateContactRequest & WithEmailAddress(Aws::String &&value)
void SetTopicPreferences(const Aws::Vector< TopicPreference > &value)
UpdateContactRequest & WithContactListName(Aws::String &&value)
UpdateContactRequest & WithContactListName(const char *value)
UpdateContactRequest & AddTopicPreferences(const TopicPreference &value)
UpdateContactRequest & WithAttributesData(const Aws::String &value)
UpdateContactRequest & WithEmailAddress(const char *value)
UpdateContactRequest & WithContactListName(const Aws::String &value)
UpdateContactRequest & WithTopicPreferences(Aws::Vector< TopicPreference > &&value)
AWS_SESV2_API Aws::String SerializePayload() const override
UpdateContactRequest & AddTopicPreferences(TopicPreference &&value)
const Aws::Vector< TopicPreference > & GetTopicPreferences() const
const Aws::String & GetAttributesData() const
void SetContactListName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetEmailAddress(const Aws::String &value)
void SetAttributesData(const Aws::String &value)
UpdateContactRequest & WithTopicPreferences(const Aws::Vector< TopicPreference > &value)
void SetTopicPreferences(Aws::Vector< TopicPreference > &&value)
UpdateContactRequest & WithEmailAddress(const Aws::String &value)
UpdateContactRequest & WithAttributesData(const char *value)
UpdateContactRequest & WithAttributesData(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector