AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Collaborator.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/bedrock-agent-runtime/model/AgentCollaboration.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/bedrock-agent-runtime/model/GuardrailConfigurationWithArn.h>
12#include <aws/bedrock-agent-runtime/model/PromptOverrideConfiguration.h>
13#include <aws/bedrock-agent-runtime/model/AgentActionGroup.h>
14#include <aws/bedrock-agent-runtime/model/CollaboratorConfiguration.h>
15#include <aws/bedrock-agent-runtime/model/KnowledgeBase.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace BedrockAgentRuntime
29{
30namespace Model
31{
32
39 {
40 public:
41 AWS_BEDROCKAGENTRUNTIME_API Collaborator() = default;
42 AWS_BEDROCKAGENTRUNTIME_API Collaborator(Aws::Utils::Json::JsonView jsonValue);
43 AWS_BEDROCKAGENTRUNTIME_API Collaborator& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline const Aws::Vector<AgentActionGroup>& GetActionGroups() const { return m_actionGroups; }
53 inline bool ActionGroupsHasBeenSet() const { return m_actionGroupsHasBeenSet; }
54 template<typename ActionGroupsT = Aws::Vector<AgentActionGroup>>
55 void SetActionGroups(ActionGroupsT&& value) { m_actionGroupsHasBeenSet = true; m_actionGroups = std::forward<ActionGroupsT>(value); }
56 template<typename ActionGroupsT = Aws::Vector<AgentActionGroup>>
57 Collaborator& WithActionGroups(ActionGroupsT&& value) { SetActionGroups(std::forward<ActionGroupsT>(value)); return *this;}
58 template<typename ActionGroupsT = AgentActionGroup>
59 Collaborator& AddActionGroups(ActionGroupsT&& value) { m_actionGroupsHasBeenSet = true; m_actionGroups.emplace_back(std::forward<ActionGroupsT>(value)); return *this; }
61
63
67 inline AgentCollaboration GetAgentCollaboration() const { return m_agentCollaboration; }
68 inline bool AgentCollaborationHasBeenSet() const { return m_agentCollaborationHasBeenSet; }
69 inline void SetAgentCollaboration(AgentCollaboration value) { m_agentCollaborationHasBeenSet = true; m_agentCollaboration = value; }
72
74
78 inline const Aws::String& GetAgentName() const { return m_agentName; }
79 inline bool AgentNameHasBeenSet() const { return m_agentNameHasBeenSet; }
80 template<typename AgentNameT = Aws::String>
81 void SetAgentName(AgentNameT&& value) { m_agentNameHasBeenSet = true; m_agentName = std::forward<AgentNameT>(value); }
82 template<typename AgentNameT = Aws::String>
83 Collaborator& WithAgentName(AgentNameT&& value) { SetAgentName(std::forward<AgentNameT>(value)); return *this;}
85
87
90 inline const Aws::Vector<CollaboratorConfiguration>& GetCollaboratorConfigurations() const { return m_collaboratorConfigurations; }
91 inline bool CollaboratorConfigurationsHasBeenSet() const { return m_collaboratorConfigurationsHasBeenSet; }
92 template<typename CollaboratorConfigurationsT = Aws::Vector<CollaboratorConfiguration>>
93 void SetCollaboratorConfigurations(CollaboratorConfigurationsT&& value) { m_collaboratorConfigurationsHasBeenSet = true; m_collaboratorConfigurations = std::forward<CollaboratorConfigurationsT>(value); }
94 template<typename CollaboratorConfigurationsT = Aws::Vector<CollaboratorConfiguration>>
95 Collaborator& WithCollaboratorConfigurations(CollaboratorConfigurationsT&& value) { SetCollaboratorConfigurations(std::forward<CollaboratorConfigurationsT>(value)); return *this;}
96 template<typename CollaboratorConfigurationsT = CollaboratorConfiguration>
97 Collaborator& AddCollaboratorConfigurations(CollaboratorConfigurationsT&& value) { m_collaboratorConfigurationsHasBeenSet = true; m_collaboratorConfigurations.emplace_back(std::forward<CollaboratorConfigurationsT>(value)); return *this; }
99
101
105 inline const Aws::String& GetCustomerEncryptionKeyArn() const { return m_customerEncryptionKeyArn; }
106 inline bool CustomerEncryptionKeyArnHasBeenSet() const { return m_customerEncryptionKeyArnHasBeenSet; }
107 template<typename CustomerEncryptionKeyArnT = Aws::String>
108 void SetCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT&& value) { m_customerEncryptionKeyArnHasBeenSet = true; m_customerEncryptionKeyArn = std::forward<CustomerEncryptionKeyArnT>(value); }
109 template<typename CustomerEncryptionKeyArnT = Aws::String>
110 Collaborator& WithCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT&& value) { SetCustomerEncryptionKeyArn(std::forward<CustomerEncryptionKeyArnT>(value)); return *this;}
112
114
117 inline const Aws::String& GetFoundationModel() const { return m_foundationModel; }
118 inline bool FoundationModelHasBeenSet() const { return m_foundationModelHasBeenSet; }
119 template<typename FoundationModelT = Aws::String>
120 void SetFoundationModel(FoundationModelT&& value) { m_foundationModelHasBeenSet = true; m_foundationModel = std::forward<FoundationModelT>(value); }
121 template<typename FoundationModelT = Aws::String>
122 Collaborator& WithFoundationModel(FoundationModelT&& value) { SetFoundationModel(std::forward<FoundationModelT>(value)); return *this;}
124
126
129 inline const GuardrailConfigurationWithArn& GetGuardrailConfiguration() const { return m_guardrailConfiguration; }
130 inline bool GuardrailConfigurationHasBeenSet() const { return m_guardrailConfigurationHasBeenSet; }
131 template<typename GuardrailConfigurationT = GuardrailConfigurationWithArn>
132 void SetGuardrailConfiguration(GuardrailConfigurationT&& value) { m_guardrailConfigurationHasBeenSet = true; m_guardrailConfiguration = std::forward<GuardrailConfigurationT>(value); }
133 template<typename GuardrailConfigurationT = GuardrailConfigurationWithArn>
134 Collaborator& WithGuardrailConfiguration(GuardrailConfigurationT&& value) { SetGuardrailConfiguration(std::forward<GuardrailConfigurationT>(value)); return *this;}
136
138
145 inline int GetIdleSessionTTLInSeconds() const { return m_idleSessionTTLInSeconds; }
146 inline bool IdleSessionTTLInSecondsHasBeenSet() const { return m_idleSessionTTLInSecondsHasBeenSet; }
147 inline void SetIdleSessionTTLInSeconds(int value) { m_idleSessionTTLInSecondsHasBeenSet = true; m_idleSessionTTLInSeconds = value; }
148 inline Collaborator& WithIdleSessionTTLInSeconds(int value) { SetIdleSessionTTLInSeconds(value); return *this;}
150
152
156 inline const Aws::String& GetInstruction() const { return m_instruction; }
157 inline bool InstructionHasBeenSet() const { return m_instructionHasBeenSet; }
158 template<typename InstructionT = Aws::String>
159 void SetInstruction(InstructionT&& value) { m_instructionHasBeenSet = true; m_instruction = std::forward<InstructionT>(value); }
160 template<typename InstructionT = Aws::String>
161 Collaborator& WithInstruction(InstructionT&& value) { SetInstruction(std::forward<InstructionT>(value)); return *this;}
163
165
168 inline const Aws::Vector<KnowledgeBase>& GetKnowledgeBases() const { return m_knowledgeBases; }
169 inline bool KnowledgeBasesHasBeenSet() const { return m_knowledgeBasesHasBeenSet; }
170 template<typename KnowledgeBasesT = Aws::Vector<KnowledgeBase>>
171 void SetKnowledgeBases(KnowledgeBasesT&& value) { m_knowledgeBasesHasBeenSet = true; m_knowledgeBases = std::forward<KnowledgeBasesT>(value); }
172 template<typename KnowledgeBasesT = Aws::Vector<KnowledgeBase>>
173 Collaborator& WithKnowledgeBases(KnowledgeBasesT&& value) { SetKnowledgeBases(std::forward<KnowledgeBasesT>(value)); return *this;}
174 template<typename KnowledgeBasesT = KnowledgeBase>
175 Collaborator& AddKnowledgeBases(KnowledgeBasesT&& value) { m_knowledgeBasesHasBeenSet = true; m_knowledgeBases.emplace_back(std::forward<KnowledgeBasesT>(value)); return *this; }
177
179
185 inline const PromptOverrideConfiguration& GetPromptOverrideConfiguration() const { return m_promptOverrideConfiguration; }
186 inline bool PromptOverrideConfigurationHasBeenSet() const { return m_promptOverrideConfigurationHasBeenSet; }
187 template<typename PromptOverrideConfigurationT = PromptOverrideConfiguration>
188 void SetPromptOverrideConfiguration(PromptOverrideConfigurationT&& value) { m_promptOverrideConfigurationHasBeenSet = true; m_promptOverrideConfiguration = std::forward<PromptOverrideConfigurationT>(value); }
189 template<typename PromptOverrideConfigurationT = PromptOverrideConfiguration>
190 Collaborator& WithPromptOverrideConfiguration(PromptOverrideConfigurationT&& value) { SetPromptOverrideConfiguration(std::forward<PromptOverrideConfigurationT>(value)); return *this;}
192 private:
193
194 Aws::Vector<AgentActionGroup> m_actionGroups;
195 bool m_actionGroupsHasBeenSet = false;
196
198 bool m_agentCollaborationHasBeenSet = false;
199
200 Aws::String m_agentName;
201 bool m_agentNameHasBeenSet = false;
202
203 Aws::Vector<CollaboratorConfiguration> m_collaboratorConfigurations;
204 bool m_collaboratorConfigurationsHasBeenSet = false;
205
206 Aws::String m_customerEncryptionKeyArn;
207 bool m_customerEncryptionKeyArnHasBeenSet = false;
208
209 Aws::String m_foundationModel;
210 bool m_foundationModelHasBeenSet = false;
211
212 GuardrailConfigurationWithArn m_guardrailConfiguration;
213 bool m_guardrailConfigurationHasBeenSet = false;
214
215 int m_idleSessionTTLInSeconds{0};
216 bool m_idleSessionTTLInSecondsHasBeenSet = false;
217
218 Aws::String m_instruction;
219 bool m_instructionHasBeenSet = false;
220
221 Aws::Vector<KnowledgeBase> m_knowledgeBases;
222 bool m_knowledgeBasesHasBeenSet = false;
223
224 PromptOverrideConfiguration m_promptOverrideConfiguration;
225 bool m_promptOverrideConfigurationHasBeenSet = false;
226 };
227
228} // namespace Model
229} // namespace BedrockAgentRuntime
230} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue