AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetToolUseId(const Aws::String& value) { m_toolUseIdHasBeenSet = true; m_toolUseId = value; }
50 inline void SetToolUseId(Aws::String&& value) { m_toolUseIdHasBeenSet = true; m_toolUseId = std::move(value); }
51 inline void SetToolUseId(const char* value) { m_toolUseIdHasBeenSet = true; m_toolUseId.assign(value); }
52 inline ToolUseBlock& WithToolUseId(const Aws::String& value) { SetToolUseId(value); return *this;}
53 inline ToolUseBlock& WithToolUseId(Aws::String&& value) { SetToolUseId(std::move(value)); return *this;}
54 inline ToolUseBlock& WithToolUseId(const char* value) { SetToolUseId(value); return *this;}
56
58
61 inline const Aws::String& GetName() const{ return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 inline ToolUseBlock& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline ToolUseBlock& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline ToolUseBlock& WithName(const char* value) { SetName(value); return *this;}
70
72
75 inline Aws::Utils::DocumentView GetInput() const{ return m_input; }
76 inline bool InputHasBeenSet() const { return m_inputHasBeenSet; }
77 inline void SetInput(const Aws::Utils::Document& value) { m_inputHasBeenSet = true; m_input = value; }
78 inline void SetInput(Aws::Utils::Document&& value) { m_inputHasBeenSet = true; m_input = std::move(value); }
79 inline ToolUseBlock& WithInput(const Aws::Utils::Document& value) { SetInput(value); return *this;}
80 inline ToolUseBlock& WithInput(Aws::Utils::Document&& value) { SetInput(std::move(value)); return *this;}
82 private:
83
84 Aws::String m_toolUseId;
85 bool m_toolUseIdHasBeenSet = false;
86
87 Aws::String m_name;
88 bool m_nameHasBeenSet = false;
89
91 bool m_inputHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace BedrockRuntime
96} // namespace Aws
AWS_BEDROCKRUNTIME_API ToolUseBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API ToolUseBlock()
Aws::Utils::DocumentView GetInput() const
ToolUseBlock & WithName(Aws::String &&value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
ToolUseBlock & WithName(const char *value)
ToolUseBlock & WithInput(Aws::Utils::Document &&value)
AWS_BEDROCKRUNTIME_API ToolUseBlock(Aws::Utils::Json::JsonView jsonValue)
ToolUseBlock & WithToolUseId(const char *value)
ToolUseBlock & WithInput(const Aws::Utils::Document &value)
void SetName(const Aws::String &value)
const Aws::String & GetToolUseId() const
void SetInput(Aws::Utils::Document &&value)
void SetName(Aws::String &&value)
void SetInput(const Aws::Utils::Document &value)
void SetToolUseId(const Aws::String &value)
ToolUseBlock & WithToolUseId(Aws::String &&value)
ToolUseBlock & WithName(const Aws::String &value)
const Aws::String & GetName() const
void SetToolUseId(Aws::String &&value)
ToolUseBlock & WithToolUseId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue