AWS SDK for C++

AWS SDK for C++ Version 1.11.744

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockAgent {
21namespace Model {
22
32class Tool {
33 public:
34 AWS_BEDROCKAGENT_API Tool() = default;
37 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const ToolSpecification& GetToolSpec() const { return m_toolSpec; }
44 inline bool ToolSpecHasBeenSet() const { return m_toolSpecHasBeenSet; }
45 template <typename ToolSpecT = ToolSpecification>
46 void SetToolSpec(ToolSpecT&& value) {
47 m_toolSpecHasBeenSet = true;
48 m_toolSpec = std::forward<ToolSpecT>(value);
49 }
50 template <typename ToolSpecT = ToolSpecification>
52 SetToolSpec(std::forward<ToolSpecT>(value));
53 return *this;
54 }
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) {
65 m_cachePointHasBeenSet = true;
66 m_cachePoint = std::forward<CachePointT>(value);
67 }
68 template <typename CachePointT = CachePointBlock>
70 SetCachePoint(std::forward<CachePointT>(value));
71 return *this;
72 }
74 private:
75 ToolSpecification m_toolSpec;
76
77 CachePointBlock m_cachePoint;
78 bool m_toolSpecHasBeenSet = false;
79 bool m_cachePointHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace BedrockAgent
84} // namespace Aws
AWS_BEDROCKAGENT_API Tool()=default
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetToolSpec(ToolSpecT &&value)
Definition Tool.h:46
const ToolSpecification & GetToolSpec() const
Definition Tool.h:43
Tool & WithCachePoint(CachePointT &&value)
Definition Tool.h:69
const CachePointBlock & GetCachePoint() const
Definition Tool.h:61
bool CachePointHasBeenSet() const
Definition Tool.h:62
void SetCachePoint(CachePointT &&value)
Definition Tool.h:64
bool ToolSpecHasBeenSet() const
Definition Tool.h:44
AWS_BEDROCKAGENT_API Tool & operator=(Aws::Utils::Json::JsonView jsonValue)
Tool & WithToolSpec(ToolSpecT &&value)
Definition Tool.h:51
AWS_BEDROCKAGENT_API Tool(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue