AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
FunctionSchema.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/bedrock-agent-runtime/model/FunctionDefinition.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 BedrockAgentRuntime
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_BEDROCKAGENTRUNTIME_API FunctionSchema() = default;
37 AWS_BEDROCKAGENTRUNTIME_API FunctionSchema(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKAGENTRUNTIME_API FunctionSchema& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<FunctionDefinition>& GetFunctions() const { return m_functions; }
47 inline bool FunctionsHasBeenSet() const { return m_functionsHasBeenSet; }
48 template<typename FunctionsT = Aws::Vector<FunctionDefinition>>
49 void SetFunctions(FunctionsT&& value) { m_functionsHasBeenSet = true; m_functions = std::forward<FunctionsT>(value); }
50 template<typename FunctionsT = Aws::Vector<FunctionDefinition>>
51 FunctionSchema& WithFunctions(FunctionsT&& value) { SetFunctions(std::forward<FunctionsT>(value)); return *this;}
52 template<typename FunctionsT = FunctionDefinition>
53 FunctionSchema& AddFunctions(FunctionsT&& value) { m_functionsHasBeenSet = true; m_functions.emplace_back(std::forward<FunctionsT>(value)); return *this; }
55 private:
56
58 bool m_functionsHasBeenSet = false;
59 };
60
61} // namespace Model
62} // namespace BedrockAgentRuntime
63} // 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::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue