AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
FunctionDefinition.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/bedrock-agent-runtime/model/RequireConfirmation.h>
11#include <aws/bedrock-agent-runtime/model/ParameterDetail.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace BedrockAgentRuntime
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_BEDROCKAGENTRUNTIME_API FunctionDefinition() = default;
40 AWS_BEDROCKAGENTRUNTIME_API FunctionDefinition(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BEDROCKAGENTRUNTIME_API FunctionDefinition& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetDescription() const { return m_description; }
50 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
51 template<typename DescriptionT = Aws::String>
52 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
53 template<typename DescriptionT = Aws::String>
54 FunctionDefinition& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template<typename NameT = Aws::String>
64 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
65 template<typename NameT = Aws::String>
66 FunctionDefinition& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
68
70
74 inline const Aws::Map<Aws::String, ParameterDetail>& GetParameters() const { return m_parameters; }
75 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
76 template<typename ParametersT = Aws::Map<Aws::String, ParameterDetail>>
77 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
78 template<typename ParametersT = Aws::Map<Aws::String, ParameterDetail>>
79 FunctionDefinition& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
80 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = ParameterDetail>
81 FunctionDefinition& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
82 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
83 }
85
87
91 inline RequireConfirmation GetRequireConfirmation() const { return m_requireConfirmation; }
92 inline bool RequireConfirmationHasBeenSet() const { return m_requireConfirmationHasBeenSet; }
93 inline void SetRequireConfirmation(RequireConfirmation value) { m_requireConfirmationHasBeenSet = true; m_requireConfirmation = value; }
96 private:
97
98 Aws::String m_description;
99 bool m_descriptionHasBeenSet = false;
100
101 Aws::String m_name;
102 bool m_nameHasBeenSet = false;
103
105 bool m_parametersHasBeenSet = false;
106
108 bool m_requireConfirmationHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace BedrockAgentRuntime
113} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API FunctionDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API FunctionDefinition()=default
AWS_BEDROCKAGENTRUNTIME_API FunctionDefinition(Aws::Utils::Json::JsonView jsonValue)
FunctionDefinition & WithParameters(ParametersT &&value)
FunctionDefinition & WithDescription(DescriptionT &&value)
FunctionDefinition & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
const Aws::Map< Aws::String, ParameterDetail > & GetParameters() const
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
FunctionDefinition & WithRequireConfirmation(RequireConfirmation value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue