AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
FunctionSchema.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/Function.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 BedrockAgent {
21namespace Model {
22
41 public:
42 AWS_BEDROCKAGENT_API FunctionSchema() = default;
45 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
46
48
51 inline const Aws::Vector<Function>& GetFunctions() const { return m_functions; }
52 inline bool FunctionsHasBeenSet() const { return m_functionsHasBeenSet; }
53 template <typename FunctionsT = Aws::Vector<Function>>
54 void SetFunctions(FunctionsT&& value) {
55 m_functionsHasBeenSet = true;
56 m_functions = std::forward<FunctionsT>(value);
57 }
58 template <typename FunctionsT = Aws::Vector<Function>>
60 SetFunctions(std::forward<FunctionsT>(value));
61 return *this;
62 }
63 template <typename FunctionsT = Function>
65 m_functionsHasBeenSet = true;
66 m_functions.emplace_back(std::forward<FunctionsT>(value));
67 return *this;
68 }
70 private:
71 Aws::Vector<Function> m_functions;
72 bool m_functionsHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace BedrockAgent
77} // namespace Aws
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
FunctionSchema & WithFunctions(FunctionsT &&value)
FunctionSchema & AddFunctions(FunctionsT &&value)
const Aws::Vector< Function > & GetFunctions() const
AWS_BEDROCKAGENT_API FunctionSchema(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API FunctionSchema & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API FunctionSchema()=default
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue