AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RerankSource.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/RerankDocument.h>
9#include <aws/bedrock-agent-runtime/model/RerankSourceType.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 RerankSource() = default;
37 AWS_BEDROCKAGENTRUNTIME_API RerankSource(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKAGENTRUNTIME_API RerankSource& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const RerankDocument& GetInlineDocumentSource() const { return m_inlineDocumentSource; }
47 inline bool InlineDocumentSourceHasBeenSet() const { return m_inlineDocumentSourceHasBeenSet; }
48 template<typename InlineDocumentSourceT = RerankDocument>
49 void SetInlineDocumentSource(InlineDocumentSourceT&& value) { m_inlineDocumentSourceHasBeenSet = true; m_inlineDocumentSource = std::forward<InlineDocumentSourceT>(value); }
50 template<typename InlineDocumentSourceT = RerankDocument>
51 RerankSource& WithInlineDocumentSource(InlineDocumentSourceT&& value) { SetInlineDocumentSource(std::forward<InlineDocumentSourceT>(value)); return *this;}
53
55
58 inline RerankSourceType GetType() const { return m_type; }
59 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
60 inline void SetType(RerankSourceType value) { m_typeHasBeenSet = true; m_type = value; }
61 inline RerankSource& WithType(RerankSourceType value) { SetType(value); return *this;}
63 private:
64
65 RerankDocument m_inlineDocumentSource;
66 bool m_inlineDocumentSourceHasBeenSet = false;
67
69 bool m_typeHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace BedrockAgentRuntime
74} // namespace Aws
RerankSource & WithInlineDocumentSource(InlineDocumentSourceT &&value)
const RerankDocument & GetInlineDocumentSource() const
AWS_BEDROCKAGENTRUNTIME_API RerankSource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetInlineDocumentSource(InlineDocumentSourceT &&value)
AWS_BEDROCKAGENTRUNTIME_API RerankSource(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API RerankSource()=default
RerankSource & WithType(RerankSourceType value)
Aws::Utils::Json::JsonValue JsonValue