AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
ToolUseBlock.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/core/utils/Document.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
35 {
36 public:
37 AWS_BEDROCKRUNTIME_API ToolUseBlock() = default;
38 AWS_BEDROCKRUNTIME_API ToolUseBlock(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BEDROCKRUNTIME_API ToolUseBlock& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetToolUseId() const { return m_toolUseId; }
48 inline bool ToolUseIdHasBeenSet() const { return m_toolUseIdHasBeenSet; }
49 template<typename ToolUseIdT = Aws::String>
50 void SetToolUseId(ToolUseIdT&& value) { m_toolUseIdHasBeenSet = true; m_toolUseId = std::forward<ToolUseIdT>(value); }
51 template<typename ToolUseIdT = Aws::String>
52 ToolUseBlock& WithToolUseId(ToolUseIdT&& value) { SetToolUseId(std::forward<ToolUseIdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template<typename NameT = Aws::String>
62 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
63 template<typename NameT = Aws::String>
64 ToolUseBlock& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
66
68
71 inline Aws::Utils::DocumentView GetInput() const { return m_input; }
72 inline bool InputHasBeenSet() const { return m_inputHasBeenSet; }
73 template<typename InputT = Aws::Utils::Document>
74 void SetInput(InputT&& value) { m_inputHasBeenSet = true; m_input = std::forward<InputT>(value); }
75 template<typename InputT = Aws::Utils::Document>
76 ToolUseBlock& WithInput(InputT&& value) { SetInput(std::forward<InputT>(value)); return *this;}
78 private:
79
80 Aws::String m_toolUseId;
81 bool m_toolUseIdHasBeenSet = false;
82
83 Aws::String m_name;
84 bool m_nameHasBeenSet = false;
85
87 bool m_inputHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace BedrockRuntime
92} // namespace Aws
AWS_BEDROCKRUNTIME_API ToolUseBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API ToolUseBlock()=default
ToolUseBlock & WithName(NameT &&value)
ToolUseBlock & WithToolUseId(ToolUseIdT &&value)
Aws::Utils::DocumentView GetInput() const
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKRUNTIME_API ToolUseBlock(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetToolUseId() const
void SetToolUseId(ToolUseIdT &&value)
const Aws::String & GetName() const
ToolUseBlock & WithInput(InputT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue