AWS SDK for C++

AWS SDK for C++ Version 1.11.849

Loading...
Searching...
No Matches
RetrievalContent.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/utils/Array.h>
9#include <aws/core/utils/memory/stl/AWSString.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
29 public:
30 AWS_BEDROCKAGENTRUNTIME_API RetrievalContent() = default;
33 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Utils::ByteBuffer& GetByteContent() const { return m_byteContent; }
40 inline bool ByteContentHasBeenSet() const { return m_byteContentHasBeenSet; }
41 template <typename ByteContentT = Aws::Utils::ByteBuffer>
43 m_byteContentHasBeenSet = true;
44 m_byteContent = std::forward<ByteContentT>(value);
45 }
46 template <typename ByteContentT = Aws::Utils::ByteBuffer>
48 SetByteContent(std::forward<ByteContentT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetMimeType() const { return m_mimeType; }
58 inline bool MimeTypeHasBeenSet() const { return m_mimeTypeHasBeenSet; }
59 template <typename MimeTypeT = Aws::String>
60 void SetMimeType(MimeTypeT&& value) {
61 m_mimeTypeHasBeenSet = true;
62 m_mimeType = std::forward<MimeTypeT>(value);
63 }
64 template <typename MimeTypeT = Aws::String>
66 SetMimeType(std::forward<MimeTypeT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetText() const { return m_text; }
76 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
77 template <typename TextT = Aws::String>
78 void SetText(TextT&& value) {
79 m_textHasBeenSet = true;
80 m_text = std::forward<TextT>(value);
81 }
82 template <typename TextT = Aws::String>
84 SetText(std::forward<TextT>(value));
85 return *this;
86 }
88 private:
89 Aws::Utils::ByteBuffer m_byteContent{};
90
91 Aws::String m_mimeType;
92
93 Aws::String m_text;
94 bool m_byteContentHasBeenSet = false;
95 bool m_mimeTypeHasBeenSet = false;
96 bool m_textHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace BedrockAgentRuntime
101} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API RetrievalContent(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API RetrievalContent & operator=(Aws::Utils::Json::JsonView jsonValue)
RetrievalContent & WithByteContent(ByteContentT &&value)
RetrievalContent & WithMimeType(MimeTypeT &&value)
AWS_BEDROCKAGENTRUNTIME_API RetrievalContent()=default
const Aws::Utils::ByteBuffer & GetByteContent() const
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue