AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockAgentRuntime
23{
24namespace Model
25{
26
42 {
43 public:
44 AWS_BEDROCKAGENTRUNTIME_API BedrockSessionContentBlock() = default;
45 AWS_BEDROCKAGENTRUNTIME_API BedrockSessionContentBlock(Aws::Utils::Json::JsonView jsonValue);
46 AWS_BEDROCKAGENTRUNTIME_API BedrockSessionContentBlock& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
54 inline const ImageBlock& GetImage() const { return m_image; }
55 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
56 template<typename ImageT = ImageBlock>
57 void SetImage(ImageT&& value) { m_imageHasBeenSet = true; m_image = std::forward<ImageT>(value); }
58 template<typename ImageT = ImageBlock>
59 BedrockSessionContentBlock& WithImage(ImageT&& value) { SetImage(std::forward<ImageT>(value)); return *this;}
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) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
70 template<typename TextT = Aws::String>
71 BedrockSessionContentBlock& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
73 private:
74
75 ImageBlock m_image;
76 bool m_imageHasBeenSet = false;
77
78 Aws::String m_text;
79 bool m_textHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace BedrockAgentRuntime
84} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue