AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAgentId(const Aws::String& value) { m_agentIdHasBeenSet = true; m_agentId = value; }
44 inline void SetAgentId(Aws::String&& value) { m_agentIdHasBeenSet = true; m_agentId = std::move(value); }
45 inline void SetAgentId(const char* value) { m_agentIdHasBeenSet = true; m_agentId.assign(value); }
46 inline AssociateAgentKnowledgeBaseRequest& WithAgentId(const Aws::String& value) { SetAgentId(value); return *this;}
47 inline AssociateAgentKnowledgeBaseRequest& WithAgentId(Aws::String&& value) { SetAgentId(std::move(value)); return *this;}
48 inline AssociateAgentKnowledgeBaseRequest& WithAgentId(const char* value) { SetAgentId(value); return *this;}
50
52
56 inline const Aws::String& GetAgentVersion() const{ return m_agentVersion; }
57 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
58 inline void SetAgentVersion(const Aws::String& value) { m_agentVersionHasBeenSet = true; m_agentVersion = value; }
59 inline void SetAgentVersion(Aws::String&& value) { m_agentVersionHasBeenSet = true; m_agentVersion = std::move(value); }
60 inline void SetAgentVersion(const char* value) { m_agentVersionHasBeenSet = true; m_agentVersion.assign(value); }
62 inline AssociateAgentKnowledgeBaseRequest& WithAgentVersion(Aws::String&& value) { SetAgentVersion(std::move(value)); return *this;}
63 inline AssociateAgentKnowledgeBaseRequest& WithAgentVersion(const char* value) { SetAgentVersion(value); return *this;}
65
67
70 inline const Aws::String& GetDescription() const{ return m_description; }
71 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
72 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
73 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
74 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
76 inline AssociateAgentKnowledgeBaseRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
77 inline AssociateAgentKnowledgeBaseRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
79
81
84 inline const Aws::String& GetKnowledgeBaseId() const{ return m_knowledgeBaseId; }
85 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
86 inline void SetKnowledgeBaseId(const Aws::String& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = value; }
87 inline void SetKnowledgeBaseId(Aws::String&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::move(value); }
88 inline void SetKnowledgeBaseId(const char* value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId.assign(value); }
90 inline AssociateAgentKnowledgeBaseRequest& WithKnowledgeBaseId(Aws::String&& value) { SetKnowledgeBaseId(std::move(value)); return *this;}
91 inline AssociateAgentKnowledgeBaseRequest& WithKnowledgeBaseId(const char* value) { SetKnowledgeBaseId(value); return *this;}
93
95
100 inline const KnowledgeBaseState& GetKnowledgeBaseState() const{ return m_knowledgeBaseState; }
101 inline bool KnowledgeBaseStateHasBeenSet() const { return m_knowledgeBaseStateHasBeenSet; }
102 inline void SetKnowledgeBaseState(const KnowledgeBaseState& value) { m_knowledgeBaseStateHasBeenSet = true; m_knowledgeBaseState = value; }
103 inline void SetKnowledgeBaseState(KnowledgeBaseState&& value) { m_knowledgeBaseStateHasBeenSet = true; m_knowledgeBaseState = std::move(value); }
107 private:
108
109 Aws::String m_agentId;
110 bool m_agentIdHasBeenSet = false;
111
112 Aws::String m_agentVersion;
113 bool m_agentVersionHasBeenSet = false;
114
115 Aws::String m_description;
116 bool m_descriptionHasBeenSet = false;
117
118 Aws::String m_knowledgeBaseId;
119 bool m_knowledgeBaseIdHasBeenSet = false;
120
121 KnowledgeBaseState m_knowledgeBaseState;
122 bool m_knowledgeBaseStateHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace BedrockAgent
127} // namespace Aws
AssociateAgentKnowledgeBaseRequest & WithAgentId(const Aws::String &value)
AssociateAgentKnowledgeBaseRequest & WithDescription(const char *value)
AssociateAgentKnowledgeBaseRequest & WithKnowledgeBaseId(const Aws::String &value)
AssociateAgentKnowledgeBaseRequest & WithAgentId(const char *value)
AssociateAgentKnowledgeBaseRequest & WithKnowledgeBaseId(const char *value)
AssociateAgentKnowledgeBaseRequest & WithKnowledgeBaseState(const KnowledgeBaseState &value)
AssociateAgentKnowledgeBaseRequest & WithKnowledgeBaseId(Aws::String &&value)
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
AssociateAgentKnowledgeBaseRequest & WithDescription(Aws::String &&value)
AssociateAgentKnowledgeBaseRequest & WithKnowledgeBaseState(KnowledgeBaseState &&value)
AssociateAgentKnowledgeBaseRequest & WithAgentVersion(const char *value)
AssociateAgentKnowledgeBaseRequest & WithAgentVersion(Aws::String &&value)
AssociateAgentKnowledgeBaseRequest & WithAgentVersion(const Aws::String &value)
AssociateAgentKnowledgeBaseRequest & WithAgentId(Aws::String &&value)
AssociateAgentKnowledgeBaseRequest & WithDescription(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String