AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RetrievalResultContent.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/bedrock-agent-runtime/model/RetrievalResultContentType.h>
11#include <aws/bedrock-agent-runtime/model/RetrievalResultContentColumn.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace BedrockAgentRuntime
25{
26namespace Model
27{
28
45 {
46 public:
47 AWS_BEDROCKAGENTRUNTIME_API RetrievalResultContent() = default;
48 AWS_BEDROCKAGENTRUNTIME_API RetrievalResultContent(Aws::Utils::Json::JsonView jsonValue);
49 AWS_BEDROCKAGENTRUNTIME_API RetrievalResultContent& operator=(Aws::Utils::Json::JsonView jsonValue);
50 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
51
52
54
59 inline const Aws::String& GetByteContent() const { return m_byteContent; }
60 inline bool ByteContentHasBeenSet() const { return m_byteContentHasBeenSet; }
61 template<typename ByteContentT = Aws::String>
62 void SetByteContent(ByteContentT&& value) { m_byteContentHasBeenSet = true; m_byteContent = std::forward<ByteContentT>(value); }
63 template<typename ByteContentT = Aws::String>
64 RetrievalResultContent& WithByteContent(ByteContentT&& value) { SetByteContent(std::forward<ByteContentT>(value)); return *this;}
66
68
72 inline const Aws::Vector<RetrievalResultContentColumn>& GetRow() const { return m_row; }
73 inline bool RowHasBeenSet() const { return m_rowHasBeenSet; }
74 template<typename RowT = Aws::Vector<RetrievalResultContentColumn>>
75 void SetRow(RowT&& value) { m_rowHasBeenSet = true; m_row = std::forward<RowT>(value); }
76 template<typename RowT = Aws::Vector<RetrievalResultContentColumn>>
77 RetrievalResultContent& WithRow(RowT&& value) { SetRow(std::forward<RowT>(value)); return *this;}
78 template<typename RowT = RetrievalResultContentColumn>
79 RetrievalResultContent& AddRow(RowT&& value) { m_rowHasBeenSet = true; m_row.emplace_back(std::forward<RowT>(value)); return *this; }
81
83
86 inline const Aws::String& GetText() const { return m_text; }
87 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
88 template<typename TextT = Aws::String>
89 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
90 template<typename TextT = Aws::String>
91 RetrievalResultContent& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
93
95
98 inline RetrievalResultContentType GetType() const { return m_type; }
99 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
100 inline void SetType(RetrievalResultContentType value) { m_typeHasBeenSet = true; m_type = value; }
103 private:
104
105 Aws::String m_byteContent;
106 bool m_byteContentHasBeenSet = false;
107
109 bool m_rowHasBeenSet = false;
110
111 Aws::String m_text;
112 bool m_textHasBeenSet = false;
113
115 bool m_typeHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace BedrockAgentRuntime
120} // namespace Aws
RetrievalResultContent & WithType(RetrievalResultContentType value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API RetrievalResultContent()=default
const Aws::Vector< RetrievalResultContentColumn > & GetRow() const
AWS_BEDROCKAGENTRUNTIME_API RetrievalResultContent(Aws::Utils::Json::JsonView jsonValue)
RetrievalResultContent & WithByteContent(ByteContentT &&value)
AWS_BEDROCKAGENTRUNTIME_API RetrievalResultContent & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue