AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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/RerankQueryContentType.h>
9#include <aws/bedrock-agent-runtime/model/RerankTextDocument.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockAgentRuntime {
21namespace Model {
22
30 public:
31 AWS_BEDROCKAGENTRUNTIME_API RerankQuery() = default;
32 AWS_BEDROCKAGENTRUNTIME_API RerankQuery(Aws::Utils::Json::JsonView jsonValue);
34 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const RerankTextDocument& GetTextQuery() const { return m_textQuery; }
41 inline bool TextQueryHasBeenSet() const { return m_textQueryHasBeenSet; }
42 template <typename TextQueryT = RerankTextDocument>
43 void SetTextQuery(TextQueryT&& value) {
44 m_textQueryHasBeenSet = true;
45 m_textQuery = std::forward<TextQueryT>(value);
46 }
47 template <typename TextQueryT = RerankTextDocument>
49 SetTextQuery(std::forward<TextQueryT>(value));
50 return *this;
51 }
53
55
58 inline RerankQueryContentType GetType() const { return m_type; }
59 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
60 inline void SetType(RerankQueryContentType value) {
61 m_typeHasBeenSet = true;
62 m_type = value;
63 }
65 SetType(value);
66 return *this;
67 }
69 private:
70 RerankTextDocument m_textQuery;
71
73 bool m_textQueryHasBeenSet = false;
74 bool m_typeHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace BedrockAgentRuntime
79} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API RerankQuery(Aws::Utils::Json::JsonView jsonValue)
const RerankTextDocument & GetTextQuery() const
Definition RerankQuery.h:40
void SetType(RerankQueryContentType value)
Definition RerankQuery.h:60
AWS_BEDROCKAGENTRUNTIME_API RerankQuery()=default
RerankQuery & WithType(RerankQueryContentType value)
Definition RerankQuery.h:64
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:48
RerankQueryContentType GetType() const
Definition RerankQuery.h:58
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue