AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
SearchContactsResult.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/ContactSearchSummary.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace Connect {
24namespace Model {
26 public:
27 AWS_CONNECT_API SearchContactsResult() = default;
30
32
35 inline const Aws::Vector<ContactSearchSummary>& GetContacts() const { return m_contacts; }
36 template <typename ContactsT = Aws::Vector<ContactSearchSummary>>
37 void SetContacts(ContactsT&& value) {
38 m_contactsHasBeenSet = true;
39 m_contacts = std::forward<ContactsT>(value);
40 }
41 template <typename ContactsT = Aws::Vector<ContactSearchSummary>>
42 SearchContactsResult& WithContacts(ContactsT&& value) {
43 SetContacts(std::forward<ContactsT>(value));
44 return *this;
45 }
46 template <typename ContactsT = ContactSearchSummary>
47 SearchContactsResult& AddContacts(ContactsT&& value) {
48 m_contactsHasBeenSet = true;
49 m_contacts.emplace_back(std::forward<ContactsT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetNextToken() const { return m_nextToken; }
60 template <typename NextTokenT = Aws::String>
61 void SetNextToken(NextTokenT&& value) {
62 m_nextTokenHasBeenSet = true;
63 m_nextToken = std::forward<NextTokenT>(value);
64 }
65 template <typename NextTokenT = Aws::String>
66 SearchContactsResult& WithNextToken(NextTokenT&& value) {
67 SetNextToken(std::forward<NextTokenT>(value));
68 return *this;
69 }
71
73
76 inline long long GetTotalCount() const { return m_totalCount; }
77 inline void SetTotalCount(long long value) {
78 m_totalCountHasBeenSet = true;
79 m_totalCount = value;
80 }
81 inline SearchContactsResult& WithTotalCount(long long value) {
82 SetTotalCount(value);
83 return *this;
84 }
86
88
89 inline const Aws::String& GetRequestId() const { return m_requestId; }
90 template <typename RequestIdT = Aws::String>
91 void SetRequestId(RequestIdT&& value) {
92 m_requestIdHasBeenSet = true;
93 m_requestId = std::forward<RequestIdT>(value);
94 }
95 template <typename RequestIdT = Aws::String>
96 SearchContactsResult& WithRequestId(RequestIdT&& value) {
97 SetRequestId(std::forward<RequestIdT>(value));
98 return *this;
99 }
101 private:
103
104 Aws::String m_nextToken;
105
106 long long m_totalCount{0};
107
108 Aws::String m_requestId;
109 bool m_contactsHasBeenSet = false;
110 bool m_nextTokenHasBeenSet = false;
111 bool m_totalCountHasBeenSet = false;
112 bool m_requestIdHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace Connect
117} // namespace Aws
SearchContactsResult & WithNextToken(NextTokenT &&value)
AWS_CONNECT_API SearchContactsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
SearchContactsResult & WithTotalCount(long long value)
SearchContactsResult & AddContacts(ContactsT &&value)
const Aws::Vector< ContactSearchSummary > & GetContacts() const
AWS_CONNECT_API SearchContactsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
SearchContactsResult & WithRequestId(RequestIdT &&value)
SearchContactsResult & WithContacts(ContactsT &&value)
AWS_CONNECT_API SearchContactsResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue