AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ActionGroupT = Aws::String>
54 void SetActionGroup(ActionGroupT&& value) { m_actionGroupHasBeenSet = true; m_actionGroup = std::forward<ActionGroupT>(value); }
55 template<typename ActionGroupT = Aws::String>
56 FunctionInvocationInput& WithActionGroup(ActionGroupT&& value) { SetActionGroup(std::forward<ActionGroupT>(value)); return *this;}
58
60
63 inline ActionInvocationType GetActionInvocationType() const { return m_actionInvocationType; }
64 inline bool ActionInvocationTypeHasBeenSet() const { return m_actionInvocationTypeHasBeenSet; }
65 inline void SetActionInvocationType(ActionInvocationType value) { m_actionInvocationTypeHasBeenSet = true; m_actionInvocationType = value; }
68
70
73 inline const Aws::String& GetAgentId() const { return m_agentId; }
74 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
75 template<typename AgentIdT = Aws::String>
76 void SetAgentId(AgentIdT&& value) { m_agentIdHasBeenSet = true; m_agentId = std::forward<AgentIdT>(value); }
77 template<typename AgentIdT = Aws::String>
78 FunctionInvocationInput& WithAgentId(AgentIdT&& value) { SetAgentId(std::forward<AgentIdT>(value)); return *this;}
80
82
85 inline const Aws::String& GetCollaboratorName() const { return m_collaboratorName; }
86 inline bool CollaboratorNameHasBeenSet() const { return m_collaboratorNameHasBeenSet; }
87 template<typename CollaboratorNameT = Aws::String>
88 void SetCollaboratorName(CollaboratorNameT&& value) { m_collaboratorNameHasBeenSet = true; m_collaboratorName = std::forward<CollaboratorNameT>(value); }
89 template<typename CollaboratorNameT = Aws::String>
90 FunctionInvocationInput& WithCollaboratorName(CollaboratorNameT&& value) { SetCollaboratorName(std::forward<CollaboratorNameT>(value)); return *this;}
92
94
97 inline const Aws::String& GetFunction() const { return m_function; }
98 inline bool FunctionHasBeenSet() const { return m_functionHasBeenSet; }
99 template<typename FunctionT = Aws::String>
100 void SetFunction(FunctionT&& value) { m_functionHasBeenSet = true; m_function = std::forward<FunctionT>(value); }
101 template<typename FunctionT = Aws::String>
102 FunctionInvocationInput& WithFunction(FunctionT&& value) { SetFunction(std::forward<FunctionT>(value)); return *this;}
104
106
109 inline const Aws::Vector<FunctionParameter>& GetParameters() const { return m_parameters; }
110 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
111 template<typename ParametersT = Aws::Vector<FunctionParameter>>
112 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
113 template<typename ParametersT = Aws::Vector<FunctionParameter>>
114 FunctionInvocationInput& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
115 template<typename ParametersT = FunctionParameter>
116 FunctionInvocationInput& AddParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters.emplace_back(std::forward<ParametersT>(value)); return *this; }
118 private:
119
120 Aws::String m_actionGroup;
121 bool m_actionGroupHasBeenSet = false;
122
124 bool m_actionInvocationTypeHasBeenSet = false;
125
126 Aws::String m_agentId;
127 bool m_agentIdHasBeenSet = false;
128
129 Aws::String m_collaboratorName;
130 bool m_collaboratorNameHasBeenSet = false;
131
132 Aws::String m_function;
133 bool m_functionHasBeenSet = false;
134
136 bool m_parametersHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace BedrockAgentRuntime
141} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue