AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateKnowledgeBaseRequest.h
1
6#pragma once
7#include <aws/wisdom/ConnectWisdomService_EXPORTS.h>
8#include <aws/wisdom/ConnectWisdomServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/wisdom/model/KnowledgeBaseType.h>
11#include <aws/wisdom/model/RenderingConfiguration.h>
12#include <aws/wisdom/model/ServerSideEncryptionConfiguration.h>
13#include <aws/wisdom/model/SourceConfiguration.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace ConnectWisdomService
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_CONNECTWISDOMSERVICE_API CreateKnowledgeBaseRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateKnowledgeBase"; }
37
38 AWS_CONNECTWISDOMSERVICE_API Aws::String SerializePayload() const override;
39
40
42
49 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
50 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
51 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
52 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
53 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
54 inline CreateKnowledgeBaseRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
55 inline CreateKnowledgeBaseRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
56 inline CreateKnowledgeBaseRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
58
60
63 inline const Aws::String& GetDescription() const{ return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
66 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
67 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
68 inline CreateKnowledgeBaseRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
69 inline CreateKnowledgeBaseRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
70 inline CreateKnowledgeBaseRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
72
74
79 inline const KnowledgeBaseType& GetKnowledgeBaseType() const{ return m_knowledgeBaseType; }
80 inline bool KnowledgeBaseTypeHasBeenSet() const { return m_knowledgeBaseTypeHasBeenSet; }
81 inline void SetKnowledgeBaseType(const KnowledgeBaseType& value) { m_knowledgeBaseTypeHasBeenSet = true; m_knowledgeBaseType = value; }
82 inline void SetKnowledgeBaseType(KnowledgeBaseType&& value) { m_knowledgeBaseTypeHasBeenSet = true; m_knowledgeBaseType = std::move(value); }
86
88
91 inline const Aws::String& GetName() const{ return m_name; }
92 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
93 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
94 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
95 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
96 inline CreateKnowledgeBaseRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
97 inline CreateKnowledgeBaseRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
98 inline CreateKnowledgeBaseRequest& WithName(const char* value) { SetName(value); return *this;}
100
102
105 inline const RenderingConfiguration& GetRenderingConfiguration() const{ return m_renderingConfiguration; }
106 inline bool RenderingConfigurationHasBeenSet() const { return m_renderingConfigurationHasBeenSet; }
107 inline void SetRenderingConfiguration(const RenderingConfiguration& value) { m_renderingConfigurationHasBeenSet = true; m_renderingConfiguration = value; }
108 inline void SetRenderingConfiguration(RenderingConfiguration&& value) { m_renderingConfigurationHasBeenSet = true; m_renderingConfiguration = std::move(value); }
112
114
124 inline const ServerSideEncryptionConfiguration& GetServerSideEncryptionConfiguration() const{ return m_serverSideEncryptionConfiguration; }
125 inline bool ServerSideEncryptionConfigurationHasBeenSet() const { return m_serverSideEncryptionConfigurationHasBeenSet; }
126 inline void SetServerSideEncryptionConfiguration(const ServerSideEncryptionConfiguration& value) { m_serverSideEncryptionConfigurationHasBeenSet = true; m_serverSideEncryptionConfiguration = value; }
127 inline void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration&& value) { m_serverSideEncryptionConfigurationHasBeenSet = true; m_serverSideEncryptionConfiguration = std::move(value); }
131
133
137 inline const SourceConfiguration& GetSourceConfiguration() const{ return m_sourceConfiguration; }
138 inline bool SourceConfigurationHasBeenSet() const { return m_sourceConfigurationHasBeenSet; }
139 inline void SetSourceConfiguration(const SourceConfiguration& value) { m_sourceConfigurationHasBeenSet = true; m_sourceConfiguration = value; }
140 inline void SetSourceConfiguration(SourceConfiguration&& value) { m_sourceConfigurationHasBeenSet = true; m_sourceConfiguration = std::move(value); }
144
146
149 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
150 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
151 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
152 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
154 inline CreateKnowledgeBaseRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
155 inline CreateKnowledgeBaseRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
156 inline CreateKnowledgeBaseRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
157 inline CreateKnowledgeBaseRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
158 inline CreateKnowledgeBaseRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
159 inline CreateKnowledgeBaseRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
160 inline CreateKnowledgeBaseRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
161 inline CreateKnowledgeBaseRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
163 private:
164
165 Aws::String m_clientToken;
166 bool m_clientTokenHasBeenSet = false;
167
168 Aws::String m_description;
169 bool m_descriptionHasBeenSet = false;
170
171 KnowledgeBaseType m_knowledgeBaseType;
172 bool m_knowledgeBaseTypeHasBeenSet = false;
173
174 Aws::String m_name;
175 bool m_nameHasBeenSet = false;
176
177 RenderingConfiguration m_renderingConfiguration;
178 bool m_renderingConfigurationHasBeenSet = false;
179
180 ServerSideEncryptionConfiguration m_serverSideEncryptionConfiguration;
181 bool m_serverSideEncryptionConfigurationHasBeenSet = false;
182
183 SourceConfiguration m_sourceConfiguration;
184 bool m_sourceConfigurationHasBeenSet = false;
185
187 bool m_tagsHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace ConnectWisdomService
192} // namespace Aws
CreateKnowledgeBaseRequest & WithRenderingConfiguration(RenderingConfiguration &&value)
CreateKnowledgeBaseRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateKnowledgeBaseRequest & WithKnowledgeBaseType(KnowledgeBaseType &&value)
CreateKnowledgeBaseRequest & WithName(Aws::String &&value)
CreateKnowledgeBaseRequest & WithClientToken(const Aws::String &value)
CreateKnowledgeBaseRequest & WithSourceConfiguration(const SourceConfiguration &value)
CreateKnowledgeBaseRequest & AddTags(Aws::String &&key, const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateKnowledgeBaseRequest & WithSourceConfiguration(SourceConfiguration &&value)
CreateKnowledgeBaseRequest & WithClientToken(const char *value)
CreateKnowledgeBaseRequest & AddTags(Aws::String &&key, const char *value)
CreateKnowledgeBaseRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateKnowledgeBaseRequest & WithServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration &&value)
CreateKnowledgeBaseRequest & WithClientToken(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateKnowledgeBaseRequest & WithDescription(const char *value)
void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateKnowledgeBaseRequest & AddTags(const char *key, const char *value)
CreateKnowledgeBaseRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateKnowledgeBaseRequest & WithServerSideEncryptionConfiguration(const ServerSideEncryptionConfiguration &value)
void SetServerSideEncryptionConfiguration(const ServerSideEncryptionConfiguration &value)
CreateKnowledgeBaseRequest & WithRenderingConfiguration(const RenderingConfiguration &value)
CreateKnowledgeBaseRequest & WithDescription(Aws::String &&value)
CreateKnowledgeBaseRequest & WithKnowledgeBaseType(const KnowledgeBaseType &value)
const ServerSideEncryptionConfiguration & GetServerSideEncryptionConfiguration() const
AWS_CONNECTWISDOMSERVICE_API Aws::String SerializePayload() const override
CreateKnowledgeBaseRequest & AddTags(const char *key, Aws::String &&value)
CreateKnowledgeBaseRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateKnowledgeBaseRequest & WithName(const Aws::String &value)
CreateKnowledgeBaseRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateKnowledgeBaseRequest & WithDescription(const Aws::String &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String