AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
FunctionInvocationInput.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/ActionInvocationType.h>
9#include <aws/bedrock-agent-runtime/model/FunctionParameter.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockAgentRuntime {
23namespace Model {
24
35 public:
36 AWS_BEDROCKAGENTRUNTIME_API FunctionInvocationInput() = default;
39 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetActionGroup() const { return m_actionGroup; }
46 inline bool ActionGroupHasBeenSet() const { return m_actionGroupHasBeenSet; }
47 template <typename ActionGroupT = Aws::String>
49 m_actionGroupHasBeenSet = true;
50 m_actionGroup = std::forward<ActionGroupT>(value);
51 }
52 template <typename ActionGroupT = Aws::String>
54 SetActionGroup(std::forward<ActionGroupT>(value));
55 return *this;
56 }
58
60
63 inline ActionInvocationType GetActionInvocationType() const { return m_actionInvocationType; }
64 inline bool ActionInvocationTypeHasBeenSet() const { return m_actionInvocationTypeHasBeenSet; }
66 m_actionInvocationTypeHasBeenSet = true;
67 m_actionInvocationType = value;
68 }
71 return *this;
72 }
74
76
79 inline const Aws::String& GetAgentId() const { return m_agentId; }
80 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
81 template <typename AgentIdT = Aws::String>
82 void SetAgentId(AgentIdT&& value) {
83 m_agentIdHasBeenSet = true;
84 m_agentId = std::forward<AgentIdT>(value);
85 }
86 template <typename AgentIdT = Aws::String>
88 SetAgentId(std::forward<AgentIdT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetCollaboratorName() const { return m_collaboratorName; }
98 inline bool CollaboratorNameHasBeenSet() const { return m_collaboratorNameHasBeenSet; }
99 template <typename CollaboratorNameT = Aws::String>
101 m_collaboratorNameHasBeenSet = true;
102 m_collaboratorName = std::forward<CollaboratorNameT>(value);
103 }
104 template <typename CollaboratorNameT = Aws::String>
106 SetCollaboratorName(std::forward<CollaboratorNameT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetFunction() const { return m_function; }
116 inline bool FunctionHasBeenSet() const { return m_functionHasBeenSet; }
117 template <typename FunctionT = Aws::String>
118 void SetFunction(FunctionT&& value) {
119 m_functionHasBeenSet = true;
120 m_function = std::forward<FunctionT>(value);
121 }
122 template <typename FunctionT = Aws::String>
124 SetFunction(std::forward<FunctionT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::Vector<FunctionParameter>& GetParameters() const { return m_parameters; }
134 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
135 template <typename ParametersT = Aws::Vector<FunctionParameter>>
137 m_parametersHasBeenSet = true;
138 m_parameters = std::forward<ParametersT>(value);
139 }
140 template <typename ParametersT = Aws::Vector<FunctionParameter>>
142 SetParameters(std::forward<ParametersT>(value));
143 return *this;
144 }
145 template <typename ParametersT = FunctionParameter>
147 m_parametersHasBeenSet = true;
148 m_parameters.emplace_back(std::forward<ParametersT>(value));
149 return *this;
150 }
152 private:
153 Aws::String m_actionGroup;
154
156
157 Aws::String m_agentId;
158
159 Aws::String m_collaboratorName;
160
161 Aws::String m_function;
162
164 bool m_actionGroupHasBeenSet = false;
165 bool m_actionInvocationTypeHasBeenSet = false;
166 bool m_agentIdHasBeenSet = false;
167 bool m_collaboratorNameHasBeenSet = false;
168 bool m_functionHasBeenSet = false;
169 bool m_parametersHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace BedrockAgentRuntime
174} // namespace Aws
FunctionInvocationInput & WithActionInvocationType(ActionInvocationType value)
const Aws::Vector< FunctionParameter > & GetParameters() const
FunctionInvocationInput & WithFunction(FunctionT &&value)
FunctionInvocationInput & AddParameters(ParametersT &&value)
AWS_BEDROCKAGENTRUNTIME_API FunctionInvocationInput & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API FunctionInvocationInput(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
FunctionInvocationInput & WithAgentId(AgentIdT &&value)
AWS_BEDROCKAGENTRUNTIME_API FunctionInvocationInput()=default
FunctionInvocationInput & WithCollaboratorName(CollaboratorNameT &&value)
FunctionInvocationInput & WithParameters(ParametersT &&value)
FunctionInvocationInput & WithActionGroup(ActionGroupT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue