AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
ToolResultBlockDelta.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/core/utils/Document.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 BedrockRuntime {
21namespace Model {
22
31 public:
32 AWS_BEDROCKRUNTIME_API ToolResultBlockDelta() = default;
35 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetText() const { return m_text; }
42 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
43 template <typename TextT = Aws::String>
44 void SetText(TextT&& value) {
45 m_textHasBeenSet = true;
46 m_text = std::forward<TextT>(value);
47 }
48 template <typename TextT = Aws::String>
50 SetText(std::forward<TextT>(value));
51 return *this;
52 }
54
56
61 inline Aws::Utils::DocumentView GetJson() const { return m_json; }
62 inline bool JsonHasBeenSet() const { return m_jsonHasBeenSet; }
63 template <typename JsonT = Aws::Utils::Document>
64 void SetJson(JsonT&& value) {
65 m_jsonHasBeenSet = true;
66 m_json = std::forward<JsonT>(value);
67 }
68 template <typename JsonT = Aws::Utils::Document>
70 SetJson(std::forward<JsonT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_text;
76
78 bool m_textHasBeenSet = false;
79 bool m_jsonHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace BedrockRuntime
84} // namespace Aws
ToolResultBlockDelta & WithText(TextT &&value)
AWS_BEDROCKRUNTIME_API ToolResultBlockDelta()=default
AWS_BEDROCKRUNTIME_API ToolResultBlockDelta(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
ToolResultBlockDelta & WithJson(JsonT &&value)
AWS_BEDROCKRUNTIME_API ToolResultBlockDelta & 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
Aws::Utils::Json::JsonValue JsonValue