AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SearchIndexRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace IoT
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_IOT_API SearchIndexRequest() = default;
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_IOT_API Aws::String SerializePayload() const override;
33
34
36
39 inline const Aws::String& GetIndexName() const { return m_indexName; }
40 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
41 template<typename IndexNameT = Aws::String>
42 void SetIndexName(IndexNameT&& value) { m_indexNameHasBeenSet = true; m_indexName = std::forward<IndexNameT>(value); }
43 template<typename IndexNameT = Aws::String>
44 SearchIndexRequest& WithIndexName(IndexNameT&& value) { SetIndexName(std::forward<IndexNameT>(value)); return *this;}
46
48
54 inline const Aws::String& GetQueryString() const { return m_queryString; }
55 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
56 template<typename QueryStringT = Aws::String>
57 void SetQueryString(QueryStringT&& value) { m_queryStringHasBeenSet = true; m_queryString = std::forward<QueryStringT>(value); }
58 template<typename QueryStringT = Aws::String>
59 SearchIndexRequest& WithQueryString(QueryStringT&& value) { SetQueryString(std::forward<QueryStringT>(value)); return *this;}
61
63
67 inline const Aws::String& GetNextToken() const { return m_nextToken; }
68 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
69 template<typename NextTokenT = Aws::String>
70 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
71 template<typename NextTokenT = Aws::String>
72 SearchIndexRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
74
76
84 inline int GetMaxResults() const { return m_maxResults; }
85 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
86 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
87 inline SearchIndexRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
89
91
94 inline const Aws::String& GetQueryVersion() const { return m_queryVersion; }
95 inline bool QueryVersionHasBeenSet() const { return m_queryVersionHasBeenSet; }
96 template<typename QueryVersionT = Aws::String>
97 void SetQueryVersion(QueryVersionT&& value) { m_queryVersionHasBeenSet = true; m_queryVersion = std::forward<QueryVersionT>(value); }
98 template<typename QueryVersionT = Aws::String>
99 SearchIndexRequest& WithQueryVersion(QueryVersionT&& value) { SetQueryVersion(std::forward<QueryVersionT>(value)); return *this;}
101 private:
102
103 Aws::String m_indexName;
104 bool m_indexNameHasBeenSet = false;
105
106 Aws::String m_queryString;
107 bool m_queryStringHasBeenSet = false;
108
109 Aws::String m_nextToken;
110 bool m_nextTokenHasBeenSet = false;
111
112 int m_maxResults{0};
113 bool m_maxResultsHasBeenSet = false;
114
115 Aws::String m_queryVersion;
116 bool m_queryVersionHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace IoT
121} // namespace Aws
AWS_IOT_API Aws::String SerializePayload() const override
void SetIndexName(IndexNameT &&value)
const Aws::String & GetQueryString() const
void SetQueryVersion(QueryVersionT &&value)
SearchIndexRequest & WithMaxResults(int value)
void SetNextToken(NextTokenT &&value)
SearchIndexRequest & WithNextToken(NextTokenT &&value)
void SetQueryString(QueryStringT &&value)
AWS_IOT_API SearchIndexRequest()=default
const Aws::String & GetIndexName() const
const Aws::String & GetQueryVersion() const
const Aws::String & GetNextToken() const
virtual const char * GetServiceRequestName() const override
SearchIndexRequest & WithIndexName(IndexNameT &&value)
SearchIndexRequest & WithQueryVersion(QueryVersionT &&value)
SearchIndexRequest & WithQueryString(QueryStringT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String