AWS SDK for C++

AWS SDK for C++ Version 1.11.780

Loading...
Searching...
No Matches
SearchResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/SearchRecord.h>
12#include <aws/sagemaker/model/TotalHits.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 SageMaker {
26namespace Model {
28 public:
29 AWS_SAGEMAKER_API SearchResult() = default;
32
34
37 inline const Aws::Vector<SearchRecord>& GetResults() const { return m_results; }
38 template <typename ResultsT = Aws::Vector<SearchRecord>>
39 void SetResults(ResultsT&& value) {
40 m_resultsHasBeenSet = true;
41 m_results = std::forward<ResultsT>(value);
42 }
43 template <typename ResultsT = Aws::Vector<SearchRecord>>
44 SearchResult& WithResults(ResultsT&& value) {
45 SetResults(std::forward<ResultsT>(value));
46 return *this;
47 }
48 template <typename ResultsT = SearchRecord>
49 SearchResult& AddResults(ResultsT&& value) {
50 m_resultsHasBeenSet = true;
51 m_results.emplace_back(std::forward<ResultsT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::String& GetNextToken() const { return m_nextToken; }
63 template <typename NextTokenT = Aws::String>
64 void SetNextToken(NextTokenT&& value) {
65 m_nextTokenHasBeenSet = true;
66 m_nextToken = std::forward<NextTokenT>(value);
67 }
68 template <typename NextTokenT = Aws::String>
69 SearchResult& WithNextToken(NextTokenT&& value) {
70 SetNextToken(std::forward<NextTokenT>(value));
71 return *this;
72 }
74
76
79 inline const TotalHits& GetTotalHits() const { return m_totalHits; }
80 template <typename TotalHitsT = TotalHits>
81 void SetTotalHits(TotalHitsT&& value) {
82 m_totalHitsHasBeenSet = true;
83 m_totalHits = std::forward<TotalHitsT>(value);
84 }
85 template <typename TotalHitsT = TotalHits>
86 SearchResult& WithTotalHits(TotalHitsT&& value) {
87 SetTotalHits(std::forward<TotalHitsT>(value));
88 return *this;
89 }
91
93
94 inline const Aws::String& GetRequestId() const { return m_requestId; }
95 template <typename RequestIdT = Aws::String>
96 void SetRequestId(RequestIdT&& value) {
97 m_requestIdHasBeenSet = true;
98 m_requestId = std::forward<RequestIdT>(value);
99 }
100 template <typename RequestIdT = Aws::String>
101 SearchResult& WithRequestId(RequestIdT&& value) {
102 SetRequestId(std::forward<RequestIdT>(value));
103 return *this;
104 }
106 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
107
108 private:
110
111 Aws::String m_nextToken;
112
113 TotalHits m_totalHits;
114
115 Aws::String m_requestId;
116 Aws::Http::HttpResponseCode m_HttpResponseCode;
117 bool m_resultsHasBeenSet = false;
118 bool m_nextTokenHasBeenSet = false;
119 bool m_totalHitsHasBeenSet = false;
120 bool m_requestIdHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace SageMaker
125} // namespace Aws
const Aws::String & GetRequestId() const
AWS_SAGEMAKER_API SearchResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::String & GetNextToken() const
SearchResult & WithResults(ResultsT &&value)
const TotalHits & GetTotalHits() const
SearchResult & WithTotalHits(TotalHitsT &&value)
const Aws::Vector< SearchRecord > & GetResults() const
SearchResult & WithRequestId(RequestIdT &&value)
AWS_SAGEMAKER_API SearchResult()=default
SearchResult & WithNextToken(NextTokenT &&value)
void SetResults(ResultsT &&value)
AWS_SAGEMAKER_API SearchResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetTotalHits(TotalHitsT &&value)
void SetNextToken(NextTokenT &&value)
void SetRequestId(RequestIdT &&value)
SearchResult & AddResults(ResultsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue