AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
GetMatchesResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
12#include <aws/customer-profiles/model/MatchItem.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace CustomerProfiles {
26namespace Model {
28 public:
29 AWS_CUSTOMERPROFILES_API GetMatchesResult() = default;
32
34
38 inline const Aws::String& GetNextToken() const { return m_nextToken; }
39 template <typename NextTokenT = Aws::String>
40 void SetNextToken(NextTokenT&& value) {
41 m_nextTokenHasBeenSet = true;
42 m_nextToken = std::forward<NextTokenT>(value);
43 }
44 template <typename NextTokenT = Aws::String>
45 GetMatchesResult& WithNextToken(NextTokenT&& value) {
46 SetNextToken(std::forward<NextTokenT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::Utils::DateTime& GetMatchGenerationDate() const { return m_matchGenerationDate; }
56 template <typename MatchGenerationDateT = Aws::Utils::DateTime>
57 void SetMatchGenerationDate(MatchGenerationDateT&& value) {
58 m_matchGenerationDateHasBeenSet = true;
59 m_matchGenerationDate = std::forward<MatchGenerationDateT>(value);
60 }
61 template <typename MatchGenerationDateT = Aws::Utils::DateTime>
62 GetMatchesResult& WithMatchGenerationDate(MatchGenerationDateT&& value) {
63 SetMatchGenerationDate(std::forward<MatchGenerationDateT>(value));
64 return *this;
65 }
67
69
72 inline int GetPotentialMatches() const { return m_potentialMatches; }
73 inline void SetPotentialMatches(int value) {
74 m_potentialMatchesHasBeenSet = true;
75 m_potentialMatches = value;
76 }
79 return *this;
80 }
82
84
87 inline const Aws::Vector<MatchItem>& GetMatches() const { return m_matches; }
88 template <typename MatchesT = Aws::Vector<MatchItem>>
89 void SetMatches(MatchesT&& value) {
90 m_matchesHasBeenSet = true;
91 m_matches = std::forward<MatchesT>(value);
92 }
93 template <typename MatchesT = Aws::Vector<MatchItem>>
94 GetMatchesResult& WithMatches(MatchesT&& value) {
95 SetMatches(std::forward<MatchesT>(value));
96 return *this;
97 }
98 template <typename MatchesT = MatchItem>
99 GetMatchesResult& AddMatches(MatchesT&& value) {
100 m_matchesHasBeenSet = true;
101 m_matches.emplace_back(std::forward<MatchesT>(value));
102 return *this;
103 }
105
107
108 inline const Aws::String& GetRequestId() const { return m_requestId; }
109 template <typename RequestIdT = Aws::String>
110 void SetRequestId(RequestIdT&& value) {
111 m_requestIdHasBeenSet = true;
112 m_requestId = std::forward<RequestIdT>(value);
113 }
114 template <typename RequestIdT = Aws::String>
115 GetMatchesResult& WithRequestId(RequestIdT&& value) {
116 SetRequestId(std::forward<RequestIdT>(value));
117 return *this;
118 }
120 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
121
122 private:
123 Aws::String m_nextToken;
124
125 Aws::Utils::DateTime m_matchGenerationDate{};
126
127 int m_potentialMatches{0};
128
129 Aws::Vector<MatchItem> m_matches;
130
131 Aws::String m_requestId;
132 Aws::Http::HttpResponseCode m_HttpResponseCode;
133 bool m_nextTokenHasBeenSet = false;
134 bool m_matchGenerationDateHasBeenSet = false;
135 bool m_potentialMatchesHasBeenSet = false;
136 bool m_matchesHasBeenSet = false;
137 bool m_requestIdHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace CustomerProfiles
142} // namespace Aws
void SetMatchGenerationDate(MatchGenerationDateT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetMatchesResult & AddMatches(MatchesT &&value)
const Aws::Vector< MatchItem > & GetMatches() const
GetMatchesResult & WithPotentialMatches(int value)
GetMatchesResult & WithNextToken(NextTokenT &&value)
GetMatchesResult & WithMatches(MatchesT &&value)
AWS_CUSTOMERPROFILES_API GetMatchesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetMatchesResult & WithMatchGenerationDate(MatchGenerationDateT &&value)
GetMatchesResult & WithRequestId(RequestIdT &&value)
AWS_CUSTOMERPROFILES_API GetMatchesResult()=default
const Aws::Utils::DateTime & GetMatchGenerationDate() const
AWS_CUSTOMERPROFILES_API GetMatchesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue