AWS SDK for C++  1.9.129
AWS SDK for C++
UpdateQuerySuggestionsConfigRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/kendra/model/Mode.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace kendra
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "UpdateQuerySuggestionsConfig"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
42  inline const Aws::String& GetIndexId() const{ return m_indexId; }
43 
48  inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
49 
54  inline void SetIndexId(const Aws::String& value) { m_indexIdHasBeenSet = true; m_indexId = value; }
55 
60  inline void SetIndexId(Aws::String&& value) { m_indexIdHasBeenSet = true; m_indexId = std::move(value); }
61 
66  inline void SetIndexId(const char* value) { m_indexIdHasBeenSet = true; m_indexId.assign(value); }
67 
72  inline UpdateQuerySuggestionsConfigRequest& WithIndexId(const Aws::String& value) { SetIndexId(value); return *this;}
73 
78  inline UpdateQuerySuggestionsConfigRequest& WithIndexId(Aws::String&& value) { SetIndexId(std::move(value)); return *this;}
79 
84  inline UpdateQuerySuggestionsConfigRequest& WithIndexId(const char* value) { SetIndexId(value); return *this;}
85 
86 
95  inline const Mode& GetMode() const{ return m_mode; }
96 
105  inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
106 
115  inline void SetMode(const Mode& value) { m_modeHasBeenSet = true; m_mode = value; }
116 
125  inline void SetMode(Mode&& value) { m_modeHasBeenSet = true; m_mode = std::move(value); }
126 
135  inline UpdateQuerySuggestionsConfigRequest& WithMode(const Mode& value) { SetMode(value); return *this;}
136 
145  inline UpdateQuerySuggestionsConfigRequest& WithMode(Mode&& value) { SetMode(std::move(value)); return *this;}
146 
147 
153  inline int GetQueryLogLookBackWindowInDays() const{ return m_queryLogLookBackWindowInDays; }
154 
160  inline bool QueryLogLookBackWindowInDaysHasBeenSet() const { return m_queryLogLookBackWindowInDaysHasBeenSet; }
161 
167  inline void SetQueryLogLookBackWindowInDays(int value) { m_queryLogLookBackWindowInDaysHasBeenSet = true; m_queryLogLookBackWindowInDays = value; }
168 
174  inline UpdateQuerySuggestionsConfigRequest& WithQueryLogLookBackWindowInDays(int value) { SetQueryLogLookBackWindowInDays(value); return *this;}
175 
176 
189  inline bool GetIncludeQueriesWithoutUserInformation() const{ return m_includeQueriesWithoutUserInformation; }
190 
203  inline bool IncludeQueriesWithoutUserInformationHasBeenSet() const { return m_includeQueriesWithoutUserInformationHasBeenSet; }
204 
217  inline void SetIncludeQueriesWithoutUserInformation(bool value) { m_includeQueriesWithoutUserInformationHasBeenSet = true; m_includeQueriesWithoutUserInformation = value; }
218 
231  inline UpdateQuerySuggestionsConfigRequest& WithIncludeQueriesWithoutUserInformation(bool value) { SetIncludeQueriesWithoutUserInformation(value); return *this;}
232 
233 
241  inline int GetMinimumNumberOfQueryingUsers() const{ return m_minimumNumberOfQueryingUsers; }
242 
250  inline bool MinimumNumberOfQueryingUsersHasBeenSet() const { return m_minimumNumberOfQueryingUsersHasBeenSet; }
251 
259  inline void SetMinimumNumberOfQueryingUsers(int value) { m_minimumNumberOfQueryingUsersHasBeenSet = true; m_minimumNumberOfQueryingUsers = value; }
260 
268  inline UpdateQuerySuggestionsConfigRequest& WithMinimumNumberOfQueryingUsers(int value) { SetMinimumNumberOfQueryingUsers(value); return *this;}
269 
270 
278  inline int GetMinimumQueryCount() const{ return m_minimumQueryCount; }
279 
287  inline bool MinimumQueryCountHasBeenSet() const { return m_minimumQueryCountHasBeenSet; }
288 
296  inline void SetMinimumQueryCount(int value) { m_minimumQueryCountHasBeenSet = true; m_minimumQueryCount = value; }
297 
305  inline UpdateQuerySuggestionsConfigRequest& WithMinimumQueryCount(int value) { SetMinimumQueryCount(value); return *this;}
306 
307  private:
308 
309  Aws::String m_indexId;
310  bool m_indexIdHasBeenSet;
311 
312  Mode m_mode;
313  bool m_modeHasBeenSet;
314 
315  int m_queryLogLookBackWindowInDays;
316  bool m_queryLogLookBackWindowInDaysHasBeenSet;
317 
318  bool m_includeQueriesWithoutUserInformation;
319  bool m_includeQueriesWithoutUserInformationHasBeenSet;
320 
321  int m_minimumNumberOfQueryingUsers;
322  bool m_minimumNumberOfQueryingUsersHasBeenSet;
323 
324  int m_minimumQueryCount;
325  bool m_minimumQueryCountHasBeenSet;
326  };
327 
328 } // namespace Model
329 } // namespace kendra
330 } // namespace Aws
Aws::kendra::Model::UpdateQuerySuggestionsConfigRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateQuerySuggestionsConfigRequest.h:31
Aws::kendra::KendraRequest
Definition: KendraRequest.h:17
Aws::kendra::Model::UpdateQuerySuggestionsConfigRequest::SetMinimumNumberOfQueryingUsers
void SetMinimumNumberOfQueryingUsers(int value)
Definition: UpdateQuerySuggestionsConfigRequest.h:259
Aws::kendra::Model::UpdateQuerySuggestionsConfigRequest::SetIndexId
void SetIndexId(Aws::String &&value)
Definition: UpdateQuerySuggestionsConfigRequest.h:60
Aws::kendra::Model::UpdateQuerySuggestionsConfigRequest::WithIndexId
UpdateQuerySuggestionsConfigRequest & WithIndexId(const Aws::String &value)
Definition: UpdateQuerySuggestionsConfigRequest.h:72
Aws::kendra::Model::UpdateQuerySuggestionsConfigRequest::WithIncludeQueriesWithoutUserInformation
UpdateQuerySuggestionsConfigRequest & WithIncludeQueriesWithoutUserInformation(bool value)
Definition: UpdateQuerySuggestionsConfigRequest.h:231
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::kendra::Model::UpdateQuerySuggestionsConfigRequest::IncludeQueriesWithoutUserInformationHasBeenSet
bool IncludeQueriesWithoutUserInformationHasBeenSet() const
Definition: UpdateQuerySuggestionsConfigRequest.h:203
Aws::kendra::Model::UpdateQuerySuggestionsConfigRequest
Definition: UpdateQuerySuggestionsConfigRequest.h:23
Aws::kendra::Model::UpdateQuerySuggestionsConfigRequest::GetIndexId
const Aws::String & GetIndexId() const
Definition: UpdateQuerySuggestionsConfigRequest.h:42
KendraRequest.h
Mode.h
Aws::kendra::Model::UpdateQuerySuggestionsConfigRequest::WithMode
UpdateQuerySuggestionsConfigRequest & WithMode(const Mode &value)
Definition: UpdateQuerySuggestionsConfigRequest.h:135
Aws::kendra::Model::UpdateQuerySuggestionsConfigRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::kendra::Model::UpdateQuerySuggestionsConfigRequest::SetMode
void SetMode(Mode &&value)
Definition: UpdateQuerySuggestionsConfigRequest.h:125
Aws::kendra::Model::UpdateQuerySuggestionsConfigRequest::WithMode
UpdateQuerySuggestionsConfigRequest & WithMode(Mode &&value)
Definition: UpdateQuerySuggestionsConfigRequest.h:145
Kendra_EXPORTS.h
Aws::kendra::Model::UpdateQuerySuggestionsConfigRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::kendra::Model::Mode
Mode
Definition: Mode.h:17
Aws::kendra::Model::UpdateQuerySuggestionsConfigRequest::MinimumQueryCountHasBeenSet
bool MinimumQueryCountHasBeenSet() const
Definition: UpdateQuerySuggestionsConfigRequest.h:287
Aws::kendra::Model::UpdateQuerySuggestionsConfigRequest::SetQueryLogLookBackWindowInDays
void SetQueryLogLookBackWindowInDays(int value)
Definition: UpdateQuerySuggestionsConfigRequest.h:167
Aws::kendra::Model::UpdateQuerySuggestionsConfigRequest::SetIncludeQueriesWithoutUserInformation
void SetIncludeQueriesWithoutUserInformation(bool value)
Definition: UpdateQuerySuggestionsConfigRequest.h:217
AWSString.h
Aws::kendra::Model::UpdateQuerySuggestionsConfigRequest::WithMinimumNumberOfQueryingUsers
UpdateQuerySuggestionsConfigRequest & WithMinimumNumberOfQueryingUsers(int value)
Definition: UpdateQuerySuggestionsConfigRequest.h:268
Aws::kendra::Model::UpdateQuerySuggestionsConfigRequest::SetMinimumQueryCount
void SetMinimumQueryCount(int value)
Definition: UpdateQuerySuggestionsConfigRequest.h:296
Aws::kendra::Model::UpdateQuerySuggestionsConfigRequest::SetIndexId
void SetIndexId(const Aws::String &value)
Definition: UpdateQuerySuggestionsConfigRequest.h:54
Aws::kendra::Model::UpdateQuerySuggestionsConfigRequest::WithQueryLogLookBackWindowInDays
UpdateQuerySuggestionsConfigRequest & WithQueryLogLookBackWindowInDays(int value)
Definition: UpdateQuerySuggestionsConfigRequest.h:174
Aws::kendra::Model::UpdateQuerySuggestionsConfigRequest::GetMinimumQueryCount
int GetMinimumQueryCount() const
Definition: UpdateQuerySuggestionsConfigRequest.h:278
Aws::kendra::Model::UpdateQuerySuggestionsConfigRequest::WithIndexId
UpdateQuerySuggestionsConfigRequest & WithIndexId(const char *value)
Definition: UpdateQuerySuggestionsConfigRequest.h:84
Aws::kendra::Model::UpdateQuerySuggestionsConfigRequest::WithMinimumQueryCount
UpdateQuerySuggestionsConfigRequest & WithMinimumQueryCount(int value)
Definition: UpdateQuerySuggestionsConfigRequest.h:305
Aws::kendra::Model::UpdateQuerySuggestionsConfigRequest::ModeHasBeenSet
bool ModeHasBeenSet() const
Definition: UpdateQuerySuggestionsConfigRequest.h:105
Aws
Definition: AccessManagementClient.h:15
Aws::kendra::Model::UpdateQuerySuggestionsConfigRequest::GetMinimumNumberOfQueryingUsers
int GetMinimumNumberOfQueryingUsers() const
Definition: UpdateQuerySuggestionsConfigRequest.h:241
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::kendra::Model::UpdateQuerySuggestionsConfigRequest::WithIndexId
UpdateQuerySuggestionsConfigRequest & WithIndexId(Aws::String &&value)
Definition: UpdateQuerySuggestionsConfigRequest.h:78
Aws::kendra::Model::UpdateQuerySuggestionsConfigRequest::MinimumNumberOfQueryingUsersHasBeenSet
bool MinimumNumberOfQueryingUsersHasBeenSet() const
Definition: UpdateQuerySuggestionsConfigRequest.h:250
Aws::kendra::Model::UpdateQuerySuggestionsConfigRequest::SetMode
void SetMode(const Mode &value)
Definition: UpdateQuerySuggestionsConfigRequest.h:115
AWS_KENDRA_API
#define AWS_KENDRA_API
Definition: Kendra_EXPORTS.h:28
Aws::kendra::Model::UpdateQuerySuggestionsConfigRequest::IndexIdHasBeenSet
bool IndexIdHasBeenSet() const
Definition: UpdateQuerySuggestionsConfigRequest.h:48
Aws::kendra::Model::UpdateQuerySuggestionsConfigRequest::GetMode
const Mode & GetMode() const
Definition: UpdateQuerySuggestionsConfigRequest.h:95
Aws::kendra::Model::UpdateQuerySuggestionsConfigRequest::UpdateQuerySuggestionsConfigRequest
UpdateQuerySuggestionsConfigRequest()
Aws::kendra::Model::UpdateQuerySuggestionsConfigRequest::GetIncludeQueriesWithoutUserInformation
bool GetIncludeQueriesWithoutUserInformation() const
Definition: UpdateQuerySuggestionsConfigRequest.h:189
Aws::kendra::Model::UpdateQuerySuggestionsConfigRequest::QueryLogLookBackWindowInDaysHasBeenSet
bool QueryLogLookBackWindowInDaysHasBeenSet() const
Definition: UpdateQuerySuggestionsConfigRequest.h:160
Aws::kendra::Model::UpdateQuerySuggestionsConfigRequest::GetQueryLogLookBackWindowInDays
int GetQueryLogLookBackWindowInDays() const
Definition: UpdateQuerySuggestionsConfigRequest.h:153
Aws::kendra::Model::UpdateQuerySuggestionsConfigRequest::SetIndexId
void SetIndexId(const char *value)
Definition: UpdateQuerySuggestionsConfigRequest.h:66