AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AssociateAgentKnowledgeBaseRequest.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/BedrockAgentRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/bedrock-agent/model/KnowledgeBaseState.h>
11#include <utility>
12
13namespace Aws
14{
15namespace BedrockAgent
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_BEDROCKAGENT_API AssociateAgentKnowledgeBaseRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "AssociateAgentKnowledgeBase"; }
32
33 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
34
35
37
41 inline const Aws::String& GetAgentId() const { return m_agentId; }
42 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
43 template<typename AgentIdT = Aws::String>
44 void SetAgentId(AgentIdT&& value) { m_agentIdHasBeenSet = true; m_agentId = std::forward<AgentIdT>(value); }
45 template<typename AgentIdT = Aws::String>
46 AssociateAgentKnowledgeBaseRequest& WithAgentId(AgentIdT&& value) { SetAgentId(std::forward<AgentIdT>(value)); return *this;}
48
50
54 inline const Aws::String& GetAgentVersion() const { return m_agentVersion; }
55 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
56 template<typename AgentVersionT = Aws::String>
57 void SetAgentVersion(AgentVersionT&& value) { m_agentVersionHasBeenSet = true; m_agentVersion = std::forward<AgentVersionT>(value); }
58 template<typename AgentVersionT = Aws::String>
59 AssociateAgentKnowledgeBaseRequest& WithAgentVersion(AgentVersionT&& value) { SetAgentVersion(std::forward<AgentVersionT>(value)); return *this;}
61
63
66 inline const Aws::String& GetDescription() const { return m_description; }
67 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
68 template<typename DescriptionT = Aws::String>
69 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
70 template<typename DescriptionT = Aws::String>
71 AssociateAgentKnowledgeBaseRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
73
75
78 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
79 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
80 template<typename KnowledgeBaseIdT = Aws::String>
81 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
82 template<typename KnowledgeBaseIdT = Aws::String>
83 AssociateAgentKnowledgeBaseRequest& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) { SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value)); return *this;}
85
87
92 inline KnowledgeBaseState GetKnowledgeBaseState() const { return m_knowledgeBaseState; }
93 inline bool KnowledgeBaseStateHasBeenSet() const { return m_knowledgeBaseStateHasBeenSet; }
94 inline void SetKnowledgeBaseState(KnowledgeBaseState value) { m_knowledgeBaseStateHasBeenSet = true; m_knowledgeBaseState = value; }
97 private:
98
99 Aws::String m_agentId;
100 bool m_agentIdHasBeenSet = false;
101
102 Aws::String m_agentVersion;
103 bool m_agentVersionHasBeenSet = false;
104
105 Aws::String m_description;
106 bool m_descriptionHasBeenSet = false;
107
108 Aws::String m_knowledgeBaseId;
109 bool m_knowledgeBaseIdHasBeenSet = false;
110
112 bool m_knowledgeBaseStateHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace BedrockAgent
117} // namespace Aws
AssociateAgentKnowledgeBaseRequest & WithAgentId(AgentIdT &&value)
AssociateAgentKnowledgeBaseRequest & WithAgentVersion(AgentVersionT &&value)
AWS_BEDROCKAGENT_API AssociateAgentKnowledgeBaseRequest()=default
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
AssociateAgentKnowledgeBaseRequest & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
AssociateAgentKnowledgeBaseRequest & WithKnowledgeBaseState(KnowledgeBaseState value)
AssociateAgentKnowledgeBaseRequest & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String