AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetIndexName(const Aws::String& value) { m_indexNameHasBeenSet = true; m_indexName = value; }
42 inline void SetIndexName(Aws::String&& value) { m_indexNameHasBeenSet = true; m_indexName = std::move(value); }
43 inline void SetIndexName(const char* value) { m_indexNameHasBeenSet = true; m_indexName.assign(value); }
44 inline SearchIndexRequest& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;}
45 inline SearchIndexRequest& WithIndexName(Aws::String&& value) { SetIndexName(std::move(value)); return *this;}
46 inline SearchIndexRequest& WithIndexName(const char* value) { SetIndexName(value); return *this;}
48
50
56 inline const Aws::String& GetQueryString() const{ return m_queryString; }
57 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
58 inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; }
59 inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); }
60 inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); }
61 inline SearchIndexRequest& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;}
62 inline SearchIndexRequest& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;}
63 inline SearchIndexRequest& WithQueryString(const char* value) { SetQueryString(value); return *this;}
65
67
71 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
72 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
73 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
74 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
75 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
76 inline SearchIndexRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
77 inline SearchIndexRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
78 inline SearchIndexRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
80
82
90 inline int GetMaxResults() const{ return m_maxResults; }
91 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
92 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
93 inline SearchIndexRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
95
97
100 inline const Aws::String& GetQueryVersion() const{ return m_queryVersion; }
101 inline bool QueryVersionHasBeenSet() const { return m_queryVersionHasBeenSet; }
102 inline void SetQueryVersion(const Aws::String& value) { m_queryVersionHasBeenSet = true; m_queryVersion = value; }
103 inline void SetQueryVersion(Aws::String&& value) { m_queryVersionHasBeenSet = true; m_queryVersion = std::move(value); }
104 inline void SetQueryVersion(const char* value) { m_queryVersionHasBeenSet = true; m_queryVersion.assign(value); }
105 inline SearchIndexRequest& WithQueryVersion(const Aws::String& value) { SetQueryVersion(value); return *this;}
106 inline SearchIndexRequest& WithQueryVersion(Aws::String&& value) { SetQueryVersion(std::move(value)); return *this;}
107 inline SearchIndexRequest& WithQueryVersion(const char* value) { SetQueryVersion(value); return *this;}
109 private:
110
111 Aws::String m_indexName;
112 bool m_indexNameHasBeenSet = false;
113
114 Aws::String m_queryString;
115 bool m_queryStringHasBeenSet = false;
116
117 Aws::String m_nextToken;
118 bool m_nextTokenHasBeenSet = false;
119
120 int m_maxResults;
121 bool m_maxResultsHasBeenSet = false;
122
123 Aws::String m_queryVersion;
124 bool m_queryVersionHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace IoT
129} // namespace Aws
AWS_IOT_API Aws::String SerializePayload() const override
void SetNextToken(Aws::String &&value)
SearchIndexRequest & WithQueryString(const char *value)
void SetIndexName(const Aws::String &value)
void SetQueryVersion(const Aws::String &value)
void SetQueryString(Aws::String &&value)
void SetIndexName(Aws::String &&value)
const Aws::String & GetQueryString() const
SearchIndexRequest & WithIndexName(const char *value)
void SetQueryVersion(Aws::String &&value)
SearchIndexRequest & WithMaxResults(int value)
SearchIndexRequest & WithIndexName(Aws::String &&value)
SearchIndexRequest & WithNextToken(const Aws::String &value)
SearchIndexRequest & WithQueryString(const Aws::String &value)
void SetNextToken(const Aws::String &value)
SearchIndexRequest & WithQueryVersion(const char *value)
const Aws::String & GetIndexName() const
const Aws::String & GetQueryVersion() const
const Aws::String & GetNextToken() const
virtual const char * GetServiceRequestName() const override
SearchIndexRequest & WithQueryString(Aws::String &&value)
SearchIndexRequest & WithNextToken(Aws::String &&value)
SearchIndexRequest & WithNextToken(const char *value)
SearchIndexRequest & WithQueryVersion(Aws::String &&value)
void SetQueryString(const Aws::String &value)
SearchIndexRequest & WithQueryVersion(const Aws::String &value)
SearchIndexRequest & WithIndexName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String