AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
SearchListingsResult.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/datazone/model/AggregationOutput.h>
11#include <aws/datazone/model/SearchResultItem.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 DataZone
27{
28namespace Model
29{
31 {
32 public:
33 AWS_DATAZONE_API SearchListingsResult() = default;
36
37
39
43 inline const Aws::Vector<AggregationOutput>& GetAggregates() const { return m_aggregates; }
44 template<typename AggregatesT = Aws::Vector<AggregationOutput>>
45 void SetAggregates(AggregatesT&& value) { m_aggregatesHasBeenSet = true; m_aggregates = std::forward<AggregatesT>(value); }
46 template<typename AggregatesT = Aws::Vector<AggregationOutput>>
47 SearchListingsResult& WithAggregates(AggregatesT&& value) { SetAggregates(std::forward<AggregatesT>(value)); return *this;}
48 template<typename AggregatesT = AggregationOutput>
49 SearchListingsResult& AddAggregates(AggregatesT&& value) { m_aggregatesHasBeenSet = true; m_aggregates.emplace_back(std::forward<AggregatesT>(value)); return *this; }
51
53
56 inline const Aws::Vector<SearchResultItem>& GetItems() const { return m_items; }
57 template<typename ItemsT = Aws::Vector<SearchResultItem>>
58 void SetItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items = std::forward<ItemsT>(value); }
59 template<typename ItemsT = Aws::Vector<SearchResultItem>>
60 SearchListingsResult& WithItems(ItemsT&& value) { SetItems(std::forward<ItemsT>(value)); return *this;}
61 template<typename ItemsT = SearchResultItem>
62 SearchListingsResult& AddItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items.emplace_back(std::forward<ItemsT>(value)); return *this; }
64
66
74 inline const Aws::String& GetNextToken() const { return m_nextToken; }
75 template<typename NextTokenT = Aws::String>
76 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
77 template<typename NextTokenT = Aws::String>
78 SearchListingsResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
80
82
85 inline int GetTotalMatchCount() const { return m_totalMatchCount; }
86 inline void SetTotalMatchCount(int value) { m_totalMatchCountHasBeenSet = true; m_totalMatchCount = value; }
87 inline SearchListingsResult& WithTotalMatchCount(int value) { SetTotalMatchCount(value); return *this;}
89
91
92 inline const Aws::String& GetRequestId() const { return m_requestId; }
93 template<typename RequestIdT = Aws::String>
94 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
95 template<typename RequestIdT = Aws::String>
96 SearchListingsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
98 private:
99
101 bool m_aggregatesHasBeenSet = false;
102
104 bool m_itemsHasBeenSet = false;
105
106 Aws::String m_nextToken;
107 bool m_nextTokenHasBeenSet = false;
108
109 int m_totalMatchCount{0};
110 bool m_totalMatchCountHasBeenSet = false;
111
112 Aws::String m_requestId;
113 bool m_requestIdHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace DataZone
118} // 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