AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SearchContentRequest.h
1
6#pragma once
7#include <aws/wisdom/ConnectWisdomService_EXPORTS.h>
8#include <aws/wisdom/ConnectWisdomServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/wisdom/model/SearchExpression.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace ConnectWisdomService
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_CONNECTWISDOMSERVICE_API SearchContentRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "SearchContent"; }
36
37 AWS_CONNECTWISDOMSERVICE_API Aws::String SerializePayload() const override;
38
39 AWS_CONNECTWISDOMSERVICE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
41
43
48 inline const Aws::String& GetKnowledgeBaseId() const{ return m_knowledgeBaseId; }
49 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
50 inline void SetKnowledgeBaseId(const Aws::String& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = value; }
51 inline void SetKnowledgeBaseId(Aws::String&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::move(value); }
52 inline void SetKnowledgeBaseId(const char* value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId.assign(value); }
53 inline SearchContentRequest& WithKnowledgeBaseId(const Aws::String& value) { SetKnowledgeBaseId(value); return *this;}
54 inline SearchContentRequest& WithKnowledgeBaseId(Aws::String&& value) { SetKnowledgeBaseId(std::move(value)); return *this;}
55 inline SearchContentRequest& WithKnowledgeBaseId(const char* value) { SetKnowledgeBaseId(value); return *this;}
57
59
62 inline int GetMaxResults() const{ return m_maxResults; }
63 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
64 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
65 inline SearchContentRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
67
69
73 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
74 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
75 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
76 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
77 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
78 inline SearchContentRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
79 inline SearchContentRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
80 inline SearchContentRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
82
84
87 inline const SearchExpression& GetSearchExpression() const{ return m_searchExpression; }
88 inline bool SearchExpressionHasBeenSet() const { return m_searchExpressionHasBeenSet; }
89 inline void SetSearchExpression(const SearchExpression& value) { m_searchExpressionHasBeenSet = true; m_searchExpression = value; }
90 inline void SetSearchExpression(SearchExpression&& value) { m_searchExpressionHasBeenSet = true; m_searchExpression = std::move(value); }
92 inline SearchContentRequest& WithSearchExpression(SearchExpression&& value) { SetSearchExpression(std::move(value)); return *this;}
94 private:
95
96 Aws::String m_knowledgeBaseId;
97 bool m_knowledgeBaseIdHasBeenSet = false;
98
99 int m_maxResults;
100 bool m_maxResultsHasBeenSet = false;
101
102 Aws::String m_nextToken;
103 bool m_nextTokenHasBeenSet = false;
104
105 SearchExpression m_searchExpression;
106 bool m_searchExpressionHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace ConnectWisdomService
111} // namespace Aws
SearchContentRequest & WithKnowledgeBaseId(Aws::String &&value)
SearchContentRequest & WithNextToken(const char *value)
AWS_CONNECTWISDOMSERVICE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
SearchContentRequest & WithKnowledgeBaseId(const char *value)
SearchContentRequest & WithNextToken(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
SearchContentRequest & WithKnowledgeBaseId(const Aws::String &value)
SearchContentRequest & WithSearchExpression(SearchExpression &&value)
AWS_CONNECTWISDOMSERVICE_API SearchContentRequest()
SearchContentRequest & WithNextToken(Aws::String &&value)
SearchContentRequest & WithSearchExpression(const SearchExpression &value)
AWS_CONNECTWISDOMSERVICE_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String