AWS SDK for C++  1.9.109
AWS SDK for C++
ListContactsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace SESV2
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "ListContacts"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40 
41 
45  inline const Aws::String& GetContactListName() const{ return m_contactListName; }
46 
50  inline bool ContactListNameHasBeenSet() const { return m_contactListNameHasBeenSet; }
51 
55  inline void SetContactListName(const Aws::String& value) { m_contactListNameHasBeenSet = true; m_contactListName = value; }
56 
60  inline void SetContactListName(Aws::String&& value) { m_contactListNameHasBeenSet = true; m_contactListName = std::move(value); }
61 
65  inline void SetContactListName(const char* value) { m_contactListNameHasBeenSet = true; m_contactListName.assign(value); }
66 
70  inline ListContactsRequest& WithContactListName(const Aws::String& value) { SetContactListName(value); return *this;}
71 
75  inline ListContactsRequest& WithContactListName(Aws::String&& value) { SetContactListName(std::move(value)); return *this;}
76 
80  inline ListContactsRequest& WithContactListName(const char* value) { SetContactListName(value); return *this;}
81 
82 
86  inline const ListContactsFilter& GetFilter() const{ return m_filter; }
87 
91  inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
92 
96  inline void SetFilter(const ListContactsFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
97 
101  inline void SetFilter(ListContactsFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
102 
106  inline ListContactsRequest& WithFilter(const ListContactsFilter& value) { SetFilter(value); return *this;}
107 
111  inline ListContactsRequest& WithFilter(ListContactsFilter&& value) { SetFilter(std::move(value)); return *this;}
112 
113 
122  inline int GetPageSize() const{ return m_pageSize; }
123 
132  inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; }
133 
142  inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; }
143 
152  inline ListContactsRequest& WithPageSize(int value) { SetPageSize(value); return *this;}
153 
154 
161  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
162 
169  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
170 
177  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
178 
185  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
186 
193  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
194 
201  inline ListContactsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
202 
209  inline ListContactsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
210 
217  inline ListContactsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
218 
219  private:
220 
221  Aws::String m_contactListName;
222  bool m_contactListNameHasBeenSet;
223 
224  ListContactsFilter m_filter;
225  bool m_filterHasBeenSet;
226 
227  int m_pageSize;
228  bool m_pageSizeHasBeenSet;
229 
230  Aws::String m_nextToken;
231  bool m_nextTokenHasBeenSet;
232  };
233 
234 } // namespace Model
235 } // namespace SESV2
236 } // namespace Aws
Aws::SESV2::Model::ListContactsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SESV2::Model::ListContactsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListContactsRequest.h:177
Aws::Http::URI
Definition: URI.h:32
AWS_SESV2_API
#define AWS_SESV2_API
Definition: SESV2_EXPORTS.h:28
Aws::SESV2::Model::ListContactsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListContactsRequest.h:185
ListContactsFilter.h
Aws::SESV2::Model::ListContactsRequest::SetPageSize
void SetPageSize(int value)
Definition: ListContactsRequest.h:142
Aws::SESV2::Model::ListContactsRequest::ListContactsRequest
ListContactsRequest()
Aws::SESV2::Model::ListContactsRequest::SetContactListName
void SetContactListName(Aws::String &&value)
Definition: ListContactsRequest.h:60
Aws::SESV2::Model::ListContactsRequest::PageSizeHasBeenSet
bool PageSizeHasBeenSet() const
Definition: ListContactsRequest.h:132
Aws::SESV2::Model::ListContactsRequest::WithContactListName
ListContactsRequest & WithContactListName(Aws::String &&value)
Definition: ListContactsRequest.h:75
Aws::SESV2::Model::ListContactsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListContactsRequest.h:193
Aws::SESV2::Model::ListContactsRequest
Definition: ListContactsRequest.h:27
Aws::SESV2::Model::ListContactsRequest::FilterHasBeenSet
bool FilterHasBeenSet() const
Definition: ListContactsRequest.h:91
Aws::SESV2::Model::ListContactsRequest::SetContactListName
void SetContactListName(const Aws::String &value)
Definition: ListContactsRequest.h:55
Aws::SESV2::Model::ListContactsRequest::WithNextToken
ListContactsRequest & WithNextToken(const Aws::String &value)
Definition: ListContactsRequest.h:201
Aws::SESV2::Model::ListContactsRequest::WithFilter
ListContactsRequest & WithFilter(ListContactsFilter &&value)
Definition: ListContactsRequest.h:111
Aws::SESV2::Model::ListContactsRequest::WithNextToken
ListContactsRequest & WithNextToken(const char *value)
Definition: ListContactsRequest.h:217
Aws::SESV2::Model::ListContactsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListContactsRequest.h:161
Aws::SESV2::Model::ListContactsRequest::WithContactListName
ListContactsRequest & WithContactListName(const Aws::String &value)
Definition: ListContactsRequest.h:70
Aws::SESV2::SESV2Request
Definition: SESV2Request.h:17
Aws::SESV2::Model::ListContactsRequest::ContactListNameHasBeenSet
bool ContactListNameHasBeenSet() const
Definition: ListContactsRequest.h:50
Aws::SESV2::Model::ListContactsRequest::WithPageSize
ListContactsRequest & WithPageSize(int value)
Definition: ListContactsRequest.h:152
Aws::SESV2::Model::ListContactsRequest::WithContactListName
ListContactsRequest & WithContactListName(const char *value)
Definition: ListContactsRequest.h:80
Aws::SESV2::Model::ListContactsRequest::GetPageSize
int GetPageSize() const
Definition: ListContactsRequest.h:122
AWSString.h
SESV2_EXPORTS.h
Aws::SESV2::Model::ListContactsRequest::WithNextToken
ListContactsRequest & WithNextToken(Aws::String &&value)
Definition: ListContactsRequest.h:209
Aws::SESV2::Model::ListContactsRequest::SetContactListName
void SetContactListName(const char *value)
Definition: ListContactsRequest.h:65
Aws::SESV2::Model::ListContactsRequest::SetFilter
void SetFilter(ListContactsFilter &&value)
Definition: ListContactsRequest.h:101
Aws
Definition: AccessManagementClient.h:15
Aws::SESV2::Model::ListContactsFilter
Definition: ListContactsFilter.h:34
Aws::SESV2::Model::ListContactsRequest::WithFilter
ListContactsRequest & WithFilter(const ListContactsFilter &value)
Definition: ListContactsRequest.h:106
Aws::SESV2::Model::ListContactsRequest::GetContactListName
const Aws::String & GetContactListName() const
Definition: ListContactsRequest.h:45
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SESV2::Model::ListContactsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListContactsRequest.h:35
Aws::SESV2::Model::ListContactsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
SESV2Request.h
Aws::SESV2::Model::ListContactsRequest::SetFilter
void SetFilter(const ListContactsFilter &value)
Definition: ListContactsRequest.h:96
Aws::SESV2::Model::ListContactsRequest::GetFilter
const ListContactsFilter & GetFilter() const
Definition: ListContactsRequest.h:86
Aws::SESV2::Model::ListContactsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListContactsRequest.h:169