AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FunctionInvocationInput.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/bedrock-agent-runtime/model/ActionInvocationType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/bedrock-agent-runtime/model/FunctionParameter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace BedrockAgentRuntime
25{
26namespace Model
27{
28
39 {
40 public:
41 AWS_BEDROCKAGENTRUNTIME_API FunctionInvocationInput();
42 AWS_BEDROCKAGENTRUNTIME_API FunctionInvocationInput(Aws::Utils::Json::JsonView jsonValue);
43 AWS_BEDROCKAGENTRUNTIME_API FunctionInvocationInput& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetActionGroup() const{ return m_actionGroup; }
52 inline bool ActionGroupHasBeenSet() const { return m_actionGroupHasBeenSet; }
53 inline void SetActionGroup(const Aws::String& value) { m_actionGroupHasBeenSet = true; m_actionGroup = value; }
54 inline void SetActionGroup(Aws::String&& value) { m_actionGroupHasBeenSet = true; m_actionGroup = std::move(value); }
55 inline void SetActionGroup(const char* value) { m_actionGroupHasBeenSet = true; m_actionGroup.assign(value); }
56 inline FunctionInvocationInput& WithActionGroup(const Aws::String& value) { SetActionGroup(value); return *this;}
57 inline FunctionInvocationInput& WithActionGroup(Aws::String&& value) { SetActionGroup(std::move(value)); return *this;}
58 inline FunctionInvocationInput& WithActionGroup(const char* value) { SetActionGroup(value); return *this;}
60
62
65 inline const ActionInvocationType& GetActionInvocationType() const{ return m_actionInvocationType; }
66 inline bool ActionInvocationTypeHasBeenSet() const { return m_actionInvocationTypeHasBeenSet; }
67 inline void SetActionInvocationType(const ActionInvocationType& value) { m_actionInvocationTypeHasBeenSet = true; m_actionInvocationType = value; }
68 inline void SetActionInvocationType(ActionInvocationType&& value) { m_actionInvocationTypeHasBeenSet = true; m_actionInvocationType = std::move(value); }
72
74
77 inline const Aws::String& GetFunction() const{ return m_function; }
78 inline bool FunctionHasBeenSet() const { return m_functionHasBeenSet; }
79 inline void SetFunction(const Aws::String& value) { m_functionHasBeenSet = true; m_function = value; }
80 inline void SetFunction(Aws::String&& value) { m_functionHasBeenSet = true; m_function = std::move(value); }
81 inline void SetFunction(const char* value) { m_functionHasBeenSet = true; m_function.assign(value); }
82 inline FunctionInvocationInput& WithFunction(const Aws::String& value) { SetFunction(value); return *this;}
83 inline FunctionInvocationInput& WithFunction(Aws::String&& value) { SetFunction(std::move(value)); return *this;}
84 inline FunctionInvocationInput& WithFunction(const char* value) { SetFunction(value); return *this;}
86
88
91 inline const Aws::Vector<FunctionParameter>& GetParameters() const{ return m_parameters; }
92 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
93 inline void SetParameters(const Aws::Vector<FunctionParameter>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
94 inline void SetParameters(Aws::Vector<FunctionParameter>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
96 inline FunctionInvocationInput& WithParameters(Aws::Vector<FunctionParameter>&& value) { SetParameters(std::move(value)); return *this;}
97 inline FunctionInvocationInput& AddParameters(const FunctionParameter& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; }
98 inline FunctionInvocationInput& AddParameters(FunctionParameter&& value) { m_parametersHasBeenSet = true; m_parameters.push_back(std::move(value)); return *this; }
100 private:
101
102 Aws::String m_actionGroup;
103 bool m_actionGroupHasBeenSet = false;
104
105 ActionInvocationType m_actionInvocationType;
106 bool m_actionInvocationTypeHasBeenSet = false;
107
108 Aws::String m_function;
109 bool m_functionHasBeenSet = false;
110
112 bool m_parametersHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace BedrockAgentRuntime
117} // namespace Aws
const Aws::Vector< FunctionParameter > & GetParameters() const
void SetActionInvocationType(const ActionInvocationType &value)
FunctionInvocationInput & WithFunction(const char *value)
AWS_BEDROCKAGENTRUNTIME_API FunctionInvocationInput & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API FunctionInvocationInput(Aws::Utils::Json::JsonView jsonValue)
FunctionInvocationInput & WithParameters(Aws::Vector< FunctionParameter > &&value)
FunctionInvocationInput & WithActionGroup(const Aws::String &value)
FunctionInvocationInput & WithActionInvocationType(const ActionInvocationType &value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
FunctionInvocationInput & WithActionGroup(const char *value)
FunctionInvocationInput & AddParameters(FunctionParameter &&value)
FunctionInvocationInput & WithFunction(const Aws::String &value)
FunctionInvocationInput & WithFunction(Aws::String &&value)
FunctionInvocationInput & WithActionInvocationType(ActionInvocationType &&value)
FunctionInvocationInput & WithParameters(const Aws::Vector< FunctionParameter > &value)
void SetParameters(const Aws::Vector< FunctionParameter > &value)
FunctionInvocationInput & WithActionGroup(Aws::String &&value)
void SetParameters(Aws::Vector< FunctionParameter > &&value)
FunctionInvocationInput & AddParameters(const FunctionParameter &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue