AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
RetrievalResultContent.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/AudioSegment.h>
9#include <aws/bedrock-agent-runtime/model/RetrievalResultContentColumn.h>
10#include <aws/bedrock-agent-runtime/model/RetrievalResultContentType.h>
11#include <aws/bedrock-agent-runtime/model/VideoSegment.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace BedrockAgentRuntime {
25namespace Model {
26
43 public:
44 AWS_BEDROCKAGENTRUNTIME_API RetrievalResultContent() = default;
47 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
48
50
54 inline const AudioSegment& GetAudio() const { return m_audio; }
55 inline bool AudioHasBeenSet() const { return m_audioHasBeenSet; }
56 template <typename AudioT = AudioSegment>
57 void SetAudio(AudioT&& value) {
58 m_audioHasBeenSet = true;
59 m_audio = std::forward<AudioT>(value);
60 }
61 template <typename AudioT = AudioSegment>
63 SetAudio(std::forward<AudioT>(value));
64 return *this;
65 }
67
69
74 inline const Aws::String& GetByteContent() const { return m_byteContent; }
75 inline bool ByteContentHasBeenSet() const { return m_byteContentHasBeenSet; }
76 template <typename ByteContentT = Aws::String>
78 m_byteContentHasBeenSet = true;
79 m_byteContent = std::forward<ByteContentT>(value);
80 }
81 template <typename ByteContentT = Aws::String>
83 SetByteContent(std::forward<ByteContentT>(value));
84 return *this;
85 }
87
89
93 inline const Aws::Vector<RetrievalResultContentColumn>& GetRow() const { return m_row; }
94 inline bool RowHasBeenSet() const { return m_rowHasBeenSet; }
95 template <typename RowT = Aws::Vector<RetrievalResultContentColumn>>
96 void SetRow(RowT&& value) {
97 m_rowHasBeenSet = true;
98 m_row = std::forward<RowT>(value);
99 }
100 template <typename RowT = Aws::Vector<RetrievalResultContentColumn>>
102 SetRow(std::forward<RowT>(value));
103 return *this;
104 }
105 template <typename RowT = RetrievalResultContentColumn>
107 m_rowHasBeenSet = true;
108 m_row.emplace_back(std::forward<RowT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetText() const { return m_text; }
118 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
119 template <typename TextT = Aws::String>
120 void SetText(TextT&& value) {
121 m_textHasBeenSet = true;
122 m_text = std::forward<TextT>(value);
123 }
124 template <typename TextT = Aws::String>
126 SetText(std::forward<TextT>(value));
127 return *this;
128 }
130
132
135 inline RetrievalResultContentType GetType() const { return m_type; }
136 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
138 m_typeHasBeenSet = true;
139 m_type = value;
140 }
142 SetType(value);
143 return *this;
144 }
146
148
152 inline const VideoSegment& GetVideo() const { return m_video; }
153 inline bool VideoHasBeenSet() const { return m_videoHasBeenSet; }
154 template <typename VideoT = VideoSegment>
155 void SetVideo(VideoT&& value) {
156 m_videoHasBeenSet = true;
157 m_video = std::forward<VideoT>(value);
158 }
159 template <typename VideoT = VideoSegment>
161 SetVideo(std::forward<VideoT>(value));
162 return *this;
163 }
165 private:
166 AudioSegment m_audio;
167
168 Aws::String m_byteContent;
169
171
172 Aws::String m_text;
173
175
176 VideoSegment m_video;
177 bool m_audioHasBeenSet = false;
178 bool m_byteContentHasBeenSet = false;
179 bool m_rowHasBeenSet = false;
180 bool m_textHasBeenSet = false;
181 bool m_typeHasBeenSet = false;
182 bool m_videoHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace BedrockAgentRuntime
187} // 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::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue