AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
SearchListingsRequest.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/datazone/DataZoneRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/datazone/model/FilterClause.h>
12#include <aws/datazone/model/SearchSort.h>
13#include <aws/datazone/model/SearchOutputAdditionalAttribute.h>
14#include <aws/datazone/model/AggregationListItem.h>
15#include <aws/datazone/model/SearchInItem.h>
16#include <utility>
17
18namespace Aws
19{
20namespace DataZone
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_DATAZONE_API SearchListingsRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "SearchListings"; }
37
38 AWS_DATAZONE_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::Vector<SearchOutputAdditionalAttribute>& GetAdditionalAttributes() const { return m_additionalAttributes; }
46 inline bool AdditionalAttributesHasBeenSet() const { return m_additionalAttributesHasBeenSet; }
47 template<typename AdditionalAttributesT = Aws::Vector<SearchOutputAdditionalAttribute>>
48 void SetAdditionalAttributes(AdditionalAttributesT&& value) { m_additionalAttributesHasBeenSet = true; m_additionalAttributes = std::forward<AdditionalAttributesT>(value); }
49 template<typename AdditionalAttributesT = Aws::Vector<SearchOutputAdditionalAttribute>>
50 SearchListingsRequest& WithAdditionalAttributes(AdditionalAttributesT&& value) { SetAdditionalAttributes(std::forward<AdditionalAttributesT>(value)); return *this;}
51 inline SearchListingsRequest& AddAdditionalAttributes(SearchOutputAdditionalAttribute value) { m_additionalAttributesHasBeenSet = true; m_additionalAttributes.push_back(value); return *this; }
53
55
59 inline const Aws::Vector<AggregationListItem>& GetAggregations() const { return m_aggregations; }
60 inline bool AggregationsHasBeenSet() const { return m_aggregationsHasBeenSet; }
61 template<typename AggregationsT = Aws::Vector<AggregationListItem>>
62 void SetAggregations(AggregationsT&& value) { m_aggregationsHasBeenSet = true; m_aggregations = std::forward<AggregationsT>(value); }
63 template<typename AggregationsT = Aws::Vector<AggregationListItem>>
64 SearchListingsRequest& WithAggregations(AggregationsT&& value) { SetAggregations(std::forward<AggregationsT>(value)); return *this;}
65 template<typename AggregationsT = AggregationListItem>
66 SearchListingsRequest& AddAggregations(AggregationsT&& value) { m_aggregationsHasBeenSet = true; m_aggregations.emplace_back(std::forward<AggregationsT>(value)); return *this; }
68
70
73 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
74 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
75 template<typename DomainIdentifierT = Aws::String>
76 void SetDomainIdentifier(DomainIdentifierT&& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = std::forward<DomainIdentifierT>(value); }
77 template<typename DomainIdentifierT = Aws::String>
78 SearchListingsRequest& WithDomainIdentifier(DomainIdentifierT&& value) { SetDomainIdentifier(std::forward<DomainIdentifierT>(value)); return *this;}
80
82
85 inline const FilterClause& GetFilters() const { return m_filters; }
86 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
87 template<typename FiltersT = FilterClause>
88 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
89 template<typename FiltersT = FilterClause>
90 SearchListingsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
92
94
101 inline int GetMaxResults() const { return m_maxResults; }
102 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
103 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
104 inline SearchListingsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
106
108
116 inline const Aws::String& GetNextToken() const { return m_nextToken; }
117 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
118 template<typename NextTokenT = Aws::String>
119 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
120 template<typename NextTokenT = Aws::String>
121 SearchListingsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
123
125
128 inline const Aws::Vector<SearchInItem>& GetSearchIn() const { return m_searchIn; }
129 inline bool SearchInHasBeenSet() const { return m_searchInHasBeenSet; }
130 template<typename SearchInT = Aws::Vector<SearchInItem>>
131 void SetSearchIn(SearchInT&& value) { m_searchInHasBeenSet = true; m_searchIn = std::forward<SearchInT>(value); }
132 template<typename SearchInT = Aws::Vector<SearchInItem>>
133 SearchListingsRequest& WithSearchIn(SearchInT&& value) { SetSearchIn(std::forward<SearchInT>(value)); return *this;}
134 template<typename SearchInT = SearchInItem>
135 SearchListingsRequest& AddSearchIn(SearchInT&& value) { m_searchInHasBeenSet = true; m_searchIn.emplace_back(std::forward<SearchInT>(value)); return *this; }
137
139
142 inline const Aws::String& GetSearchText() const { return m_searchText; }
143 inline bool SearchTextHasBeenSet() const { return m_searchTextHasBeenSet; }
144 template<typename SearchTextT = Aws::String>
145 void SetSearchText(SearchTextT&& value) { m_searchTextHasBeenSet = true; m_searchText = std::forward<SearchTextT>(value); }
146 template<typename SearchTextT = Aws::String>
147 SearchListingsRequest& WithSearchText(SearchTextT&& value) { SetSearchText(std::forward<SearchTextT>(value)); return *this;}
149
151
154 inline const SearchSort& GetSort() const { return m_sort; }
155 inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
156 template<typename SortT = SearchSort>
157 void SetSort(SortT&& value) { m_sortHasBeenSet = true; m_sort = std::forward<SortT>(value); }
158 template<typename SortT = SearchSort>
159 SearchListingsRequest& WithSort(SortT&& value) { SetSort(std::forward<SortT>(value)); return *this;}
161 private:
162
164 bool m_additionalAttributesHasBeenSet = false;
165
167 bool m_aggregationsHasBeenSet = false;
168
169 Aws::String m_domainIdentifier;
170 bool m_domainIdentifierHasBeenSet = false;
171
172 FilterClause m_filters;
173 bool m_filtersHasBeenSet = false;
174
175 int m_maxResults{0};
176 bool m_maxResultsHasBeenSet = false;
177
178 Aws::String m_nextToken;
179 bool m_nextTokenHasBeenSet = false;
180
181 Aws::Vector<SearchInItem> m_searchIn;
182 bool m_searchInHasBeenSet = false;
183
184 Aws::String m_searchText;
185 bool m_searchTextHasBeenSet = false;
186
187 SearchSort m_sort;
188 bool m_sortHasBeenSet = false;
189 };
190
191} // namespace Model
192} // namespace DataZone
193} // namespace Aws
SearchListingsRequest & WithNextToken(NextTokenT &&value)
SearchListingsRequest & AddAggregations(AggregationsT &&value)
const Aws::Vector< SearchOutputAdditionalAttribute > & GetAdditionalAttributes() const
SearchListingsRequest & WithFilters(FiltersT &&value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
SearchListingsRequest & WithAdditionalAttributes(AdditionalAttributesT &&value)
SearchListingsRequest & WithMaxResults(int value)
SearchListingsRequest & AddAdditionalAttributes(SearchOutputAdditionalAttribute value)
SearchListingsRequest & AddSearchIn(SearchInT &&value)
SearchListingsRequest & WithSearchText(SearchTextT &&value)
SearchListingsRequest & WithSearchIn(SearchInT &&value)
void SetDomainIdentifier(DomainIdentifierT &&value)
const Aws::Vector< AggregationListItem > & GetAggregations() const
AWS_DATAZONE_API SearchListingsRequest()=default
const Aws::Vector< SearchInItem > & GetSearchIn() const
virtual const char * GetServiceRequestName() const override
void SetAdditionalAttributes(AdditionalAttributesT &&value)
SearchListingsRequest & WithDomainIdentifier(DomainIdentifierT &&value)
SearchListingsRequest & WithAggregations(AggregationsT &&value)
SearchListingsRequest & WithSort(SortT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector