AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
RerankDocument.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/RerankDocumentType.h>
9#include <aws/bedrock-agent-runtime/model/RerankTextDocument.h>
10#include <aws/core/utils/Document.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockAgentRuntime {
22namespace Model {
23
32 public:
33 AWS_BEDROCKAGENTRUNTIME_API RerankDocument() = default;
36 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline Aws::Utils::DocumentView GetJsonDocument() const { return m_jsonDocument; }
43 inline bool JsonDocumentHasBeenSet() const { return m_jsonDocumentHasBeenSet; }
44 template <typename JsonDocumentT = Aws::Utils::Document>
46 m_jsonDocumentHasBeenSet = true;
47 m_jsonDocument = std::forward<JsonDocumentT>(value);
48 }
49 template <typename JsonDocumentT = Aws::Utils::Document>
51 SetJsonDocument(std::forward<JsonDocumentT>(value));
52 return *this;
53 }
55
57
60 inline const RerankTextDocument& GetTextDocument() const { return m_textDocument; }
61 inline bool TextDocumentHasBeenSet() const { return m_textDocumentHasBeenSet; }
62 template <typename TextDocumentT = RerankTextDocument>
64 m_textDocumentHasBeenSet = true;
65 m_textDocument = std::forward<TextDocumentT>(value);
66 }
67 template <typename TextDocumentT = RerankTextDocument>
69 SetTextDocument(std::forward<TextDocumentT>(value));
70 return *this;
71 }
73
75
78 inline RerankDocumentType GetType() const { return m_type; }
79 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
80 inline void SetType(RerankDocumentType value) {
81 m_typeHasBeenSet = true;
82 m_type = value;
83 }
85 SetType(value);
86 return *this;
87 }
89 private:
90 Aws::Utils::Document m_jsonDocument;
91
92 RerankTextDocument m_textDocument;
93
95 bool m_jsonDocumentHasBeenSet = false;
96 bool m_textDocumentHasBeenSet = false;
97 bool m_typeHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace BedrockAgentRuntime
102} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
RerankDocument & WithType(RerankDocumentType value)
RerankDocument & WithTextDocument(TextDocumentT &&value)
AWS_BEDROCKAGENTRUNTIME_API RerankDocument & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::DocumentView GetJsonDocument() const
AWS_BEDROCKAGENTRUNTIME_API RerankDocument()=default
RerankDocument & WithJsonDocument(JsonDocumentT &&value)
AWS_BEDROCKAGENTRUNTIME_API RerankDocument(Aws::Utils::Json::JsonView jsonValue)
const RerankTextDocument & GetTextDocument() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue