AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/SearchInItem.h>
15#include <utility>
16
17namespace Aws
18{
19namespace DataZone
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_DATAZONE_API SearchListingsRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "SearchListings"; }
36
37 AWS_DATAZONE_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::Vector<SearchOutputAdditionalAttribute>& GetAdditionalAttributes() const{ return m_additionalAttributes; }
45 inline bool AdditionalAttributesHasBeenSet() const { return m_additionalAttributesHasBeenSet; }
46 inline void SetAdditionalAttributes(const Aws::Vector<SearchOutputAdditionalAttribute>& value) { m_additionalAttributesHasBeenSet = true; m_additionalAttributes = value; }
47 inline void SetAdditionalAttributes(Aws::Vector<SearchOutputAdditionalAttribute>&& value) { m_additionalAttributesHasBeenSet = true; m_additionalAttributes = std::move(value); }
50 inline SearchListingsRequest& AddAdditionalAttributes(const SearchOutputAdditionalAttribute& value) { m_additionalAttributesHasBeenSet = true; m_additionalAttributes.push_back(value); return *this; }
51 inline SearchListingsRequest& AddAdditionalAttributes(SearchOutputAdditionalAttribute&& value) { m_additionalAttributesHasBeenSet = true; m_additionalAttributes.push_back(std::move(value)); return *this; }
53
55
58 inline const Aws::String& GetDomainIdentifier() const{ return m_domainIdentifier; }
59 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
60 inline void SetDomainIdentifier(const Aws::String& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = value; }
61 inline void SetDomainIdentifier(Aws::String&& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = std::move(value); }
62 inline void SetDomainIdentifier(const char* value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier.assign(value); }
63 inline SearchListingsRequest& WithDomainIdentifier(const Aws::String& value) { SetDomainIdentifier(value); return *this;}
64 inline SearchListingsRequest& WithDomainIdentifier(Aws::String&& value) { SetDomainIdentifier(std::move(value)); return *this;}
65 inline SearchListingsRequest& WithDomainIdentifier(const char* value) { SetDomainIdentifier(value); return *this;}
67
69
72 inline const FilterClause& GetFilters() const{ return m_filters; }
73 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
74 inline void SetFilters(const FilterClause& value) { m_filtersHasBeenSet = true; m_filters = value; }
75 inline void SetFilters(FilterClause&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
76 inline SearchListingsRequest& WithFilters(const FilterClause& value) { SetFilters(value); return *this;}
77 inline SearchListingsRequest& WithFilters(FilterClause&& value) { SetFilters(std::move(value)); return *this;}
79
81
88 inline int GetMaxResults() const{ return m_maxResults; }
89 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
90 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
91 inline SearchListingsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
93
95
103 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
104 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
105 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
106 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
107 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
108 inline SearchListingsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
109 inline SearchListingsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
110 inline SearchListingsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
112
114
117 inline const Aws::Vector<SearchInItem>& GetSearchIn() const{ return m_searchIn; }
118 inline bool SearchInHasBeenSet() const { return m_searchInHasBeenSet; }
119 inline void SetSearchIn(const Aws::Vector<SearchInItem>& value) { m_searchInHasBeenSet = true; m_searchIn = value; }
120 inline void SetSearchIn(Aws::Vector<SearchInItem>&& value) { m_searchInHasBeenSet = true; m_searchIn = std::move(value); }
121 inline SearchListingsRequest& WithSearchIn(const Aws::Vector<SearchInItem>& value) { SetSearchIn(value); return *this;}
122 inline SearchListingsRequest& WithSearchIn(Aws::Vector<SearchInItem>&& value) { SetSearchIn(std::move(value)); return *this;}
123 inline SearchListingsRequest& AddSearchIn(const SearchInItem& value) { m_searchInHasBeenSet = true; m_searchIn.push_back(value); return *this; }
124 inline SearchListingsRequest& AddSearchIn(SearchInItem&& value) { m_searchInHasBeenSet = true; m_searchIn.push_back(std::move(value)); return *this; }
126
128
131 inline const Aws::String& GetSearchText() const{ return m_searchText; }
132 inline bool SearchTextHasBeenSet() const { return m_searchTextHasBeenSet; }
133 inline void SetSearchText(const Aws::String& value) { m_searchTextHasBeenSet = true; m_searchText = value; }
134 inline void SetSearchText(Aws::String&& value) { m_searchTextHasBeenSet = true; m_searchText = std::move(value); }
135 inline void SetSearchText(const char* value) { m_searchTextHasBeenSet = true; m_searchText.assign(value); }
136 inline SearchListingsRequest& WithSearchText(const Aws::String& value) { SetSearchText(value); return *this;}
137 inline SearchListingsRequest& WithSearchText(Aws::String&& value) { SetSearchText(std::move(value)); return *this;}
138 inline SearchListingsRequest& WithSearchText(const char* value) { SetSearchText(value); return *this;}
140
142
145 inline const SearchSort& GetSort() const{ return m_sort; }
146 inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
147 inline void SetSort(const SearchSort& value) { m_sortHasBeenSet = true; m_sort = value; }
148 inline void SetSort(SearchSort&& value) { m_sortHasBeenSet = true; m_sort = std::move(value); }
149 inline SearchListingsRequest& WithSort(const SearchSort& value) { SetSort(value); return *this;}
150 inline SearchListingsRequest& WithSort(SearchSort&& value) { SetSort(std::move(value)); return *this;}
152 private:
153
155 bool m_additionalAttributesHasBeenSet = false;
156
157 Aws::String m_domainIdentifier;
158 bool m_domainIdentifierHasBeenSet = false;
159
160 FilterClause m_filters;
161 bool m_filtersHasBeenSet = false;
162
163 int m_maxResults;
164 bool m_maxResultsHasBeenSet = false;
165
166 Aws::String m_nextToken;
167 bool m_nextTokenHasBeenSet = false;
168
169 Aws::Vector<SearchInItem> m_searchIn;
170 bool m_searchInHasBeenSet = false;
171
172 Aws::String m_searchText;
173 bool m_searchTextHasBeenSet = false;
174
175 SearchSort m_sort;
176 bool m_sortHasBeenSet = false;
177 };
178
179} // namespace Model
180} // namespace DataZone
181} // namespace Aws
SearchListingsRequest & WithFilters(FilterClause &&value)
void SetDomainIdentifier(const Aws::String &value)
void SetAdditionalAttributes(const Aws::Vector< SearchOutputAdditionalAttribute > &value)
SearchListingsRequest & WithDomainIdentifier(const char *value)
void SetAdditionalAttributes(Aws::Vector< SearchOutputAdditionalAttribute > &&value)
SearchListingsRequest & WithSearchIn(Aws::Vector< SearchInItem > &&value)
SearchListingsRequest & WithNextToken(const char *value)
const Aws::Vector< SearchOutputAdditionalAttribute > & GetAdditionalAttributes() const
SearchListingsRequest & WithDomainIdentifier(const Aws::String &value)
SearchListingsRequest & WithSearchText(Aws::String &&value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
SearchListingsRequest & WithMaxResults(int value)
SearchListingsRequest & AddSearchIn(const SearchInItem &value)
SearchListingsRequest & WithNextToken(const Aws::String &value)
SearchListingsRequest & WithSearchText(const Aws::String &value)
SearchListingsRequest & AddAdditionalAttributes(SearchOutputAdditionalAttribute &&value)
SearchListingsRequest & WithAdditionalAttributes(Aws::Vector< SearchOutputAdditionalAttribute > &&value)
const Aws::Vector< SearchInItem > & GetSearchIn() const
void SetSearchIn(Aws::Vector< SearchInItem > &&value)
SearchListingsRequest & WithNextToken(Aws::String &&value)
SearchListingsRequest & WithAdditionalAttributes(const Aws::Vector< SearchOutputAdditionalAttribute > &value)
virtual const char * GetServiceRequestName() const override
SearchListingsRequest & WithDomainIdentifier(Aws::String &&value)
void SetSearchIn(const Aws::Vector< SearchInItem > &value)
SearchListingsRequest & WithSearchIn(const Aws::Vector< SearchInItem > &value)
SearchListingsRequest & WithSort(SearchSort &&value)
SearchListingsRequest & WithSort(const SearchSort &value)
SearchListingsRequest & AddSearchIn(SearchInItem &&value)
SearchListingsRequest & AddAdditionalAttributes(const SearchOutputAdditionalAttribute &value)
SearchListingsRequest & WithSearchText(const char *value)
SearchListingsRequest & WithFilters(const FilterClause &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector