AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
SearchListingsResult.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/AggregationOutput.h>
11#include <aws/datazone/model/SearchResultItem.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 SearchListingsResult() = default;
31
33
36 inline const Aws::Vector<SearchResultItem>& GetItems() const { return m_items; }
37 template <typename ItemsT = Aws::Vector<SearchResultItem>>
38 void SetItems(ItemsT&& value) {
39 m_itemsHasBeenSet = true;
40 m_items = std::forward<ItemsT>(value);
41 }
42 template <typename ItemsT = Aws::Vector<SearchResultItem>>
44 SetItems(std::forward<ItemsT>(value));
45 return *this;
46 }
47 template <typename ItemsT = SearchResultItem>
48 SearchListingsResult& 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 SearchListingsResult& 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 }
87 SetTotalMatchCount(value);
88 return *this;
89 }
91
93
97 inline const Aws::Vector<AggregationOutput>& GetAggregates() const { return m_aggregates; }
98 template <typename AggregatesT = Aws::Vector<AggregationOutput>>
99 void SetAggregates(AggregatesT&& value) {
100 m_aggregatesHasBeenSet = true;
101 m_aggregates = std::forward<AggregatesT>(value);
102 }
103 template <typename AggregatesT = Aws::Vector<AggregationOutput>>
104 SearchListingsResult& WithAggregates(AggregatesT&& value) {
105 SetAggregates(std::forward<AggregatesT>(value));
106 return *this;
107 }
108 template <typename AggregatesT = AggregationOutput>
109 SearchListingsResult& AddAggregates(AggregatesT&& value) {
110 m_aggregatesHasBeenSet = true;
111 m_aggregates.emplace_back(std::forward<AggregatesT>(value));
112 return *this;
113 }
115
117
118 inline const Aws::String& GetRequestId() const { return m_requestId; }
119 template <typename RequestIdT = Aws::String>
120 void SetRequestId(RequestIdT&& value) {
121 m_requestIdHasBeenSet = true;
122 m_requestId = std::forward<RequestIdT>(value);
123 }
124 template <typename RequestIdT = Aws::String>
125 SearchListingsResult& WithRequestId(RequestIdT&& value) {
126 SetRequestId(std::forward<RequestIdT>(value));
127 return *this;
128 }
130 private:
132
133 Aws::String m_nextToken;
134
135 int m_totalMatchCount{0};
136
138
139 Aws::String m_requestId;
140 bool m_itemsHasBeenSet = false;
141 bool m_nextTokenHasBeenSet = false;
142 bool m_totalMatchCountHasBeenSet = false;
143 bool m_aggregatesHasBeenSet = false;
144 bool m_requestIdHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace DataZone
149} // namespace Aws
SearchListingsResult & WithAggregates(AggregatesT &&value)
SearchListingsResult & WithItems(ItemsT &&value)
SearchListingsResult & WithTotalMatchCount(int value)
AWS_DATAZONE_API SearchListingsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
SearchListingsResult & AddAggregates(AggregatesT &&value)
const Aws::Vector< SearchResultItem > & GetItems() const
SearchListingsResult & WithNextToken(NextTokenT &&value)
const Aws::Vector< AggregationOutput > & GetAggregates() const
AWS_DATAZONE_API SearchListingsResult()=default
SearchListingsResult & AddItems(ItemsT &&value)
SearchListingsResult & WithRequestId(RequestIdT &&value)
AWS_DATAZONE_API SearchListingsResult(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