AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ToolSpecification.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/bedrock-agent/model/ToolInputSchema.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 {
37 public:
38 AWS_BEDROCKAGENT_API ToolSpecification() = default;
39 AWS_BEDROCKAGENT_API ToolSpecification(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BEDROCKAGENT_API ToolSpecification& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetDescription() const { return m_description; }
49 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
50 template<typename DescriptionT = Aws::String>
51 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
52 template<typename DescriptionT = Aws::String>
53 ToolSpecification& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
55
57
60 inline const ToolInputSchema& GetInputSchema() const { return m_inputSchema; }
61 inline bool InputSchemaHasBeenSet() const { return m_inputSchemaHasBeenSet; }
62 template<typename InputSchemaT = ToolInputSchema>
63 void SetInputSchema(InputSchemaT&& value) { m_inputSchemaHasBeenSet = true; m_inputSchema = std::forward<InputSchemaT>(value); }
64 template<typename InputSchemaT = ToolInputSchema>
65 ToolSpecification& WithInputSchema(InputSchemaT&& value) { SetInputSchema(std::forward<InputSchemaT>(value)); return *this;}
67
69
72 inline const Aws::String& GetName() const { return m_name; }
73 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
74 template<typename NameT = Aws::String>
75 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
76 template<typename NameT = Aws::String>
77 ToolSpecification& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
79 private:
80
81 Aws::String m_description;
82 bool m_descriptionHasBeenSet = false;
83
84 ToolInputSchema m_inputSchema;
85 bool m_inputSchemaHasBeenSet = false;
86
87 Aws::String m_name;
88 bool m_nameHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace BedrockAgent
93} // namespace Aws
ToolSpecification & WithName(NameT &&value)
AWS_BEDROCKAGENT_API ToolSpecification(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API ToolSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
ToolSpecification & WithDescription(DescriptionT &&value)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
ToolSpecification & WithInputSchema(InputSchemaT &&value)
const ToolInputSchema & GetInputSchema() const
AWS_BEDROCKAGENT_API ToolSpecification()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue