AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ListContactsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sesv2/SESV2Request.h>
9#include <aws/sesv2/SESV2_EXPORTS.h>
10#include <aws/sesv2/model/ListContactsFilter.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SESV2 {
16namespace Model {
17
21 public:
22 AWS_SESV2_API ListContactsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ListContacts"; }
29
30 AWS_SESV2_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetContactListName() const { return m_contactListName; }
37 inline bool ContactListNameHasBeenSet() const { return m_contactListNameHasBeenSet; }
38 template <typename ContactListNameT = Aws::String>
39 void SetContactListName(ContactListNameT&& value) {
40 m_contactListNameHasBeenSet = true;
41 m_contactListName = std::forward<ContactListNameT>(value);
42 }
43 template <typename ContactListNameT = Aws::String>
44 ListContactsRequest& WithContactListName(ContactListNameT&& value) {
45 SetContactListName(std::forward<ContactListNameT>(value));
46 return *this;
47 }
49
51
54 inline const ListContactsFilter& GetFilter() const { return m_filter; }
55 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
56 template <typename FilterT = ListContactsFilter>
57 void SetFilter(FilterT&& value) {
58 m_filterHasBeenSet = true;
59 m_filter = std::forward<FilterT>(value);
60 }
61 template <typename FilterT = ListContactsFilter>
62 ListContactsRequest& WithFilter(FilterT&& value) {
63 SetFilter(std::forward<FilterT>(value));
64 return *this;
65 }
67
69
77 inline int GetPageSize() const { return m_pageSize; }
78 inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; }
79 inline void SetPageSize(int value) {
80 m_pageSizeHasBeenSet = true;
81 m_pageSize = value;
82 }
83 inline ListContactsRequest& WithPageSize(int value) {
84 SetPageSize(value);
85 return *this;
86 }
88
90
96 inline const Aws::String& GetNextToken() const { return m_nextToken; }
97 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
98 template <typename NextTokenT = Aws::String>
99 void SetNextToken(NextTokenT&& value) {
100 m_nextTokenHasBeenSet = true;
101 m_nextToken = std::forward<NextTokenT>(value);
102 }
103 template <typename NextTokenT = Aws::String>
104 ListContactsRequest& WithNextToken(NextTokenT&& value) {
105 SetNextToken(std::forward<NextTokenT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_contactListName;
111
112 ListContactsFilter m_filter;
113
114 int m_pageSize{0};
115
116 Aws::String m_nextToken;
117 bool m_contactListNameHasBeenSet = false;
118 bool m_filterHasBeenSet = false;
119 bool m_pageSizeHasBeenSet = false;
120 bool m_nextTokenHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace SESV2
125} // namespace Aws
const ListContactsFilter & GetFilter() const
ListContactsRequest & WithPageSize(int value)
ListContactsRequest & WithFilter(FilterT &&value)
const Aws::String & GetNextToken() const
const Aws::String & GetContactListName() const
ListContactsRequest & WithNextToken(NextTokenT &&value)
void SetContactListName(ContactListNameT &&value)
ListContactsRequest & WithContactListName(ContactListNameT &&value)
AWS_SESV2_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_SESV2_API ListContactsRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String