AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
Collaborator.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/AgentActionGroup.h>
9#include <aws/bedrock-agent-runtime/model/AgentCollaboration.h>
10#include <aws/bedrock-agent-runtime/model/CollaboratorConfiguration.h>
11#include <aws/bedrock-agent-runtime/model/GuardrailConfigurationWithArn.h>
12#include <aws/bedrock-agent-runtime/model/KnowledgeBase.h>
13#include <aws/bedrock-agent-runtime/model/PromptOverrideConfiguration.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace BedrockAgentRuntime {
27namespace Model {
28
35 public:
36 AWS_BEDROCKAGENTRUNTIME_API Collaborator() = default;
39 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
46 inline const Aws::Vector<AgentActionGroup>& GetActionGroups() const { return m_actionGroups; }
47 inline bool ActionGroupsHasBeenSet() const { return m_actionGroupsHasBeenSet; }
48 template <typename ActionGroupsT = Aws::Vector<AgentActionGroup>>
50 m_actionGroupsHasBeenSet = true;
51 m_actionGroups = std::forward<ActionGroupsT>(value);
52 }
53 template <typename ActionGroupsT = Aws::Vector<AgentActionGroup>>
55 SetActionGroups(std::forward<ActionGroupsT>(value));
56 return *this;
57 }
58 template <typename ActionGroupsT = AgentActionGroup>
60 m_actionGroupsHasBeenSet = true;
61 m_actionGroups.emplace_back(std::forward<ActionGroupsT>(value));
62 return *this;
63 }
65
67
71 inline AgentCollaboration GetAgentCollaboration() const { return m_agentCollaboration; }
72 inline bool AgentCollaborationHasBeenSet() const { return m_agentCollaborationHasBeenSet; }
74 m_agentCollaborationHasBeenSet = true;
75 m_agentCollaboration = value;
76 }
79 return *this;
80 }
82
84
88 inline const Aws::String& GetAgentName() const { return m_agentName; }
89 inline bool AgentNameHasBeenSet() const { return m_agentNameHasBeenSet; }
90 template <typename AgentNameT = Aws::String>
91 void SetAgentName(AgentNameT&& value) {
92 m_agentNameHasBeenSet = true;
93 m_agentName = std::forward<AgentNameT>(value);
94 }
95 template <typename AgentNameT = Aws::String>
97 SetAgentName(std::forward<AgentNameT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::Vector<CollaboratorConfiguration>& GetCollaboratorConfigurations() const { return m_collaboratorConfigurations; }
107 inline bool CollaboratorConfigurationsHasBeenSet() const { return m_collaboratorConfigurationsHasBeenSet; }
108 template <typename CollaboratorConfigurationsT = Aws::Vector<CollaboratorConfiguration>>
110 m_collaboratorConfigurationsHasBeenSet = true;
111 m_collaboratorConfigurations = std::forward<CollaboratorConfigurationsT>(value);
112 }
113 template <typename CollaboratorConfigurationsT = Aws::Vector<CollaboratorConfiguration>>
115 SetCollaboratorConfigurations(std::forward<CollaboratorConfigurationsT>(value));
116 return *this;
117 }
118 template <typename CollaboratorConfigurationsT = CollaboratorConfiguration>
120 m_collaboratorConfigurationsHasBeenSet = true;
121 m_collaboratorConfigurations.emplace_back(std::forward<CollaboratorConfigurationsT>(value));
122 return *this;
123 }
125
127
131 inline const Aws::String& GetCustomerEncryptionKeyArn() const { return m_customerEncryptionKeyArn; }
132 inline bool CustomerEncryptionKeyArnHasBeenSet() const { return m_customerEncryptionKeyArnHasBeenSet; }
133 template <typename CustomerEncryptionKeyArnT = Aws::String>
135 m_customerEncryptionKeyArnHasBeenSet = true;
136 m_customerEncryptionKeyArn = std::forward<CustomerEncryptionKeyArnT>(value);
137 }
138 template <typename CustomerEncryptionKeyArnT = Aws::String>
140 SetCustomerEncryptionKeyArn(std::forward<CustomerEncryptionKeyArnT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::String& GetFoundationModel() const { return m_foundationModel; }
150 inline bool FoundationModelHasBeenSet() const { return m_foundationModelHasBeenSet; }
151 template <typename FoundationModelT = Aws::String>
153 m_foundationModelHasBeenSet = true;
154 m_foundationModel = std::forward<FoundationModelT>(value);
155 }
156 template <typename FoundationModelT = Aws::String>
158 SetFoundationModel(std::forward<FoundationModelT>(value));
159 return *this;
160 }
162
164
167 inline const GuardrailConfigurationWithArn& GetGuardrailConfiguration() const { return m_guardrailConfiguration; }
168 inline bool GuardrailConfigurationHasBeenSet() const { return m_guardrailConfigurationHasBeenSet; }
169 template <typename GuardrailConfigurationT = GuardrailConfigurationWithArn>
171 m_guardrailConfigurationHasBeenSet = true;
172 m_guardrailConfiguration = std::forward<GuardrailConfigurationT>(value);
173 }
174 template <typename GuardrailConfigurationT = GuardrailConfigurationWithArn>
176 SetGuardrailConfiguration(std::forward<GuardrailConfigurationT>(value));
177 return *this;
178 }
180
182
189 inline int GetIdleSessionTTLInSeconds() const { return m_idleSessionTTLInSeconds; }
190 inline bool IdleSessionTTLInSecondsHasBeenSet() const { return m_idleSessionTTLInSecondsHasBeenSet; }
191 inline void SetIdleSessionTTLInSeconds(int value) {
192 m_idleSessionTTLInSecondsHasBeenSet = true;
193 m_idleSessionTTLInSeconds = value;
194 }
197 return *this;
198 }
200
202
206 inline const Aws::String& GetInstruction() const { return m_instruction; }
207 inline bool InstructionHasBeenSet() const { return m_instructionHasBeenSet; }
208 template <typename InstructionT = Aws::String>
210 m_instructionHasBeenSet = true;
211 m_instruction = std::forward<InstructionT>(value);
212 }
213 template <typename InstructionT = Aws::String>
215 SetInstruction(std::forward<InstructionT>(value));
216 return *this;
217 }
219
221
224 inline const Aws::Vector<KnowledgeBase>& GetKnowledgeBases() const { return m_knowledgeBases; }
225 inline bool KnowledgeBasesHasBeenSet() const { return m_knowledgeBasesHasBeenSet; }
226 template <typename KnowledgeBasesT = Aws::Vector<KnowledgeBase>>
228 m_knowledgeBasesHasBeenSet = true;
229 m_knowledgeBases = std::forward<KnowledgeBasesT>(value);
230 }
231 template <typename KnowledgeBasesT = Aws::Vector<KnowledgeBase>>
233 SetKnowledgeBases(std::forward<KnowledgeBasesT>(value));
234 return *this;
235 }
236 template <typename KnowledgeBasesT = KnowledgeBase>
238 m_knowledgeBasesHasBeenSet = true;
239 m_knowledgeBases.emplace_back(std::forward<KnowledgeBasesT>(value));
240 return *this;
241 }
243
245
251 inline const PromptOverrideConfiguration& GetPromptOverrideConfiguration() const { return m_promptOverrideConfiguration; }
252 inline bool PromptOverrideConfigurationHasBeenSet() const { return m_promptOverrideConfigurationHasBeenSet; }
253 template <typename PromptOverrideConfigurationT = PromptOverrideConfiguration>
255 m_promptOverrideConfigurationHasBeenSet = true;
256 m_promptOverrideConfiguration = std::forward<PromptOverrideConfigurationT>(value);
257 }
258 template <typename PromptOverrideConfigurationT = PromptOverrideConfiguration>
260 SetPromptOverrideConfiguration(std::forward<PromptOverrideConfigurationT>(value));
261 return *this;
262 }
264 private:
265 Aws::Vector<AgentActionGroup> m_actionGroups;
266
268
269 Aws::String m_agentName;
270
271 Aws::Vector<CollaboratorConfiguration> m_collaboratorConfigurations;
272
273 Aws::String m_customerEncryptionKeyArn;
274
275 Aws::String m_foundationModel;
276
277 GuardrailConfigurationWithArn m_guardrailConfiguration;
278
279 int m_idleSessionTTLInSeconds{0};
280
281 Aws::String m_instruction;
282
283 Aws::Vector<KnowledgeBase> m_knowledgeBases;
284
285 PromptOverrideConfiguration m_promptOverrideConfiguration;
286 bool m_actionGroupsHasBeenSet = false;
287 bool m_agentCollaborationHasBeenSet = false;
288 bool m_agentNameHasBeenSet = false;
289 bool m_collaboratorConfigurationsHasBeenSet = false;
290 bool m_customerEncryptionKeyArnHasBeenSet = false;
291 bool m_foundationModelHasBeenSet = false;
292 bool m_guardrailConfigurationHasBeenSet = false;
293 bool m_idleSessionTTLInSecondsHasBeenSet = false;
294 bool m_instructionHasBeenSet = false;
295 bool m_knowledgeBasesHasBeenSet = false;
296 bool m_promptOverrideConfigurationHasBeenSet = false;
297};
298
299} // namespace Model
300} // namespace BedrockAgentRuntime
301} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API Collaborator()=default
void SetAgentCollaboration(AgentCollaboration value)
const PromptOverrideConfiguration & GetPromptOverrideConfiguration() const
const GuardrailConfigurationWithArn & GetGuardrailConfiguration() const
AWS_BEDROCKAGENTRUNTIME_API Collaborator & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetActionGroups(ActionGroupsT &&value)
Collaborator & WithAgentCollaboration(AgentCollaboration value)
const Aws::Vector< CollaboratorConfiguration > & GetCollaboratorConfigurations() const
Collaborator & WithKnowledgeBases(KnowledgeBasesT &&value)
void SetKnowledgeBases(KnowledgeBasesT &&value)
Collaborator & WithGuardrailConfiguration(GuardrailConfigurationT &&value)
Collaborator & AddKnowledgeBases(KnowledgeBasesT &&value)
const Aws::Vector< AgentActionGroup > & GetActionGroups() const
Collaborator & AddActionGroups(ActionGroupsT &&value)
const Aws::String & GetAgentName() const
const Aws::Vector< KnowledgeBase > & GetKnowledgeBases() const
Collaborator & WithAgentName(AgentNameT &&value)
void SetGuardrailConfiguration(GuardrailConfigurationT &&value)
Collaborator & WithCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT &&value)
AWS_BEDROCKAGENTRUNTIME_API Collaborator(Aws::Utils::Json::JsonView jsonValue)
void SetCollaboratorConfigurations(CollaboratorConfigurationsT &&value)
void SetFoundationModel(FoundationModelT &&value)
Collaborator & AddCollaboratorConfigurations(CollaboratorConfigurationsT &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
Collaborator & WithActionGroups(ActionGroupsT &&value)
Collaborator & WithFoundationModel(FoundationModelT &&value)
Collaborator & WithInstruction(InstructionT &&value)
const Aws::String & GetFoundationModel() const
Collaborator & WithCollaboratorConfigurations(CollaboratorConfigurationsT &&value)
AgentCollaboration GetAgentCollaboration() const
void SetPromptOverrideConfiguration(PromptOverrideConfigurationT &&value)
Collaborator & WithPromptOverrideConfiguration(PromptOverrideConfigurationT &&value)
const Aws::String & GetInstruction() const
const Aws::String & GetCustomerEncryptionKeyArn() const
void SetCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT &&value)
Collaborator & WithIdleSessionTTLInSeconds(int 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