AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
SearchIndexRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/iot/IoT_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace IoT {
15namespace Model {
16
20 public:
21 AWS_IOT_API SearchIndexRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "SearchIndex"; }
28
29 AWS_IOT_API Aws::String SerializePayload() const override;
30
32
35 inline const Aws::String& GetIndexName() const { return m_indexName; }
36 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
37 template <typename IndexNameT = Aws::String>
38 void SetIndexName(IndexNameT&& value) {
39 m_indexNameHasBeenSet = true;
40 m_indexName = std::forward<IndexNameT>(value);
41 }
42 template <typename IndexNameT = Aws::String>
43 SearchIndexRequest& WithIndexName(IndexNameT&& value) {
44 SetIndexName(std::forward<IndexNameT>(value));
45 return *this;
46 }
48
50
56 inline const Aws::String& GetQueryString() const { return m_queryString; }
57 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
58 template <typename QueryStringT = Aws::String>
59 void SetQueryString(QueryStringT&& value) {
60 m_queryStringHasBeenSet = true;
61 m_queryString = std::forward<QueryStringT>(value);
62 }
63 template <typename QueryStringT = Aws::String>
64 SearchIndexRequest& WithQueryString(QueryStringT&& value) {
65 SetQueryString(std::forward<QueryStringT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::String& GetNextToken() const { return m_nextToken; }
76 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
77 template <typename NextTokenT = Aws::String>
78 void SetNextToken(NextTokenT&& value) {
79 m_nextTokenHasBeenSet = true;
80 m_nextToken = std::forward<NextTokenT>(value);
81 }
82 template <typename NextTokenT = Aws::String>
83 SearchIndexRequest& WithNextToken(NextTokenT&& value) {
84 SetNextToken(std::forward<NextTokenT>(value));
85 return *this;
86 }
88
90
98 inline int GetMaxResults() const { return m_maxResults; }
99 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
100 inline void SetMaxResults(int value) {
101 m_maxResultsHasBeenSet = true;
102 m_maxResults = value;
103 }
105 SetMaxResults(value);
106 return *this;
107 }
109
111
114 inline const Aws::String& GetQueryVersion() const { return m_queryVersion; }
115 inline bool QueryVersionHasBeenSet() const { return m_queryVersionHasBeenSet; }
116 template <typename QueryVersionT = Aws::String>
117 void SetQueryVersion(QueryVersionT&& value) {
118 m_queryVersionHasBeenSet = true;
119 m_queryVersion = std::forward<QueryVersionT>(value);
120 }
121 template <typename QueryVersionT = Aws::String>
122 SearchIndexRequest& WithQueryVersion(QueryVersionT&& value) {
123 SetQueryVersion(std::forward<QueryVersionT>(value));
124 return *this;
125 }
127 private:
128 Aws::String m_indexName;
129
130 Aws::String m_queryString;
131
132 Aws::String m_nextToken;
133
134 int m_maxResults{0};
135
136 Aws::String m_queryVersion;
137 bool m_indexNameHasBeenSet = false;
138 bool m_queryStringHasBeenSet = false;
139 bool m_nextTokenHasBeenSet = false;
140 bool m_maxResultsHasBeenSet = false;
141 bool m_queryVersionHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace IoT
146} // 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