AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetFunctions(const Aws::Vector<Function>& value) { m_functionsHasBeenSet = true; m_functions = value; }
60 inline void SetFunctions(Aws::Vector<Function>&& value) { m_functionsHasBeenSet = true; m_functions = std::move(value); }
61 inline FunctionSchema& WithFunctions(const Aws::Vector<Function>& value) { SetFunctions(value); return *this;}
62 inline FunctionSchema& WithFunctions(Aws::Vector<Function>&& value) { SetFunctions(std::move(value)); return *this;}
63 inline FunctionSchema& AddFunctions(const Function& value) { m_functionsHasBeenSet = true; m_functions.push_back(value); return *this; }
64 inline FunctionSchema& AddFunctions(Function&& value) { m_functionsHasBeenSet = true; m_functions.push_back(std::move(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
void SetFunctions(const Aws::Vector< Function > &value)
FunctionSchema & WithFunctions(Aws::Vector< Function > &&value)
FunctionSchema & WithFunctions(const Aws::Vector< Function > &value)
FunctionSchema & AddFunctions(Function &&value)
const Aws::Vector< Function > & GetFunctions() const
FunctionSchema & AddFunctions(const Function &value)
void SetFunctions(Aws::Vector< Function > &&value)
AWS_BEDROCKAGENT_API FunctionSchema(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API FunctionSchema & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue