AWS SDK for C++  1.9.160
AWS SDK for C++
UpdateContactListRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/sesv2/model/Topic.h>
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 "UpdateContactList"; }
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 UpdateContactListRequest& WithContactListName(const Aws::String& value) { SetContactListName(value); return *this;}
66 
70  inline UpdateContactListRequest& WithContactListName(Aws::String&& value) { SetContactListName(std::move(value)); return *this;}
71 
75  inline UpdateContactListRequest& WithContactListName(const char* value) { SetContactListName(value); return *this;}
76 
77 
82  inline const Aws::Vector<Topic>& GetTopics() const{ return m_topics; }
83 
88  inline bool TopicsHasBeenSet() const { return m_topicsHasBeenSet; }
89 
94  inline void SetTopics(const Aws::Vector<Topic>& value) { m_topicsHasBeenSet = true; m_topics = value; }
95 
100  inline void SetTopics(Aws::Vector<Topic>&& value) { m_topicsHasBeenSet = true; m_topics = std::move(value); }
101 
106  inline UpdateContactListRequest& WithTopics(const Aws::Vector<Topic>& value) { SetTopics(value); return *this;}
107 
112  inline UpdateContactListRequest& WithTopics(Aws::Vector<Topic>&& value) { SetTopics(std::move(value)); return *this;}
113 
118  inline UpdateContactListRequest& AddTopics(const Topic& value) { m_topicsHasBeenSet = true; m_topics.push_back(value); return *this; }
119 
124  inline UpdateContactListRequest& AddTopics(Topic&& value) { m_topicsHasBeenSet = true; m_topics.push_back(std::move(value)); return *this; }
125 
126 
130  inline const Aws::String& GetDescription() const{ return m_description; }
131 
135  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
136 
140  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
141 
145  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
146 
150  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
151 
155  inline UpdateContactListRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
156 
160  inline UpdateContactListRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
161 
165  inline UpdateContactListRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
166 
167  private:
168 
169  Aws::String m_contactListName;
170  bool m_contactListNameHasBeenSet;
171 
172  Aws::Vector<Topic> m_topics;
173  bool m_topicsHasBeenSet;
174 
175  Aws::String m_description;
176  bool m_descriptionHasBeenSet;
177  };
178 
179 } // namespace Model
180 } // namespace SESV2
181 } // namespace Aws
Aws::SESV2::Model::UpdateContactListRequest::WithContactListName
UpdateContactListRequest & WithContactListName(const char *value)
Definition: UpdateContactListRequest.h:75
Aws::SESV2::Model::UpdateContactListRequest::WithTopics
UpdateContactListRequest & WithTopics(Aws::Vector< Topic > &&value)
Definition: UpdateContactListRequest.h:112
AWS_SESV2_API
#define AWS_SESV2_API
Definition: SESV2_EXPORTS.h:28
Aws::SESV2::Model::UpdateContactListRequest::SetContactListName
void SetContactListName(const Aws::String &value)
Definition: UpdateContactListRequest.h:50
Aws::SESV2::Model::Topic
Definition: Topic.h:34
Aws::SESV2::Model::UpdateContactListRequest::WithTopics
UpdateContactListRequest & WithTopics(const Aws::Vector< Topic > &value)
Definition: UpdateContactListRequest.h:106
Aws::SESV2::Model::UpdateContactListRequest
Definition: UpdateContactListRequest.h:24
Aws::SESV2::Model::UpdateContactListRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateContactListRequest.h:32
Aws::SESV2::Model::UpdateContactListRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: UpdateContactListRequest.h:145
Aws::SESV2::Model::UpdateContactListRequest::SetContactListName
void SetContactListName(const char *value)
Definition: UpdateContactListRequest.h:60
Aws::SESV2::Model::UpdateContactListRequest::WithContactListName
UpdateContactListRequest & WithContactListName(const Aws::String &value)
Definition: UpdateContactListRequest.h:65
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SESV2::Model::UpdateContactListRequest::WithDescription
UpdateContactListRequest & WithDescription(Aws::String &&value)
Definition: UpdateContactListRequest.h:160
AWSVector.h
Aws::SESV2::Model::UpdateContactListRequest::WithContactListName
UpdateContactListRequest & WithContactListName(Aws::String &&value)
Definition: UpdateContactListRequest.h:70
Aws::SESV2::Model::UpdateContactListRequest::AddTopics
UpdateContactListRequest & AddTopics(Topic &&value)
Definition: UpdateContactListRequest.h:124
Aws::SESV2::Model::UpdateContactListRequest::TopicsHasBeenSet
bool TopicsHasBeenSet() const
Definition: UpdateContactListRequest.h:88
Aws::SESV2::Model::UpdateContactListRequest::SetContactListName
void SetContactListName(Aws::String &&value)
Definition: UpdateContactListRequest.h:55
Aws::SESV2::Model::UpdateContactListRequest::WithDescription
UpdateContactListRequest & WithDescription(const char *value)
Definition: UpdateContactListRequest.h:165
Aws::SESV2::Model::UpdateContactListRequest::GetDescription
const Aws::String & GetDescription() const
Definition: UpdateContactListRequest.h:130
Aws::SESV2::SESV2Request
Definition: SESV2Request.h:17
Aws::SESV2::Model::UpdateContactListRequest::UpdateContactListRequest
UpdateContactListRequest()
Aws::SESV2::Model::UpdateContactListRequest::SetTopics
void SetTopics(Aws::Vector< Topic > &&value)
Definition: UpdateContactListRequest.h:100
Aws::SESV2::Model::UpdateContactListRequest::WithDescription
UpdateContactListRequest & WithDescription(const Aws::String &value)
Definition: UpdateContactListRequest.h:155
AWSString.h
Aws::SESV2::Model::UpdateContactListRequest::AddTopics
UpdateContactListRequest & AddTopics(const Topic &value)
Definition: UpdateContactListRequest.h:118
SESV2_EXPORTS.h
Aws::SESV2::Model::UpdateContactListRequest::GetTopics
const Aws::Vector< Topic > & GetTopics() const
Definition: UpdateContactListRequest.h:82
Topic.h
Aws::SESV2::Model::UpdateContactListRequest::GetContactListName
const Aws::String & GetContactListName() const
Definition: UpdateContactListRequest.h:40
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SESV2::Model::UpdateContactListRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: UpdateContactListRequest.h:135
Aws::SESV2::Model::UpdateContactListRequest::SetDescription
void SetDescription(const char *value)
Definition: UpdateContactListRequest.h:150
SESV2Request.h
Aws::SESV2::Model::UpdateContactListRequest::ContactListNameHasBeenSet
bool ContactListNameHasBeenSet() const
Definition: UpdateContactListRequest.h:45
Aws::SESV2::Model::UpdateContactListRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SESV2::Model::UpdateContactListRequest::SetTopics
void SetTopics(const Aws::Vector< Topic > &value)
Definition: UpdateContactListRequest.h:94
Aws::SESV2::Model::UpdateContactListRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: UpdateContactListRequest.h:140