AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
BedrockSessionContentBlock.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/ImageBlock.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
38 public:
39 AWS_BEDROCKAGENTRUNTIME_API BedrockSessionContentBlock() = default;
42 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
48 inline const ImageBlock& GetImage() const { return m_image; }
49 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
50 template <typename ImageT = ImageBlock>
51 void SetImage(ImageT&& value) {
52 m_imageHasBeenSet = true;
53 m_image = std::forward<ImageT>(value);
54 }
55 template <typename ImageT = ImageBlock>
57 SetImage(std::forward<ImageT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetText() const { return m_text; }
67 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
68 template <typename TextT = Aws::String>
69 void SetText(TextT&& value) {
70 m_textHasBeenSet = true;
71 m_text = std::forward<TextT>(value);
72 }
73 template <typename TextT = Aws::String>
75 SetText(std::forward<TextT>(value));
76 return *this;
77 }
79 private:
80 ImageBlock m_image;
81
82 Aws::String m_text;
83 bool m_imageHasBeenSet = false;
84 bool m_textHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace BedrockAgentRuntime
89} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API BedrockSessionContentBlock()=default
AWS_BEDROCKAGENTRUNTIME_API BedrockSessionContentBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API BedrockSessionContentBlock(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
Aws::Utils::Json::JsonValue JsonValue