AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
SearchResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/datazone/DataZone_EXPORTS.h>
10#include <aws/datazone/model/SearchInventoryResultItem.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 DataZone {
24namespace Model {
26 public:
27 AWS_DATAZONE_API SearchResult() = default;
30
32
35 inline const Aws::Vector<SearchInventoryResultItem>& GetItems() const { return m_items; }
36 template <typename ItemsT = Aws::Vector<SearchInventoryResultItem>>
37 void SetItems(ItemsT&& value) {
38 m_itemsHasBeenSet = true;
39 m_items = std::forward<ItemsT>(value);
40 }
41 template <typename ItemsT = Aws::Vector<SearchInventoryResultItem>>
42 SearchResult& WithItems(ItemsT&& value) {
43 SetItems(std::forward<ItemsT>(value));
44 return *this;
45 }
46 template <typename ItemsT = SearchInventoryResultItem>
47 SearchResult& AddItems(ItemsT&& value) {
48 m_itemsHasBeenSet = true;
49 m_items.emplace_back(std::forward<ItemsT>(value));
50 return *this;
51 }
53
55
63 inline const Aws::String& GetNextToken() const { return m_nextToken; }
64 template <typename NextTokenT = Aws::String>
65 void SetNextToken(NextTokenT&& value) {
66 m_nextTokenHasBeenSet = true;
67 m_nextToken = std::forward<NextTokenT>(value);
68 }
69 template <typename NextTokenT = Aws::String>
70 SearchResult& WithNextToken(NextTokenT&& value) {
71 SetNextToken(std::forward<NextTokenT>(value));
72 return *this;
73 }
75
77
80 inline int GetTotalMatchCount() const { return m_totalMatchCount; }
81 inline void SetTotalMatchCount(int value) {
82 m_totalMatchCountHasBeenSet = true;
83 m_totalMatchCount = value;
84 }
85 inline SearchResult& WithTotalMatchCount(int value) {
86 SetTotalMatchCount(value);
87 return *this;
88 }
90
92
93 inline const Aws::String& GetRequestId() const { return m_requestId; }
94 template <typename RequestIdT = Aws::String>
95 void SetRequestId(RequestIdT&& value) {
96 m_requestIdHasBeenSet = true;
97 m_requestId = std::forward<RequestIdT>(value);
98 }
99 template <typename RequestIdT = Aws::String>
100 SearchResult& WithRequestId(RequestIdT&& value) {
101 SetRequestId(std::forward<RequestIdT>(value));
102 return *this;
103 }
105 private:
107
108 Aws::String m_nextToken;
109
110 int m_totalMatchCount{0};
111
112 Aws::String m_requestId;
113 bool m_itemsHasBeenSet = false;
114 bool m_nextTokenHasBeenSet = false;
115 bool m_totalMatchCountHasBeenSet = false;
116 bool m_requestIdHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace DataZone
121} // 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)
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