AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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
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 RerankSource() = default;
34 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const RerankDocument& GetInlineDocumentSource() const { return m_inlineDocumentSource; }
41 inline bool InlineDocumentSourceHasBeenSet() const { return m_inlineDocumentSourceHasBeenSet; }
42 template <typename InlineDocumentSourceT = RerankDocument>
44 m_inlineDocumentSourceHasBeenSet = true;
45 m_inlineDocumentSource = std::forward<InlineDocumentSourceT>(value);
46 }
47 template <typename InlineDocumentSourceT = RerankDocument>
49 SetInlineDocumentSource(std::forward<InlineDocumentSourceT>(value));
50 return *this;
51 }
53
55
58 inline RerankSourceType GetType() const { return m_type; }
59 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
60 inline void SetType(RerankSourceType value) {
61 m_typeHasBeenSet = true;
62 m_type = value;
63 }
65 SetType(value);
66 return *this;
67 }
69 private:
70 RerankDocument m_inlineDocumentSource;
71
73 bool m_inlineDocumentSourceHasBeenSet = false;
74 bool m_typeHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace BedrockAgentRuntime
79} // 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)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue