AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RerankDocument.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/utils/Document.h>
9#include <aws/bedrock-agent-runtime/model/RerankTextDocument.h>
10#include <aws/bedrock-agent-runtime/model/RerankDocumentType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace BedrockAgentRuntime
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_BEDROCKAGENTRUNTIME_API RerankDocument() = default;
39 AWS_BEDROCKAGENTRUNTIME_API RerankDocument(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BEDROCKAGENTRUNTIME_API RerankDocument& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline Aws::Utils::DocumentView GetJsonDocument() const { return m_jsonDocument; }
49 inline bool JsonDocumentHasBeenSet() const { return m_jsonDocumentHasBeenSet; }
50 template<typename JsonDocumentT = Aws::Utils::Document>
51 void SetJsonDocument(JsonDocumentT&& value) { m_jsonDocumentHasBeenSet = true; m_jsonDocument = std::forward<JsonDocumentT>(value); }
52 template<typename JsonDocumentT = Aws::Utils::Document>
53 RerankDocument& WithJsonDocument(JsonDocumentT&& value) { SetJsonDocument(std::forward<JsonDocumentT>(value)); return *this;}
55
57
60 inline const RerankTextDocument& GetTextDocument() const { return m_textDocument; }
61 inline bool TextDocumentHasBeenSet() const { return m_textDocumentHasBeenSet; }
62 template<typename TextDocumentT = RerankTextDocument>
63 void SetTextDocument(TextDocumentT&& value) { m_textDocumentHasBeenSet = true; m_textDocument = std::forward<TextDocumentT>(value); }
64 template<typename TextDocumentT = RerankTextDocument>
65 RerankDocument& WithTextDocument(TextDocumentT&& value) { SetTextDocument(std::forward<TextDocumentT>(value)); return *this;}
67
69
72 inline RerankDocumentType GetType() const { return m_type; }
73 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
74 inline void SetType(RerankDocumentType value) { m_typeHasBeenSet = true; m_type = value; }
75 inline RerankDocument& WithType(RerankDocumentType value) { SetType(value); return *this;}
77 private:
78
79 Aws::Utils::Document m_jsonDocument;
80 bool m_jsonDocumentHasBeenSet = false;
81
82 RerankTextDocument m_textDocument;
83 bool m_textDocumentHasBeenSet = false;
84
86 bool m_typeHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace BedrockAgentRuntime
91} // 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
Aws::Utils::Json::JsonValue JsonValue