AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ToolSpecification.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/bedrock-runtime/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 BedrockRuntime
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_BEDROCKRUNTIME_API ToolSpecification();
36 AWS_BEDROCKRUNTIME_API ToolSpecification(Aws::Utils::Json::JsonView jsonValue);
37 AWS_BEDROCKRUNTIME_API ToolSpecification& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetName() const{ return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
49 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
50 inline ToolSpecification& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline ToolSpecification& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline ToolSpecification& WithName(const char* value) { SetName(value); return *this;}
54
56
59 inline const Aws::String& GetDescription() const{ return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
62 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
63 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
64 inline ToolSpecification& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
65 inline ToolSpecification& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
66 inline ToolSpecification& WithDescription(const char* value) { SetDescription(value); return *this;}
68
70
73 inline const ToolInputSchema& GetInputSchema() const{ return m_inputSchema; }
74 inline bool InputSchemaHasBeenSet() const { return m_inputSchemaHasBeenSet; }
75 inline void SetInputSchema(const ToolInputSchema& value) { m_inputSchemaHasBeenSet = true; m_inputSchema = value; }
76 inline void SetInputSchema(ToolInputSchema&& value) { m_inputSchemaHasBeenSet = true; m_inputSchema = std::move(value); }
77 inline ToolSpecification& WithInputSchema(const ToolInputSchema& value) { SetInputSchema(value); return *this;}
78 inline ToolSpecification& WithInputSchema(ToolInputSchema&& value) { SetInputSchema(std::move(value)); return *this;}
80 private:
81
82 Aws::String m_name;
83 bool m_nameHasBeenSet = false;
84
85 Aws::String m_description;
86 bool m_descriptionHasBeenSet = false;
87
88 ToolInputSchema m_inputSchema;
89 bool m_inputSchemaHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace BedrockRuntime
94} // namespace Aws
ToolSpecification & WithName(const char *value)
ToolSpecification & WithDescription(Aws::String &&value)
AWS_BEDROCKRUNTIME_API ToolSpecification(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
ToolSpecification & WithName(Aws::String &&value)
void SetDescription(const Aws::String &value)
ToolSpecification & WithInputSchema(const ToolInputSchema &value)
void SetInputSchema(const ToolInputSchema &value)
ToolSpecification & WithDescription(const Aws::String &value)
ToolSpecification & WithInputSchema(ToolInputSchema &&value)
const ToolInputSchema & GetInputSchema() const
ToolSpecification & WithName(const Aws::String &value)
AWS_BEDROCKRUNTIME_API ToolSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
ToolSpecification & WithDescription(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue