AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
FunctionSchema.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/bedrock-agent/model/Function.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockAgent
23{
24namespace Model
25{
26
45 {
46 public:
47 AWS_BEDROCKAGENT_API FunctionSchema() = default;
48 AWS_BEDROCKAGENT_API FunctionSchema(Aws::Utils::Json::JsonView jsonValue);
49 AWS_BEDROCKAGENT_API FunctionSchema& operator=(Aws::Utils::Json::JsonView jsonValue);
50 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
51
52
54
57 inline const Aws::Vector<Function>& GetFunctions() const { return m_functions; }
58 inline bool FunctionsHasBeenSet() const { return m_functionsHasBeenSet; }
59 template<typename FunctionsT = Aws::Vector<Function>>
60 void SetFunctions(FunctionsT&& value) { m_functionsHasBeenSet = true; m_functions = std::forward<FunctionsT>(value); }
61 template<typename FunctionsT = Aws::Vector<Function>>
62 FunctionSchema& WithFunctions(FunctionsT&& value) { SetFunctions(std::forward<FunctionsT>(value)); return *this;}
63 template<typename FunctionsT = Function>
64 FunctionSchema& AddFunctions(FunctionsT&& value) { m_functionsHasBeenSet = true; m_functions.emplace_back(std::forward<FunctionsT>(value)); return *this; }
66 private:
67
68 Aws::Vector<Function> m_functions;
69 bool m_functionsHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace BedrockAgent
74} // 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::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue