AWS SDK for C++  1.9.129
AWS SDK for C++
SearchIndexRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace IoT
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "SearchIndex"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
38  inline const Aws::String& GetIndexName() const{ return m_indexName; }
39 
43  inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
44 
48  inline void SetIndexName(const Aws::String& value) { m_indexNameHasBeenSet = true; m_indexName = value; }
49 
53  inline void SetIndexName(Aws::String&& value) { m_indexNameHasBeenSet = true; m_indexName = std::move(value); }
54 
58  inline void SetIndexName(const char* value) { m_indexNameHasBeenSet = true; m_indexName.assign(value); }
59 
63  inline SearchIndexRequest& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;}
64 
68  inline SearchIndexRequest& WithIndexName(Aws::String&& value) { SetIndexName(std::move(value)); return *this;}
69 
73  inline SearchIndexRequest& WithIndexName(const char* value) { SetIndexName(value); return *this;}
74 
75 
79  inline const Aws::String& GetQueryString() const{ return m_queryString; }
80 
84  inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
85 
89  inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; }
90 
94  inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); }
95 
99  inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); }
100 
104  inline SearchIndexRequest& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;}
105 
109  inline SearchIndexRequest& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;}
110 
114  inline SearchIndexRequest& WithQueryString(const char* value) { SetQueryString(value); return *this;}
115 
116 
121  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
122 
127  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
128 
133  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
134 
139  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
140 
145  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
146 
151  inline SearchIndexRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
152 
157  inline SearchIndexRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
158 
163  inline SearchIndexRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
164 
165 
169  inline int GetMaxResults() const{ return m_maxResults; }
170 
174  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
175 
179  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
180 
184  inline SearchIndexRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
185 
186 
190  inline const Aws::String& GetQueryVersion() const{ return m_queryVersion; }
191 
195  inline bool QueryVersionHasBeenSet() const { return m_queryVersionHasBeenSet; }
196 
200  inline void SetQueryVersion(const Aws::String& value) { m_queryVersionHasBeenSet = true; m_queryVersion = value; }
201 
205  inline void SetQueryVersion(Aws::String&& value) { m_queryVersionHasBeenSet = true; m_queryVersion = std::move(value); }
206 
210  inline void SetQueryVersion(const char* value) { m_queryVersionHasBeenSet = true; m_queryVersion.assign(value); }
211 
215  inline SearchIndexRequest& WithQueryVersion(const Aws::String& value) { SetQueryVersion(value); return *this;}
216 
220  inline SearchIndexRequest& WithQueryVersion(Aws::String&& value) { SetQueryVersion(std::move(value)); return *this;}
221 
225  inline SearchIndexRequest& WithQueryVersion(const char* value) { SetQueryVersion(value); return *this;}
226 
227  private:
228 
229  Aws::String m_indexName;
230  bool m_indexNameHasBeenSet;
231 
232  Aws::String m_queryString;
233  bool m_queryStringHasBeenSet;
234 
235  Aws::String m_nextToken;
236  bool m_nextTokenHasBeenSet;
237 
238  int m_maxResults;
239  bool m_maxResultsHasBeenSet;
240 
241  Aws::String m_queryVersion;
242  bool m_queryVersionHasBeenSet;
243  };
244 
245 } // namespace Model
246 } // namespace IoT
247 } // namespace Aws
Aws::IoT::Model::SearchIndexRequest::WithIndexName
SearchIndexRequest & WithIndexName(const Aws::String &value)
Definition: SearchIndexRequest.h:63
Aws::IoT::Model::SearchIndexRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: SearchIndexRequest.h:133
Aws::IoT::Model::SearchIndexRequest::WithQueryString
SearchIndexRequest & WithQueryString(const char *value)
Definition: SearchIndexRequest.h:114
Aws::IoT::Model::SearchIndexRequest::WithMaxResults
SearchIndexRequest & WithMaxResults(int value)
Definition: SearchIndexRequest.h:184
Aws::IoT::Model::SearchIndexRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: SearchIndexRequest.h:174
Aws::IoT::Model::SearchIndexRequest::SetQueryVersion
void SetQueryVersion(const Aws::String &value)
Definition: SearchIndexRequest.h:200
Aws::IoT::Model::SearchIndexRequest::IndexNameHasBeenSet
bool IndexNameHasBeenSet() const
Definition: SearchIndexRequest.h:43
Aws::IoT::Model::SearchIndexRequest::WithQueryString
SearchIndexRequest & WithQueryString(const Aws::String &value)
Definition: SearchIndexRequest.h:104
Aws::IoT::Model::SearchIndexRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: SearchIndexRequest.h:121
Aws::IoT::Model::SearchIndexRequest::GetQueryVersion
const Aws::String & GetQueryVersion() const
Definition: SearchIndexRequest.h:190
Aws::IoT::Model::SearchIndexRequest::WithNextToken
SearchIndexRequest & WithNextToken(const Aws::String &value)
Definition: SearchIndexRequest.h:151
Aws::IoT::Model::SearchIndexRequest::GetQueryString
const Aws::String & GetQueryString() const
Definition: SearchIndexRequest.h:79
Aws::IoT::Model::SearchIndexRequest::SetQueryString
void SetQueryString(Aws::String &&value)
Definition: SearchIndexRequest.h:94
Aws::IoT::Model::SearchIndexRequest::GetIndexName
const Aws::String & GetIndexName() const
Definition: SearchIndexRequest.h:38
Aws::IoT::Model::SearchIndexRequest::SetNextToken
void SetNextToken(const char *value)
Definition: SearchIndexRequest.h:145
Aws::IoT::Model::SearchIndexRequest::SetIndexName
void SetIndexName(const char *value)
Definition: SearchIndexRequest.h:58
Aws::IoT::Model::SearchIndexRequest::QueryVersionHasBeenSet
bool QueryVersionHasBeenSet() const
Definition: SearchIndexRequest.h:195
Aws::IoT::Model::SearchIndexRequest::SetQueryString
void SetQueryString(const char *value)
Definition: SearchIndexRequest.h:99
Aws::IoT::Model::SearchIndexRequest::SearchIndexRequest
SearchIndexRequest()
AWSString.h
Aws::IoT::Model::SearchIndexRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::SearchIndexRequest
Definition: SearchIndexRequest.h:22
Aws::IoT::Model::SearchIndexRequest::WithQueryVersion
SearchIndexRequest & WithQueryVersion(const char *value)
Definition: SearchIndexRequest.h:225
Aws::IoT::Model::SearchIndexRequest::SetIndexName
void SetIndexName(Aws::String &&value)
Definition: SearchIndexRequest.h:53
Aws::IoT::Model::SearchIndexRequest::WithIndexName
SearchIndexRequest & WithIndexName(const char *value)
Definition: SearchIndexRequest.h:73
Aws::IoT::Model::SearchIndexRequest::WithNextToken
SearchIndexRequest & WithNextToken(const char *value)
Definition: SearchIndexRequest.h:163
Aws::IoT::Model::SearchIndexRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: SearchIndexRequest.h:139
Aws::IoT::Model::SearchIndexRequest::WithIndexName
SearchIndexRequest & WithIndexName(Aws::String &&value)
Definition: SearchIndexRequest.h:68
Aws::IoT::Model::SearchIndexRequest::SetMaxResults
void SetMaxResults(int value)
Definition: SearchIndexRequest.h:179
Aws::IoT::Model::SearchIndexRequest::SetQueryString
void SetQueryString(const Aws::String &value)
Definition: SearchIndexRequest.h:89
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::SearchIndexRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: SearchIndexRequest.h:127
Aws::IoT::Model::SearchIndexRequest::GetMaxResults
int GetMaxResults() const
Definition: SearchIndexRequest.h:169
Aws::IoT::Model::SearchIndexRequest::SetQueryVersion
void SetQueryVersion(const char *value)
Definition: SearchIndexRequest.h:210
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::SearchIndexRequest::WithQueryVersion
SearchIndexRequest & WithQueryVersion(Aws::String &&value)
Definition: SearchIndexRequest.h:220
IoTRequest.h
Aws::IoT::Model::SearchIndexRequest::QueryStringHasBeenSet
bool QueryStringHasBeenSet() const
Definition: SearchIndexRequest.h:84
Aws::IoT::Model::SearchIndexRequest::SetQueryVersion
void SetQueryVersion(Aws::String &&value)
Definition: SearchIndexRequest.h:205
Aws::IoT::Model::SearchIndexRequest::SetIndexName
void SetIndexName(const Aws::String &value)
Definition: SearchIndexRequest.h:48
Aws::IoT::Model::SearchIndexRequest::WithQueryVersion
SearchIndexRequest & WithQueryVersion(const Aws::String &value)
Definition: SearchIndexRequest.h:215
Aws::IoT::Model::SearchIndexRequest::WithQueryString
SearchIndexRequest & WithQueryString(Aws::String &&value)
Definition: SearchIndexRequest.h:109
Aws::IoT::Model::SearchIndexRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SearchIndexRequest.h:30
Aws::IoT::Model::SearchIndexRequest::WithNextToken
SearchIndexRequest & WithNextToken(Aws::String &&value)
Definition: SearchIndexRequest.h:157
IoT_EXPORTS.h