AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
InvocationInput.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/ActionGroupInvocationInput.h>
9#include <aws/bedrock-agent-runtime/model/AgentCollaboratorInvocationInput.h>
10#include <aws/bedrock-agent-runtime/model/CodeInterpreterInvocationInput.h>
11#include <aws/bedrock-agent-runtime/model/InvocationType.h>
12#include <aws/bedrock-agent-runtime/model/KnowledgeBaseLookupInput.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace BedrockAgentRuntime {
25namespace Model {
26
34 public:
35 AWS_BEDROCKAGENTRUNTIME_API InvocationInput() = default;
38 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const ActionGroupInvocationInput& GetActionGroupInvocationInput() const { return m_actionGroupInvocationInput; }
45 inline bool ActionGroupInvocationInputHasBeenSet() const { return m_actionGroupInvocationInputHasBeenSet; }
46 template <typename ActionGroupInvocationInputT = ActionGroupInvocationInput>
48 m_actionGroupInvocationInputHasBeenSet = true;
49 m_actionGroupInvocationInput = std::forward<ActionGroupInvocationInputT>(value);
50 }
51 template <typename ActionGroupInvocationInputT = ActionGroupInvocationInput>
53 SetActionGroupInvocationInput(std::forward<ActionGroupInvocationInputT>(value));
54 return *this;
55 }
57
59
62 inline const AgentCollaboratorInvocationInput& GetAgentCollaboratorInvocationInput() const { return m_agentCollaboratorInvocationInput; }
63 inline bool AgentCollaboratorInvocationInputHasBeenSet() const { return m_agentCollaboratorInvocationInputHasBeenSet; }
64 template <typename AgentCollaboratorInvocationInputT = AgentCollaboratorInvocationInput>
66 m_agentCollaboratorInvocationInputHasBeenSet = true;
67 m_agentCollaboratorInvocationInput = std::forward<AgentCollaboratorInvocationInputT>(value);
68 }
69 template <typename AgentCollaboratorInvocationInputT = AgentCollaboratorInvocationInput>
71 SetAgentCollaboratorInvocationInput(std::forward<AgentCollaboratorInvocationInputT>(value));
72 return *this;
73 }
75
77
80 inline const CodeInterpreterInvocationInput& GetCodeInterpreterInvocationInput() const { return m_codeInterpreterInvocationInput; }
81 inline bool CodeInterpreterInvocationInputHasBeenSet() const { return m_codeInterpreterInvocationInputHasBeenSet; }
82 template <typename CodeInterpreterInvocationInputT = CodeInterpreterInvocationInput>
84 m_codeInterpreterInvocationInputHasBeenSet = true;
85 m_codeInterpreterInvocationInput = std::forward<CodeInterpreterInvocationInputT>(value);
86 }
87 template <typename CodeInterpreterInvocationInputT = CodeInterpreterInvocationInput>
89 SetCodeInterpreterInvocationInput(std::forward<CodeInterpreterInvocationInputT>(value));
90 return *this;
91 }
93
95
99 inline InvocationType GetInvocationType() const { return m_invocationType; }
100 inline bool InvocationTypeHasBeenSet() const { return m_invocationTypeHasBeenSet; }
102 m_invocationTypeHasBeenSet = true;
103 m_invocationType = value;
104 }
106 SetInvocationType(value);
107 return *this;
108 }
110
112
116 inline const KnowledgeBaseLookupInput& GetKnowledgeBaseLookupInput() const { return m_knowledgeBaseLookupInput; }
117 inline bool KnowledgeBaseLookupInputHasBeenSet() const { return m_knowledgeBaseLookupInputHasBeenSet; }
118 template <typename KnowledgeBaseLookupInputT = KnowledgeBaseLookupInput>
120 m_knowledgeBaseLookupInputHasBeenSet = true;
121 m_knowledgeBaseLookupInput = std::forward<KnowledgeBaseLookupInputT>(value);
122 }
123 template <typename KnowledgeBaseLookupInputT = KnowledgeBaseLookupInput>
125 SetKnowledgeBaseLookupInput(std::forward<KnowledgeBaseLookupInputT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::String& GetTraceId() const { return m_traceId; }
135 inline bool TraceIdHasBeenSet() const { return m_traceIdHasBeenSet; }
136 template <typename TraceIdT = Aws::String>
137 void SetTraceId(TraceIdT&& value) {
138 m_traceIdHasBeenSet = true;
139 m_traceId = std::forward<TraceIdT>(value);
140 }
141 template <typename TraceIdT = Aws::String>
143 SetTraceId(std::forward<TraceIdT>(value));
144 return *this;
145 }
147 private:
148 ActionGroupInvocationInput m_actionGroupInvocationInput;
149
150 AgentCollaboratorInvocationInput m_agentCollaboratorInvocationInput;
151
152 CodeInterpreterInvocationInput m_codeInterpreterInvocationInput;
153
154 InvocationType m_invocationType{InvocationType::NOT_SET};
155
156 KnowledgeBaseLookupInput m_knowledgeBaseLookupInput;
157
158 Aws::String m_traceId;
159 bool m_actionGroupInvocationInputHasBeenSet = false;
160 bool m_agentCollaboratorInvocationInputHasBeenSet = false;
161 bool m_codeInterpreterInvocationInputHasBeenSet = false;
162 bool m_invocationTypeHasBeenSet = false;
163 bool m_knowledgeBaseLookupInputHasBeenSet = false;
164 bool m_traceIdHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace BedrockAgentRuntime
169} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API InvocationInput(Aws::Utils::Json::JsonView jsonValue)
void SetActionGroupInvocationInput(ActionGroupInvocationInputT &&value)
const ActionGroupInvocationInput & GetActionGroupInvocationInput() const
const AgentCollaboratorInvocationInput & GetAgentCollaboratorInvocationInput() const
InvocationInput & WithTraceId(TraceIdT &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
InvocationInput & WithAgentCollaboratorInvocationInput(AgentCollaboratorInvocationInputT &&value)
void SetCodeInterpreterInvocationInput(CodeInterpreterInvocationInputT &&value)
InvocationInput & WithInvocationType(InvocationType value)
void SetKnowledgeBaseLookupInput(KnowledgeBaseLookupInputT &&value)
InvocationInput & WithCodeInterpreterInvocationInput(CodeInterpreterInvocationInputT &&value)
AWS_BEDROCKAGENTRUNTIME_API InvocationInput & operator=(Aws::Utils::Json::JsonView jsonValue)
const CodeInterpreterInvocationInput & GetCodeInterpreterInvocationInput() const
InvocationInput & WithActionGroupInvocationInput(ActionGroupInvocationInputT &&value)
InvocationInput & WithKnowledgeBaseLookupInput(KnowledgeBaseLookupInputT &&value)
AWS_BEDROCKAGENTRUNTIME_API InvocationInput()=default
const KnowledgeBaseLookupInput & GetKnowledgeBaseLookupInput() const
void SetAgentCollaboratorInvocationInput(AgentCollaboratorInvocationInputT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue