AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ToolSpec.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/nova-act/NovaAct_EXPORTS.h>
9#include <aws/nova-act/model/ToolInputSchema.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace NovaAct {
21namespace Model {
22
29class ToolSpec {
30 public:
31 AWS_NOVAACT_API ToolSpec() = default;
32 AWS_NOVAACT_API ToolSpec(Aws::Utils::Json::JsonView jsonValue);
33 AWS_NOVAACT_API ToolSpec& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_NOVAACT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 ToolSpec& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template <typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) {
62 m_descriptionHasBeenSet = true;
63 m_description = std::forward<DescriptionT>(value);
64 }
65 template <typename DescriptionT = Aws::String>
66 ToolSpec& WithDescription(DescriptionT&& value) {
67 SetDescription(std::forward<DescriptionT>(value));
68 return *this;
69 }
71
73
76 inline const ToolInputSchema& GetInputSchema() const { return m_inputSchema; }
77 inline bool InputSchemaHasBeenSet() const { return m_inputSchemaHasBeenSet; }
78 template <typename InputSchemaT = ToolInputSchema>
79 void SetInputSchema(InputSchemaT&& value) {
80 m_inputSchemaHasBeenSet = true;
81 m_inputSchema = std::forward<InputSchemaT>(value);
82 }
83 template <typename InputSchemaT = ToolInputSchema>
84 ToolSpec& WithInputSchema(InputSchemaT&& value) {
85 SetInputSchema(std::forward<InputSchemaT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_name;
91
92 Aws::String m_description;
93
94 ToolInputSchema m_inputSchema;
95 bool m_nameHasBeenSet = false;
96 bool m_descriptionHasBeenSet = false;
97 bool m_inputSchemaHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace NovaAct
102} // namespace Aws
bool InputSchemaHasBeenSet() const
Definition ToolSpec.h:77
const ToolInputSchema & GetInputSchema() const
Definition ToolSpec.h:76
AWS_NOVAACT_API ToolSpec & operator=(Aws::Utils::Json::JsonView jsonValue)
ToolSpec & WithInputSchema(InputSchemaT &&value)
Definition ToolSpec.h:84
ToolSpec & WithDescription(DescriptionT &&value)
Definition ToolSpec.h:66
AWS_NOVAACT_API ToolSpec(Aws::Utils::Json::JsonView jsonValue)
void SetName(NameT &&value)
Definition ToolSpec.h:43
const Aws::String & GetDescription() const
Definition ToolSpec.h:58
AWS_NOVAACT_API ToolSpec()=default
const Aws::String & GetName() const
Definition ToolSpec.h:40
ToolSpec & WithName(NameT &&value)
Definition ToolSpec.h:48
AWS_NOVAACT_API Aws::Utils::Json::JsonValue Jsonize() const
bool DescriptionHasBeenSet() const
Definition ToolSpec.h:59
void SetDescription(DescriptionT &&value)
Definition ToolSpec.h:61
void SetInputSchema(InputSchemaT &&value)
Definition ToolSpec.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue