AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ClientTokenT = Aws::String>
52 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
53 template<typename ClientTokenT = Aws::String>
54 CreateKnowledgeBaseRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
56
58
61 inline const Aws::String& GetDescription() const { return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 template<typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
65 template<typename DescriptionT = Aws::String>
66 CreateKnowledgeBaseRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
68
70
75 inline KnowledgeBaseType GetKnowledgeBaseType() const { return m_knowledgeBaseType; }
76 inline bool KnowledgeBaseTypeHasBeenSet() const { return m_knowledgeBaseTypeHasBeenSet; }
77 inline void SetKnowledgeBaseType(KnowledgeBaseType value) { m_knowledgeBaseTypeHasBeenSet = true; m_knowledgeBaseType = value; }
80
82
85 inline const Aws::String& GetName() const { return m_name; }
86 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
87 template<typename NameT = Aws::String>
88 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
89 template<typename NameT = Aws::String>
90 CreateKnowledgeBaseRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
92
94
97 inline const RenderingConfiguration& GetRenderingConfiguration() const { return m_renderingConfiguration; }
98 inline bool RenderingConfigurationHasBeenSet() const { return m_renderingConfigurationHasBeenSet; }
99 template<typename RenderingConfigurationT = RenderingConfiguration>
100 void SetRenderingConfiguration(RenderingConfigurationT&& value) { m_renderingConfigurationHasBeenSet = true; m_renderingConfiguration = std::forward<RenderingConfigurationT>(value); }
101 template<typename RenderingConfigurationT = RenderingConfiguration>
102 CreateKnowledgeBaseRequest& WithRenderingConfiguration(RenderingConfigurationT&& value) { SetRenderingConfiguration(std::forward<RenderingConfigurationT>(value)); return *this;}
104
106
116 inline const ServerSideEncryptionConfiguration& GetServerSideEncryptionConfiguration() const { return m_serverSideEncryptionConfiguration; }
117 inline bool ServerSideEncryptionConfigurationHasBeenSet() const { return m_serverSideEncryptionConfigurationHasBeenSet; }
118 template<typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
119 void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT&& value) { m_serverSideEncryptionConfigurationHasBeenSet = true; m_serverSideEncryptionConfiguration = std::forward<ServerSideEncryptionConfigurationT>(value); }
120 template<typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
121 CreateKnowledgeBaseRequest& WithServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT&& value) { SetServerSideEncryptionConfiguration(std::forward<ServerSideEncryptionConfigurationT>(value)); return *this;}
123
125
129 inline const SourceConfiguration& GetSourceConfiguration() const { return m_sourceConfiguration; }
130 inline bool SourceConfigurationHasBeenSet() const { return m_sourceConfigurationHasBeenSet; }
131 template<typename SourceConfigurationT = SourceConfiguration>
132 void SetSourceConfiguration(SourceConfigurationT&& value) { m_sourceConfigurationHasBeenSet = true; m_sourceConfiguration = std::forward<SourceConfigurationT>(value); }
133 template<typename SourceConfigurationT = SourceConfiguration>
134 CreateKnowledgeBaseRequest& WithSourceConfiguration(SourceConfigurationT&& value) { SetSourceConfiguration(std::forward<SourceConfigurationT>(value)); return *this;}
136
138
141 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
142 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
143 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
144 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
145 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
146 CreateKnowledgeBaseRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
147 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
148 CreateKnowledgeBaseRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
149 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
150 }
152 private:
153
155 bool m_clientTokenHasBeenSet = true;
156
157 Aws::String m_description;
158 bool m_descriptionHasBeenSet = false;
159
161 bool m_knowledgeBaseTypeHasBeenSet = false;
162
163 Aws::String m_name;
164 bool m_nameHasBeenSet = false;
165
166 RenderingConfiguration m_renderingConfiguration;
167 bool m_renderingConfigurationHasBeenSet = false;
168
169 ServerSideEncryptionConfiguration m_serverSideEncryptionConfiguration;
170 bool m_serverSideEncryptionConfigurationHasBeenSet = false;
171
172 SourceConfiguration m_sourceConfiguration;
173 bool m_sourceConfigurationHasBeenSet = false;
174
176 bool m_tagsHasBeenSet = false;
177 };
178
179} // namespace Model
180} // namespace ConnectWisdomService
181} // namespace Aws
CreateKnowledgeBaseRequest & WithServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT &&value)
AWS_CONNECTWISDOMSERVICE_API CreateKnowledgeBaseRequest()=default
CreateKnowledgeBaseRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateKnowledgeBaseRequest & WithSourceConfiguration(SourceConfigurationT &&value)
CreateKnowledgeBaseRequest & WithClientToken(ClientTokenT &&value)
CreateKnowledgeBaseRequest & WithKnowledgeBaseType(KnowledgeBaseType value)
CreateKnowledgeBaseRequest & WithDescription(DescriptionT &&value)
const ServerSideEncryptionConfiguration & GetServerSideEncryptionConfiguration() const
AWS_CONNECTWISDOMSERVICE_API Aws::String SerializePayload() const override
CreateKnowledgeBaseRequest & WithRenderingConfiguration(RenderingConfigurationT &&value)
void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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