AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Function.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/ParameterDetail.h>
9#include <aws/bedrock-agent/model/RequireConfirmation.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockAgent {
23namespace Model {
24
42class Function {
43 public:
44 AWS_BEDROCKAGENT_API Function() = default;
47 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
48
50
53 inline const Aws::String& GetName() const { return m_name; }
54 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 template <typename NameT = Aws::String>
56 void SetName(NameT&& value) {
57 m_nameHasBeenSet = true;
58 m_name = std::forward<NameT>(value);
59 }
60 template <typename NameT = Aws::String>
62 SetName(std::forward<NameT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetDescription() const { return m_description; }
72 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
73 template <typename DescriptionT = Aws::String>
75 m_descriptionHasBeenSet = true;
76 m_description = std::forward<DescriptionT>(value);
77 }
78 template <typename DescriptionT = Aws::String>
80 SetDescription(std::forward<DescriptionT>(value));
81 return *this;
82 }
84
86
90 inline const Aws::Map<Aws::String, ParameterDetail>& GetParameters() const { return m_parameters; }
91 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
92 template <typename ParametersT = Aws::Map<Aws::String, ParameterDetail>>
93 void SetParameters(ParametersT&& value) {
94 m_parametersHasBeenSet = true;
95 m_parameters = std::forward<ParametersT>(value);
96 }
97 template <typename ParametersT = Aws::Map<Aws::String, ParameterDetail>>
99 SetParameters(std::forward<ParametersT>(value));
100 return *this;
101 }
102 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = ParameterDetail>
104 m_parametersHasBeenSet = true;
105 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
106 return *this;
107 }
109
111
115 inline RequireConfirmation GetRequireConfirmation() const { return m_requireConfirmation; }
116 inline bool RequireConfirmationHasBeenSet() const { return m_requireConfirmationHasBeenSet; }
118 m_requireConfirmationHasBeenSet = true;
119 m_requireConfirmation = value;
120 }
123 return *this;
124 }
126 private:
127 Aws::String m_name;
128
129 Aws::String m_description;
130
132
134 bool m_nameHasBeenSet = false;
135 bool m_descriptionHasBeenSet = false;
136 bool m_parametersHasBeenSet = false;
137 bool m_requireConfirmationHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace BedrockAgent
142} // namespace Aws
void SetParameters(ParametersT &&value)
Definition Function.h:93
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
Function & WithName(NameT &&value)
Definition Function.h:61
RequireConfirmation GetRequireConfirmation() const
Definition Function.h:115
AWS_BEDROCKAGENT_API Function & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDescription() const
Definition Function.h:71
void SetName(NameT &&value)
Definition Function.h:56
Function & WithDescription(DescriptionT &&value)
Definition Function.h:79
Function & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
Definition Function.h:103
AWS_BEDROCKAGENT_API Function(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
Definition Function.h:53
void SetRequireConfirmation(RequireConfirmation value)
Definition Function.h:117
Function & WithParameters(ParametersT &&value)
Definition Function.h:98
bool RequireConfirmationHasBeenSet() const
Definition Function.h:116
AWS_BEDROCKAGENT_API Function()=default
Function & WithRequireConfirmation(RequireConfirmation value)
Definition Function.h:121
void SetDescription(DescriptionT &&value)
Definition Function.h:74
const Aws::Map< Aws::String, ParameterDetail > & GetParameters() const
Definition Function.h:90
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
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