AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RerankQuery.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/RerankTextDocument.h>
9#include <aws/bedrock-agent-runtime/model/RerankQueryContentType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockAgentRuntime
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_BEDROCKAGENTRUNTIME_API RerankQuery() = default;
37 AWS_BEDROCKAGENTRUNTIME_API RerankQuery(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKAGENTRUNTIME_API RerankQuery& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const RerankTextDocument& GetTextQuery() const { return m_textQuery; }
47 inline bool TextQueryHasBeenSet() const { return m_textQueryHasBeenSet; }
48 template<typename TextQueryT = RerankTextDocument>
49 void SetTextQuery(TextQueryT&& value) { m_textQueryHasBeenSet = true; m_textQuery = std::forward<TextQueryT>(value); }
50 template<typename TextQueryT = RerankTextDocument>
51 RerankQuery& WithTextQuery(TextQueryT&& value) { SetTextQuery(std::forward<TextQueryT>(value)); return *this;}
53
55
58 inline RerankQueryContentType GetType() const { return m_type; }
59 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
60 inline void SetType(RerankQueryContentType value) { m_typeHasBeenSet = true; m_type = value; }
61 inline RerankQuery& WithType(RerankQueryContentType value) { SetType(value); return *this;}
63 private:
64
65 RerankTextDocument m_textQuery;
66 bool m_textQueryHasBeenSet = false;
67
69 bool m_typeHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace BedrockAgentRuntime
74} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API RerankQuery(Aws::Utils::Json::JsonView jsonValue)
const RerankTextDocument & GetTextQuery() const
Definition RerankQuery.h:46
void SetType(RerankQueryContentType value)
Definition RerankQuery.h:60
AWS_BEDROCKAGENTRUNTIME_API RerankQuery()=default
RerankQuery & WithType(RerankQueryContentType value)
Definition RerankQuery.h:61
AWS_BEDROCKAGENTRUNTIME_API RerankQuery & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
RerankQuery & WithTextQuery(TextQueryT &&value)
Definition RerankQuery.h:51
RerankQueryContentType GetType() const
Definition RerankQuery.h:58
Aws::Utils::Json::JsonValue JsonValue