AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
PredictQAResultsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/quicksight/QuickSightRequest.h>
9#include <aws/quicksight/QuickSight_EXPORTS.h>
10#include <aws/quicksight/model/IncludeGeneratedAnswer.h>
11#include <aws/quicksight/model/IncludeQuickSightQIndex.h>
12
13#include <utility>
14
15namespace Aws {
16namespace QuickSight {
17namespace Model {
18
22 public:
23 AWS_QUICKSIGHT_API PredictQAResultsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "PredictQAResults"; }
30
31 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
32
34
38 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
39 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
40 template <typename AwsAccountIdT = Aws::String>
41 void SetAwsAccountId(AwsAccountIdT&& value) {
42 m_awsAccountIdHasBeenSet = true;
43 m_awsAccountId = std::forward<AwsAccountIdT>(value);
44 }
45 template <typename AwsAccountIdT = Aws::String>
46 PredictQAResultsRequest& WithAwsAccountId(AwsAccountIdT&& value) {
47 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetQueryText() const { return m_queryText; }
57 inline bool QueryTextHasBeenSet() const { return m_queryTextHasBeenSet; }
58 template <typename QueryTextT = Aws::String>
59 void SetQueryText(QueryTextT&& value) {
60 m_queryTextHasBeenSet = true;
61 m_queryText = std::forward<QueryTextT>(value);
62 }
63 template <typename QueryTextT = Aws::String>
65 SetQueryText(std::forward<QueryTextT>(value));
66 return *this;
67 }
69
71
74 inline IncludeQuickSightQIndex GetIncludeQuickSightQIndex() const { return m_includeQuickSightQIndex; }
75 inline bool IncludeQuickSightQIndexHasBeenSet() const { return m_includeQuickSightQIndexHasBeenSet; }
77 m_includeQuickSightQIndexHasBeenSet = true;
78 m_includeQuickSightQIndex = value;
79 }
82 return *this;
83 }
85
87
90 inline IncludeGeneratedAnswer GetIncludeGeneratedAnswer() const { return m_includeGeneratedAnswer; }
91 inline bool IncludeGeneratedAnswerHasBeenSet() const { return m_includeGeneratedAnswerHasBeenSet; }
93 m_includeGeneratedAnswerHasBeenSet = true;
94 m_includeGeneratedAnswer = value;
95 }
98 return *this;
99 }
101
103
106 inline int GetMaxTopicsToConsider() const { return m_maxTopicsToConsider; }
107 inline bool MaxTopicsToConsiderHasBeenSet() const { return m_maxTopicsToConsiderHasBeenSet; }
108 inline void SetMaxTopicsToConsider(int value) {
109 m_maxTopicsToConsiderHasBeenSet = true;
110 m_maxTopicsToConsider = value;
111 }
114 return *this;
115 }
117 private:
118 Aws::String m_awsAccountId;
119
120 Aws::String m_queryText;
121
123
125
126 int m_maxTopicsToConsider{0};
127 bool m_awsAccountIdHasBeenSet = false;
128 bool m_queryTextHasBeenSet = false;
129 bool m_includeQuickSightQIndexHasBeenSet = false;
130 bool m_includeGeneratedAnswerHasBeenSet = false;
131 bool m_maxTopicsToConsiderHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace QuickSight
136} // namespace Aws
virtual const char * GetServiceRequestName() const override
PredictQAResultsRequest & WithIncludeQuickSightQIndex(IncludeQuickSightQIndex value)
PredictQAResultsRequest & WithAwsAccountId(AwsAccountIdT &&value)
PredictQAResultsRequest & WithQueryText(QueryTextT &&value)
AWS_QUICKSIGHT_API PredictQAResultsRequest()=default
PredictQAResultsRequest & WithMaxTopicsToConsider(int value)
void SetIncludeQuickSightQIndex(IncludeQuickSightQIndex value)
void SetIncludeGeneratedAnswer(IncludeGeneratedAnswer value)
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
PredictQAResultsRequest & WithIncludeGeneratedAnswer(IncludeGeneratedAnswer value)
IncludeQuickSightQIndex GetIncludeQuickSightQIndex() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String