AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
50 inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
51 inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
53 inline SearchResourcesRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
54 inline SearchResourcesRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
56
58
63 inline const Aws::String& GetQueryText() const{ return m_queryText; }
64 inline bool QueryTextHasBeenSet() const { return m_queryTextHasBeenSet; }
65 inline void SetQueryText(const Aws::String& value) { m_queryTextHasBeenSet = true; m_queryText = value; }
66 inline void SetQueryText(Aws::String&& value) { m_queryTextHasBeenSet = true; m_queryText = std::move(value); }
67 inline void SetQueryText(const char* value) { m_queryTextHasBeenSet = true; m_queryText.assign(value); }
68 inline SearchResourcesRequest& WithQueryText(const Aws::String& value) { SetQueryText(value); return *this;}
69 inline SearchResourcesRequest& WithQueryText(Aws::String&& value) { SetQueryText(std::move(value)); return *this;}
70 inline SearchResourcesRequest& WithQueryText(const char* value) { SetQueryText(value); return *this;}
72
74
79 inline const Aws::Vector<SearchQueryScopeType>& GetQueryScopes() const{ return m_queryScopes; }
80 inline bool QueryScopesHasBeenSet() const { return m_queryScopesHasBeenSet; }
81 inline void SetQueryScopes(const Aws::Vector<SearchQueryScopeType>& value) { m_queryScopesHasBeenSet = true; m_queryScopes = value; }
82 inline void SetQueryScopes(Aws::Vector<SearchQueryScopeType>&& value) { m_queryScopesHasBeenSet = true; m_queryScopes = std::move(value); }
85 inline SearchResourcesRequest& AddQueryScopes(const SearchQueryScopeType& value) { m_queryScopesHasBeenSet = true; m_queryScopes.push_back(value); return *this; }
86 inline SearchResourcesRequest& AddQueryScopes(SearchQueryScopeType&& value) { m_queryScopesHasBeenSet = true; m_queryScopes.push_back(std::move(value)); return *this; }
88
90
94 inline const Aws::String& GetOrganizationId() const{ return m_organizationId; }
95 inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
96 inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
97 inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
98 inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
99 inline SearchResourcesRequest& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;}
100 inline SearchResourcesRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
101 inline SearchResourcesRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
103
105
109 inline const Aws::Vector<AdditionalResponseFieldType>& GetAdditionalResponseFields() const{ return m_additionalResponseFields; }
110 inline bool AdditionalResponseFieldsHasBeenSet() const { return m_additionalResponseFieldsHasBeenSet; }
111 inline void SetAdditionalResponseFields(const Aws::Vector<AdditionalResponseFieldType>& value) { m_additionalResponseFieldsHasBeenSet = true; m_additionalResponseFields = value; }
112 inline void SetAdditionalResponseFields(Aws::Vector<AdditionalResponseFieldType>&& value) { m_additionalResponseFieldsHasBeenSet = true; m_additionalResponseFields = std::move(value); }
115 inline SearchResourcesRequest& AddAdditionalResponseFields(const AdditionalResponseFieldType& value) { m_additionalResponseFieldsHasBeenSet = true; m_additionalResponseFields.push_back(value); return *this; }
116 inline SearchResourcesRequest& AddAdditionalResponseFields(AdditionalResponseFieldType&& value) { m_additionalResponseFieldsHasBeenSet = true; m_additionalResponseFields.push_back(std::move(value)); return *this; }
118
120
123 inline const Filters& GetFilters() const{ return m_filters; }
124 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
125 inline void SetFilters(const Filters& value) { m_filtersHasBeenSet = true; m_filters = value; }
126 inline void SetFilters(Filters&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
127 inline SearchResourcesRequest& WithFilters(const Filters& value) { SetFilters(value); return *this;}
128 inline SearchResourcesRequest& WithFilters(Filters&& value) { SetFilters(std::move(value)); return *this;}
130
132
135 inline const Aws::Vector<SearchSortResult>& GetOrderBy() const{ return m_orderBy; }
136 inline bool OrderByHasBeenSet() const { return m_orderByHasBeenSet; }
137 inline void SetOrderBy(const Aws::Vector<SearchSortResult>& value) { m_orderByHasBeenSet = true; m_orderBy = value; }
138 inline void SetOrderBy(Aws::Vector<SearchSortResult>&& value) { m_orderByHasBeenSet = true; m_orderBy = std::move(value); }
139 inline SearchResourcesRequest& WithOrderBy(const Aws::Vector<SearchSortResult>& value) { SetOrderBy(value); return *this;}
140 inline SearchResourcesRequest& WithOrderBy(Aws::Vector<SearchSortResult>&& value) { SetOrderBy(std::move(value)); return *this;}
141 inline SearchResourcesRequest& AddOrderBy(const SearchSortResult& value) { m_orderByHasBeenSet = true; m_orderBy.push_back(value); return *this; }
142 inline SearchResourcesRequest& AddOrderBy(SearchSortResult&& value) { m_orderByHasBeenSet = true; m_orderBy.push_back(std::move(value)); return *this; }
144
146
149 inline int GetLimit() const{ return m_limit; }
150 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
151 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
152 inline SearchResourcesRequest& WithLimit(int value) { SetLimit(value); return *this;}
154
156
159 inline const Aws::String& GetMarker() const{ return m_marker; }
160 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
161 inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
162 inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
163 inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
164 inline SearchResourcesRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
165 inline SearchResourcesRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
166 inline SearchResourcesRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
168 private:
169
170 Aws::String m_authenticationToken;
171 bool m_authenticationTokenHasBeenSet = false;
172
173 Aws::String m_queryText;
174 bool m_queryTextHasBeenSet = false;
175
177 bool m_queryScopesHasBeenSet = false;
178
179 Aws::String m_organizationId;
180 bool m_organizationIdHasBeenSet = false;
181
182 Aws::Vector<AdditionalResponseFieldType> m_additionalResponseFields;
183 bool m_additionalResponseFieldsHasBeenSet = false;
184
185 Filters m_filters;
186 bool m_filtersHasBeenSet = false;
187
189 bool m_orderByHasBeenSet = false;
190
191 int m_limit;
192 bool m_limitHasBeenSet = false;
193
194 Aws::String m_marker;
195 bool m_markerHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace WorkDocs
200} // namespace Aws
SearchResourcesRequest & WithFilters(const Filters &value)
virtual const char * GetServiceRequestName() const override
AWS_WORKDOCS_API Aws::String SerializePayload() const override
SearchResourcesRequest & AddQueryScopes(const SearchQueryScopeType &value)
void SetOrderBy(Aws::Vector< SearchSortResult > &&value)
SearchResourcesRequest & WithQueryText(const Aws::String &value)
SearchResourcesRequest & WithAdditionalResponseFields(Aws::Vector< AdditionalResponseFieldType > &&value)
SearchResourcesRequest & AddAdditionalResponseFields(const AdditionalResponseFieldType &value)
SearchResourcesRequest & AddAdditionalResponseFields(AdditionalResponseFieldType &&value)
const Aws::Vector< AdditionalResponseFieldType > & GetAdditionalResponseFields() const
SearchResourcesRequest & WithQueryText(const char *value)
void SetOrderBy(const Aws::Vector< SearchSortResult > &value)
SearchResourcesRequest & WithMarker(const char *value)
SearchResourcesRequest & WithFilters(Filters &&value)
SearchResourcesRequest & AddQueryScopes(SearchQueryScopeType &&value)
SearchResourcesRequest & WithQueryScopes(const Aws::Vector< SearchQueryScopeType > &value)
SearchResourcesRequest & WithOrganizationId(const char *value)
void SetQueryScopes(const Aws::Vector< SearchQueryScopeType > &value)
SearchResourcesRequest & WithMarker(Aws::String &&value)
SearchResourcesRequest & WithAuthenticationToken(const Aws::String &value)
SearchResourcesRequest & WithAuthenticationToken(Aws::String &&value)
SearchResourcesRequest & WithOrganizationId(Aws::String &&value)
SearchResourcesRequest & WithLimit(int value)
SearchResourcesRequest & WithMarker(const Aws::String &value)
SearchResourcesRequest & WithOrderBy(Aws::Vector< SearchSortResult > &&value)
const Aws::Vector< SearchQueryScopeType > & GetQueryScopes() const
const Aws::Vector< SearchSortResult > & GetOrderBy() const
void SetAdditionalResponseFields(Aws::Vector< AdditionalResponseFieldType > &&value)
void SetAdditionalResponseFields(const Aws::Vector< AdditionalResponseFieldType > &value)
SearchResourcesRequest & WithQueryScopes(Aws::Vector< SearchQueryScopeType > &&value)
void SetQueryScopes(Aws::Vector< SearchQueryScopeType > &&value)
SearchResourcesRequest & WithOrganizationId(const Aws::String &value)
void SetAuthenticationToken(const Aws::String &value)
SearchResourcesRequest & AddOrderBy(SearchSortResult &&value)
SearchResourcesRequest & AddOrderBy(const SearchSortResult &value)
AWS_WORKDOCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
SearchResourcesRequest & WithQueryText(Aws::String &&value)
SearchResourcesRequest & WithAuthenticationToken(const char *value)
SearchResourcesRequest & WithOrderBy(const Aws::Vector< SearchSortResult > &value)
SearchResourcesRequest & WithAdditionalResponseFields(const Aws::Vector< AdditionalResponseFieldType > &value)
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