AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ContentBlockDelta.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/bedrock-runtime/model/ToolUseBlockDelta.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 BedrockRuntime
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_BEDROCKRUNTIME_API ContentBlockDelta();
36 AWS_BEDROCKRUNTIME_API ContentBlockDelta(Aws::Utils::Json::JsonView jsonValue);
37 AWS_BEDROCKRUNTIME_API ContentBlockDelta& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetText() const{ return m_text; }
46 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
47 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
48 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
49 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
50 inline ContentBlockDelta& WithText(const Aws::String& value) { SetText(value); return *this;}
51 inline ContentBlockDelta& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
52 inline ContentBlockDelta& WithText(const char* value) { SetText(value); return *this;}
54
56
59 inline const ToolUseBlockDelta& GetToolUse() const{ return m_toolUse; }
60 inline bool ToolUseHasBeenSet() const { return m_toolUseHasBeenSet; }
61 inline void SetToolUse(const ToolUseBlockDelta& value) { m_toolUseHasBeenSet = true; m_toolUse = value; }
62 inline void SetToolUse(ToolUseBlockDelta&& value) { m_toolUseHasBeenSet = true; m_toolUse = std::move(value); }
63 inline ContentBlockDelta& WithToolUse(const ToolUseBlockDelta& value) { SetToolUse(value); return *this;}
64 inline ContentBlockDelta& WithToolUse(ToolUseBlockDelta&& value) { SetToolUse(std::move(value)); return *this;}
66 private:
67
68 Aws::String m_text;
69 bool m_textHasBeenSet = false;
70
71 ToolUseBlockDelta m_toolUse;
72 bool m_toolUseHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace BedrockRuntime
77} // namespace Aws
ContentBlockDelta & WithText(const char *value)
ContentBlockDelta & WithText(Aws::String &&value)
AWS_BEDROCKRUNTIME_API ContentBlockDelta & operator=(Aws::Utils::Json::JsonView jsonValue)
ContentBlockDelta & WithToolUse(ToolUseBlockDelta &&value)
void SetToolUse(const ToolUseBlockDelta &value)
ContentBlockDelta & WithToolUse(const ToolUseBlockDelta &value)
ContentBlockDelta & WithText(const Aws::String &value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetToolUse(ToolUseBlockDelta &&value)
AWS_BEDROCKRUNTIME_API ContentBlockDelta(Aws::Utils::Json::JsonView jsonValue)
const ToolUseBlockDelta & GetToolUse() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue