AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ContentBlockStart.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/ImageBlockStart.h>
9#include <aws/bedrock-runtime/model/ToolResultBlockStart.h>
10#include <aws/bedrock-runtime/model/ToolUseBlockStart.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockRuntime {
22namespace Model {
23
30 public:
31 AWS_BEDROCKRUNTIME_API ContentBlockStart() = default;
34 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const ToolUseBlockStart& GetToolUse() const { return m_toolUse; }
41 inline bool ToolUseHasBeenSet() const { return m_toolUseHasBeenSet; }
42 template <typename ToolUseT = ToolUseBlockStart>
43 void SetToolUse(ToolUseT&& value) {
44 m_toolUseHasBeenSet = true;
45 m_toolUse = std::forward<ToolUseT>(value);
46 }
47 template <typename ToolUseT = ToolUseBlockStart>
49 SetToolUse(std::forward<ToolUseT>(value));
50 return *this;
51 }
53
55
58 inline const ToolResultBlockStart& GetToolResult() const { return m_toolResult; }
59 inline bool ToolResultHasBeenSet() const { return m_toolResultHasBeenSet; }
60 template <typename ToolResultT = ToolResultBlockStart>
61 void SetToolResult(ToolResultT&& value) {
62 m_toolResultHasBeenSet = true;
63 m_toolResult = std::forward<ToolResultT>(value);
64 }
65 template <typename ToolResultT = ToolResultBlockStart>
67 SetToolResult(std::forward<ToolResultT>(value));
68 return *this;
69 }
71
73
76 inline const ImageBlockStart& GetImage() const { return m_image; }
77 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
78 template <typename ImageT = ImageBlockStart>
79 void SetImage(ImageT&& value) {
80 m_imageHasBeenSet = true;
81 m_image = std::forward<ImageT>(value);
82 }
83 template <typename ImageT = ImageBlockStart>
85 SetImage(std::forward<ImageT>(value));
86 return *this;
87 }
89 private:
90 ToolUseBlockStart m_toolUse;
91
92 ToolResultBlockStart m_toolResult;
93
94 ImageBlockStart m_image;
95 bool m_toolUseHasBeenSet = false;
96 bool m_toolResultHasBeenSet = false;
97 bool m_imageHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace BedrockRuntime
102} // namespace Aws
AWS_BEDROCKRUNTIME_API ContentBlockStart(Aws::Utils::Json::JsonView jsonValue)
const ToolResultBlockStart & GetToolResult() const
ContentBlockStart & WithImage(ImageT &&value)
AWS_BEDROCKRUNTIME_API ContentBlockStart & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API ContentBlockStart()=default
ContentBlockStart & WithToolUse(ToolUseT &&value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const ToolUseBlockStart & GetToolUse() const
ContentBlockStart & WithToolResult(ToolResultT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue