AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SearchResourcesRequest.h
1
6#pragma once
7#include <aws/workdocs/WorkDocs_EXPORTS.h>
8#include <aws/workdocs/WorkDocsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/workdocs/model/Filters.h>
12#include <aws/workdocs/model/SearchQueryScopeType.h>
13#include <aws/workdocs/model/AdditionalResponseFieldType.h>
14#include <aws/workdocs/model/SearchSortResult.h>
15#include <utility>
16
17namespace Aws
18{
19namespace WorkDocs
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_WORKDOCS_API SearchResourcesRequest() = default;
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 "SearchResources"; }
36
37 AWS_WORKDOCS_API Aws::String SerializePayload() const override;
38
40
41
43
47 inline const Aws::String& GetAuthenticationToken() const { return m_authenticationToken; }
48 inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
49 template<typename AuthenticationTokenT = Aws::String>
50 void SetAuthenticationToken(AuthenticationTokenT&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::forward<AuthenticationTokenT>(value); }
51 template<typename AuthenticationTokenT = Aws::String>
52 SearchResourcesRequest& WithAuthenticationToken(AuthenticationTokenT&& value) { SetAuthenticationToken(std::forward<AuthenticationTokenT>(value)); return *this;}
54
56
61 inline const Aws::String& GetQueryText() const { return m_queryText; }
62 inline bool QueryTextHasBeenSet() const { return m_queryTextHasBeenSet; }
63 template<typename QueryTextT = Aws::String>
64 void SetQueryText(QueryTextT&& value) { m_queryTextHasBeenSet = true; m_queryText = std::forward<QueryTextT>(value); }
65 template<typename QueryTextT = Aws::String>
66 SearchResourcesRequest& WithQueryText(QueryTextT&& value) { SetQueryText(std::forward<QueryTextT>(value)); return *this;}
68
70
75 inline const Aws::Vector<SearchQueryScopeType>& GetQueryScopes() const { return m_queryScopes; }
76 inline bool QueryScopesHasBeenSet() const { return m_queryScopesHasBeenSet; }
77 template<typename QueryScopesT = Aws::Vector<SearchQueryScopeType>>
78 void SetQueryScopes(QueryScopesT&& value) { m_queryScopesHasBeenSet = true; m_queryScopes = std::forward<QueryScopesT>(value); }
79 template<typename QueryScopesT = Aws::Vector<SearchQueryScopeType>>
80 SearchResourcesRequest& WithQueryScopes(QueryScopesT&& value) { SetQueryScopes(std::forward<QueryScopesT>(value)); return *this;}
81 inline SearchResourcesRequest& AddQueryScopes(SearchQueryScopeType value) { m_queryScopesHasBeenSet = true; m_queryScopes.push_back(value); return *this; }
83
85
89 inline const Aws::String& GetOrganizationId() const { return m_organizationId; }
90 inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
91 template<typename OrganizationIdT = Aws::String>
92 void SetOrganizationId(OrganizationIdT&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::forward<OrganizationIdT>(value); }
93 template<typename OrganizationIdT = Aws::String>
94 SearchResourcesRequest& WithOrganizationId(OrganizationIdT&& value) { SetOrganizationId(std::forward<OrganizationIdT>(value)); return *this;}
96
98
102 inline const Aws::Vector<AdditionalResponseFieldType>& GetAdditionalResponseFields() const { return m_additionalResponseFields; }
103 inline bool AdditionalResponseFieldsHasBeenSet() const { return m_additionalResponseFieldsHasBeenSet; }
104 template<typename AdditionalResponseFieldsT = Aws::Vector<AdditionalResponseFieldType>>
105 void SetAdditionalResponseFields(AdditionalResponseFieldsT&& value) { m_additionalResponseFieldsHasBeenSet = true; m_additionalResponseFields = std::forward<AdditionalResponseFieldsT>(value); }
106 template<typename AdditionalResponseFieldsT = Aws::Vector<AdditionalResponseFieldType>>
107 SearchResourcesRequest& WithAdditionalResponseFields(AdditionalResponseFieldsT&& value) { SetAdditionalResponseFields(std::forward<AdditionalResponseFieldsT>(value)); return *this;}
108 inline SearchResourcesRequest& AddAdditionalResponseFields(AdditionalResponseFieldType value) { m_additionalResponseFieldsHasBeenSet = true; m_additionalResponseFields.push_back(value); return *this; }
110
112
115 inline const Filters& GetFilters() const { return m_filters; }
116 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
117 template<typename FiltersT = Filters>
118 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
119 template<typename FiltersT = Filters>
120 SearchResourcesRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
122
124
127 inline const Aws::Vector<SearchSortResult>& GetOrderBy() const { return m_orderBy; }
128 inline bool OrderByHasBeenSet() const { return m_orderByHasBeenSet; }
129 template<typename OrderByT = Aws::Vector<SearchSortResult>>
130 void SetOrderBy(OrderByT&& value) { m_orderByHasBeenSet = true; m_orderBy = std::forward<OrderByT>(value); }
131 template<typename OrderByT = Aws::Vector<SearchSortResult>>
132 SearchResourcesRequest& WithOrderBy(OrderByT&& value) { SetOrderBy(std::forward<OrderByT>(value)); return *this;}
133 template<typename OrderByT = SearchSortResult>
134 SearchResourcesRequest& AddOrderBy(OrderByT&& value) { m_orderByHasBeenSet = true; m_orderBy.emplace_back(std::forward<OrderByT>(value)); return *this; }
136
138
141 inline int GetLimit() const { return m_limit; }
142 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
143 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
144 inline SearchResourcesRequest& WithLimit(int value) { SetLimit(value); return *this;}
146
148
151 inline const Aws::String& GetMarker() const { return m_marker; }
152 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
153 template<typename MarkerT = Aws::String>
154 void SetMarker(MarkerT&& value) { m_markerHasBeenSet = true; m_marker = std::forward<MarkerT>(value); }
155 template<typename MarkerT = Aws::String>
156 SearchResourcesRequest& WithMarker(MarkerT&& value) { SetMarker(std::forward<MarkerT>(value)); return *this;}
158 private:
159
160 Aws::String m_authenticationToken;
161 bool m_authenticationTokenHasBeenSet = false;
162
163 Aws::String m_queryText;
164 bool m_queryTextHasBeenSet = false;
165
167 bool m_queryScopesHasBeenSet = false;
168
169 Aws::String m_organizationId;
170 bool m_organizationIdHasBeenSet = false;
171
172 Aws::Vector<AdditionalResponseFieldType> m_additionalResponseFields;
173 bool m_additionalResponseFieldsHasBeenSet = false;
174
175 Filters m_filters;
176 bool m_filtersHasBeenSet = false;
177
179 bool m_orderByHasBeenSet = false;
180
181 int m_limit{0};
182 bool m_limitHasBeenSet = false;
183
184 Aws::String m_marker;
185 bool m_markerHasBeenSet = false;
186 };
187
188} // namespace Model
189} // namespace WorkDocs
190} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_WORKDOCS_API Aws::String SerializePayload() const override
SearchResourcesRequest & WithFilters(FiltersT &&value)
SearchResourcesRequest & AddAdditionalResponseFields(AdditionalResponseFieldType value)
SearchResourcesRequest & WithMarker(MarkerT &&value)
SearchResourcesRequest & WithQueryText(QueryTextT &&value)
const Aws::Vector< AdditionalResponseFieldType > & GetAdditionalResponseFields() const
SearchResourcesRequest & AddQueryScopes(SearchQueryScopeType value)
AWS_WORKDOCS_API SearchResourcesRequest()=default
SearchResourcesRequest & WithAdditionalResponseFields(AdditionalResponseFieldsT &&value)
void SetAdditionalResponseFields(AdditionalResponseFieldsT &&value)
SearchResourcesRequest & WithOrganizationId(OrganizationIdT &&value)
SearchResourcesRequest & WithLimit(int value)
const Aws::Vector< SearchQueryScopeType > & GetQueryScopes() const
const Aws::Vector< SearchSortResult > & GetOrderBy() const
SearchResourcesRequest & AddOrderBy(OrderByT &&value)
SearchResourcesRequest & WithQueryScopes(QueryScopesT &&value)
void SetAuthenticationToken(AuthenticationTokenT &&value)
SearchResourcesRequest & WithOrderBy(OrderByT &&value)
SearchResourcesRequest & WithAuthenticationToken(AuthenticationTokenT &&value)
AWS_WORKDOCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector