AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Tool.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/ToolSpecification.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockRuntime
22{
23namespace Model
24{
25
35 class Tool
36 {
37 public:
38 AWS_BEDROCKRUNTIME_API Tool();
39 AWS_BEDROCKRUNTIME_API Tool(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BEDROCKRUNTIME_API Tool& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const ToolSpecification& GetToolSpec() const{ return m_toolSpec; }
49 inline bool ToolSpecHasBeenSet() const { return m_toolSpecHasBeenSet; }
50 inline void SetToolSpec(const ToolSpecification& value) { m_toolSpecHasBeenSet = true; m_toolSpec = value; }
51 inline void SetToolSpec(ToolSpecification&& value) { m_toolSpecHasBeenSet = true; m_toolSpec = std::move(value); }
52 inline Tool& WithToolSpec(const ToolSpecification& value) { SetToolSpec(value); return *this;}
53 inline Tool& WithToolSpec(ToolSpecification&& value) { SetToolSpec(std::move(value)); return *this;}
55 private:
56
57 ToolSpecification m_toolSpec;
58 bool m_toolSpecHasBeenSet = false;
59 };
60
61} // namespace Model
62} // namespace BedrockRuntime
63} // namespace Aws
Tool & WithToolSpec(const ToolSpecification &value)
Definition Tool.h:52
void SetToolSpec(const ToolSpecification &value)
Definition Tool.h:50
AWS_BEDROCKRUNTIME_API Tool & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ToolSpecHasBeenSet() const
Definition Tool.h:49
Tool & WithToolSpec(ToolSpecification &&value)
Definition Tool.h:53
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKRUNTIME_API Tool(Aws::Utils::Json::JsonView jsonValue)
const ToolSpecification & GetToolSpec() const
Definition Tool.h:48
void SetToolSpec(ToolSpecification &&value)
Definition Tool.h:51
AWS_BEDROCKRUNTIME_API Tool()
Aws::Utils::Json::JsonValue JsonValue