AWS SDK for C++

AWS SDK for C++ Version 1.11.610

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 <aws/bedrock-runtime/model/CachePointBlock.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
36 class Tool
37 {
38 public:
39 AWS_BEDROCKRUNTIME_API Tool() = default;
40 AWS_BEDROCKRUNTIME_API Tool(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BEDROCKRUNTIME_API Tool& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const ToolSpecification& GetToolSpec() const { return m_toolSpec; }
50 inline bool ToolSpecHasBeenSet() const { return m_toolSpecHasBeenSet; }
51 template<typename ToolSpecT = ToolSpecification>
52 void SetToolSpec(ToolSpecT&& value) { m_toolSpecHasBeenSet = true; m_toolSpec = std::forward<ToolSpecT>(value); }
53 template<typename ToolSpecT = ToolSpecification>
54 Tool& WithToolSpec(ToolSpecT&& value) { SetToolSpec(std::forward<ToolSpecT>(value)); return *this;}
56
58
61 inline const CachePointBlock& GetCachePoint() const { return m_cachePoint; }
62 inline bool CachePointHasBeenSet() const { return m_cachePointHasBeenSet; }
63 template<typename CachePointT = CachePointBlock>
64 void SetCachePoint(CachePointT&& value) { m_cachePointHasBeenSet = true; m_cachePoint = std::forward<CachePointT>(value); }
65 template<typename CachePointT = CachePointBlock>
66 Tool& WithCachePoint(CachePointT&& value) { SetCachePoint(std::forward<CachePointT>(value)); return *this;}
68 private:
69
70 ToolSpecification m_toolSpec;
71 bool m_toolSpecHasBeenSet = false;
72
73 CachePointBlock m_cachePoint;
74 bool m_cachePointHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace BedrockRuntime
79} // namespace Aws
void SetCachePoint(CachePointT &&value)
Definition Tool.h:64
void SetToolSpec(ToolSpecT &&value)
Definition Tool.h:52
Tool & WithToolSpec(ToolSpecT &&value)
Definition Tool.h:54
AWS_BEDROCKRUNTIME_API Tool()=default
AWS_BEDROCKRUNTIME_API Tool & operator=(Aws::Utils::Json::JsonView jsonValue)
Tool & WithCachePoint(CachePointT &&value)
Definition Tool.h:66
bool ToolSpecHasBeenSet() const
Definition Tool.h:50
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:49
const CachePointBlock & GetCachePoint() const
Definition Tool.h:61
bool CachePointHasBeenSet() const
Definition Tool.h:62
Aws::Utils::Json::JsonValue JsonValue