AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
FunctionSchema.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/FunctionDefinition.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockAgentRuntime {
21namespace Model {
22
30 public:
31 AWS_BEDROCKAGENTRUNTIME_API FunctionSchema() = default;
34 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<FunctionDefinition>& GetFunctions() const { return m_functions; }
41 inline bool FunctionsHasBeenSet() const { return m_functionsHasBeenSet; }
42 template <typename FunctionsT = Aws::Vector<FunctionDefinition>>
43 void SetFunctions(FunctionsT&& value) {
44 m_functionsHasBeenSet = true;
45 m_functions = std::forward<FunctionsT>(value);
46 }
47 template <typename FunctionsT = Aws::Vector<FunctionDefinition>>
49 SetFunctions(std::forward<FunctionsT>(value));
50 return *this;
51 }
52 template <typename FunctionsT = FunctionDefinition>
54 m_functionsHasBeenSet = true;
55 m_functions.emplace_back(std::forward<FunctionsT>(value));
56 return *this;
57 }
59 private:
61 bool m_functionsHasBeenSet = false;
62};
63
64} // namespace Model
65} // namespace BedrockAgentRuntime
66} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API FunctionSchema()=default
FunctionSchema & AddFunctions(FunctionsT &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
FunctionSchema & WithFunctions(FunctionsT &&value)
AWS_BEDROCKAGENTRUNTIME_API FunctionSchema & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< FunctionDefinition > & GetFunctions() const
AWS_BEDROCKAGENTRUNTIME_API FunctionSchema(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue