AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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