AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SearchRelevantContentRequest.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/qbusiness/QBusinessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/qbusiness/model/ContentSource.h>
11#include <aws/qbusiness/model/AttributeFilter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace QBusiness
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_QBUSINESS_API SearchRelevantContentRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "SearchRelevantContent"; }
33
34 AWS_QBUSINESS_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
42 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
43 template<typename ApplicationIdT = Aws::String>
44 void SetApplicationId(ApplicationIdT&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::forward<ApplicationIdT>(value); }
45 template<typename ApplicationIdT = Aws::String>
46 SearchRelevantContentRequest& WithApplicationId(ApplicationIdT&& value) { SetApplicationId(std::forward<ApplicationIdT>(value)); return *this;}
48
50
53 inline const Aws::String& GetQueryText() const { return m_queryText; }
54 inline bool QueryTextHasBeenSet() const { return m_queryTextHasBeenSet; }
55 template<typename QueryTextT = Aws::String>
56 void SetQueryText(QueryTextT&& value) { m_queryTextHasBeenSet = true; m_queryText = std::forward<QueryTextT>(value); }
57 template<typename QueryTextT = Aws::String>
58 SearchRelevantContentRequest& WithQueryText(QueryTextT&& value) { SetQueryText(std::forward<QueryTextT>(value)); return *this;}
60
62
65 inline const ContentSource& GetContentSource() const { return m_contentSource; }
66 inline bool ContentSourceHasBeenSet() const { return m_contentSourceHasBeenSet; }
67 template<typename ContentSourceT = ContentSource>
68 void SetContentSource(ContentSourceT&& value) { m_contentSourceHasBeenSet = true; m_contentSource = std::forward<ContentSourceT>(value); }
69 template<typename ContentSourceT = ContentSource>
70 SearchRelevantContentRequest& WithContentSource(ContentSourceT&& value) { SetContentSource(std::forward<ContentSourceT>(value)); return *this;}
72
74
75 inline const AttributeFilter& GetAttributeFilter() const { return m_attributeFilter; }
76 inline bool AttributeFilterHasBeenSet() const { return m_attributeFilterHasBeenSet; }
77 template<typename AttributeFilterT = AttributeFilter>
78 void SetAttributeFilter(AttributeFilterT&& value) { m_attributeFilterHasBeenSet = true; m_attributeFilter = std::forward<AttributeFilterT>(value); }
79 template<typename AttributeFilterT = AttributeFilter>
80 SearchRelevantContentRequest& WithAttributeFilter(AttributeFilterT&& value) { SetAttributeFilter(std::forward<AttributeFilterT>(value)); return *this;}
82
84
87 inline int GetMaxResults() const { return m_maxResults; }
88 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
89 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
90 inline SearchRelevantContentRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
92
94
98 inline const Aws::String& GetNextToken() const { return m_nextToken; }
99 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
100 template<typename NextTokenT = Aws::String>
101 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
102 template<typename NextTokenT = Aws::String>
103 SearchRelevantContentRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
105 private:
106
107 Aws::String m_applicationId;
108 bool m_applicationIdHasBeenSet = false;
109
110 Aws::String m_queryText;
111 bool m_queryTextHasBeenSet = false;
112
113 ContentSource m_contentSource;
114 bool m_contentSourceHasBeenSet = false;
115
116 AttributeFilter m_attributeFilter;
117 bool m_attributeFilterHasBeenSet = false;
118
119 int m_maxResults{0};
120 bool m_maxResultsHasBeenSet = false;
121
122 Aws::String m_nextToken;
123 bool m_nextTokenHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace QBusiness
128} // namespace Aws
SearchRelevantContentRequest & WithNextToken(NextTokenT &&value)
AWS_QBUSINESS_API SearchRelevantContentRequest()=default
AWS_QBUSINESS_API Aws::String SerializePayload() const override
SearchRelevantContentRequest & WithMaxResults(int value)
SearchRelevantContentRequest & WithAttributeFilter(AttributeFilterT &&value)
SearchRelevantContentRequest & WithApplicationId(ApplicationIdT &&value)
SearchRelevantContentRequest & WithContentSource(ContentSourceT &&value)
SearchRelevantContentRequest & WithQueryText(QueryTextT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String