AWS SDK for C++

AWS SDK for C++ Version 1.11.786

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/datazone/DataZone_EXPORTS.h>
11#include <aws/datazone/model/SearchInventoryResultItem.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace DataZone {
25namespace Model {
27 public:
28 AWS_DATAZONE_API SearchResult() = default;
31
33
36 inline const Aws::Vector<SearchInventoryResultItem>& GetItems() const { return m_items; }
37 template <typename ItemsT = Aws::Vector<SearchInventoryResultItem>>
38 void SetItems(ItemsT&& value) {
39 m_itemsHasBeenSet = true;
40 m_items = std::forward<ItemsT>(value);
41 }
42 template <typename ItemsT = Aws::Vector<SearchInventoryResultItem>>
43 SearchResult& WithItems(ItemsT&& value) {
44 SetItems(std::forward<ItemsT>(value));
45 return *this;
46 }
47 template <typename ItemsT = SearchInventoryResultItem>
48 SearchResult& AddItems(ItemsT&& value) {
49 m_itemsHasBeenSet = true;
50 m_items.emplace_back(std::forward<ItemsT>(value));
51 return *this;
52 }
54
56
64 inline const Aws::String& GetNextToken() const { return m_nextToken; }
65 template <typename NextTokenT = Aws::String>
66 void SetNextToken(NextTokenT&& value) {
67 m_nextTokenHasBeenSet = true;
68 m_nextToken = std::forward<NextTokenT>(value);
69 }
70 template <typename NextTokenT = Aws::String>
71 SearchResult& WithNextToken(NextTokenT&& value) {
72 SetNextToken(std::forward<NextTokenT>(value));
73 return *this;
74 }
76
78
81 inline int GetTotalMatchCount() const { return m_totalMatchCount; }
82 inline void SetTotalMatchCount(int value) {
83 m_totalMatchCountHasBeenSet = true;
84 m_totalMatchCount = value;
85 }
86 inline SearchResult& WithTotalMatchCount(int value) {
87 SetTotalMatchCount(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 int m_totalMatchCount{0};
114
115 Aws::String m_requestId;
116 Aws::Http::HttpResponseCode m_HttpResponseCode;
117 bool m_itemsHasBeenSet = false;
118 bool m_nextTokenHasBeenSet = false;
119 bool m_totalMatchCountHasBeenSet = false;
120 bool m_requestIdHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace DataZone
125} // namespace Aws
AWS_DATAZONE_API SearchResult()=default
const Aws::String & GetNextToken() const
SearchResult & WithRequestId(RequestIdT &&value)
SearchResult & WithItems(ItemsT &&value)
void SetRequestId(RequestIdT &&value)
AWS_DATAZONE_API SearchResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
SearchResult & WithNextToken(NextTokenT &&value)
const Aws::String & GetRequestId() const
SearchResult & AddItems(ItemsT &&value)
AWS_DATAZONE_API SearchResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
SearchResult & WithTotalMatchCount(int value)
const Aws::Vector< SearchInventoryResultItem > & GetItems() const
void SetNextToken(NextTokenT &&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