AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
SearchResult.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sagemaker/model/TotalHits.h>
11#include <aws/sagemaker/model/SearchRecord.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace SageMaker
27{
28namespace Model
29{
31 {
32 public:
33 AWS_SAGEMAKER_API SearchResult() = default;
36
37
39
42 inline const Aws::Vector<SearchRecord>& GetResults() const { return m_results; }
43 template<typename ResultsT = Aws::Vector<SearchRecord>>
44 void SetResults(ResultsT&& value) { m_resultsHasBeenSet = true; m_results = std::forward<ResultsT>(value); }
45 template<typename ResultsT = Aws::Vector<SearchRecord>>
46 SearchResult& WithResults(ResultsT&& value) { SetResults(std::forward<ResultsT>(value)); return *this;}
47 template<typename ResultsT = SearchRecord>
48 SearchResult& AddResults(ResultsT&& value) { m_resultsHasBeenSet = true; m_results.emplace_back(std::forward<ResultsT>(value)); return *this; }
50
52
57 inline const Aws::String& GetNextToken() const { return m_nextToken; }
58 template<typename NextTokenT = Aws::String>
59 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
60 template<typename NextTokenT = Aws::String>
61 SearchResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
63
65
68 inline const TotalHits& GetTotalHits() const { return m_totalHits; }
69 template<typename TotalHitsT = TotalHits>
70 void SetTotalHits(TotalHitsT&& value) { m_totalHitsHasBeenSet = true; m_totalHits = std::forward<TotalHitsT>(value); }
71 template<typename TotalHitsT = TotalHits>
72 SearchResult& WithTotalHits(TotalHitsT&& value) { SetTotalHits(std::forward<TotalHitsT>(value)); return *this;}
74
76
77 inline const Aws::String& GetRequestId() const { return m_requestId; }
78 template<typename RequestIdT = Aws::String>
79 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
80 template<typename RequestIdT = Aws::String>
81 SearchResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
83 private:
84
86 bool m_resultsHasBeenSet = false;
87
88 Aws::String m_nextToken;
89 bool m_nextTokenHasBeenSet = false;
90
91 TotalHits m_totalHits;
92 bool m_totalHitsHasBeenSet = false;
93
94 Aws::String m_requestId;
95 bool m_requestIdHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace SageMaker
100} // namespace Aws
const Aws::String & GetRequestId() const
AWS_SAGEMAKER_API SearchResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
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