AWS SDK for C++

AWS SDK for C++ Version 1.11.891

Loading...
Searching...
No Matches
CreateKnowledgeBaseRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/quicksight/QuickSightRequest.h>
10#include <aws/quicksight/QuickSight_EXPORTS.h>
11#include <aws/quicksight/model/AccessControlConfiguration.h>
12#include <aws/quicksight/model/KnowledgeBaseConfiguration.h>
13#include <aws/quicksight/model/MediaExtractionConfiguration.h>
14#include <aws/quicksight/model/ResourcePermission.h>
15#include <aws/quicksight/model/Tag.h>
16
17#include <utility>
18
19namespace Aws {
20namespace QuickSight {
21namespace Model {
22
26 public:
27 AWS_QUICKSIGHT_API CreateKnowledgeBaseRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateKnowledgeBase"; }
34
35 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
36
38
42 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
43 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
44 template <typename AwsAccountIdT = Aws::String>
45 void SetAwsAccountId(AwsAccountIdT&& value) {
46 m_awsAccountIdHasBeenSet = true;
47 m_awsAccountId = std::forward<AwsAccountIdT>(value);
48 }
49 template <typename AwsAccountIdT = Aws::String>
51 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
61 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
62 template <typename KnowledgeBaseIdT = Aws::String>
63 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) {
64 m_knowledgeBaseIdHasBeenSet = true;
65 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
66 }
67 template <typename KnowledgeBaseIdT = Aws::String>
69 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetName() const { return m_name; }
79 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
80 template <typename NameT = Aws::String>
81 void SetName(NameT&& value) {
82 m_nameHasBeenSet = true;
83 m_name = std::forward<NameT>(value);
84 }
85 template <typename NameT = Aws::String>
87 SetName(std::forward<NameT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetDataSourceArn() const { return m_dataSourceArn; }
97 inline bool DataSourceArnHasBeenSet() const { return m_dataSourceArnHasBeenSet; }
98 template <typename DataSourceArnT = Aws::String>
99 void SetDataSourceArn(DataSourceArnT&& value) {
100 m_dataSourceArnHasBeenSet = true;
101 m_dataSourceArn = std::forward<DataSourceArnT>(value);
102 }
103 template <typename DataSourceArnT = Aws::String>
105 SetDataSourceArn(std::forward<DataSourceArnT>(value));
106 return *this;
107 }
109
111
112 inline const KnowledgeBaseConfiguration& GetKnowledgeBaseConfiguration() const { return m_knowledgeBaseConfiguration; }
113 inline bool KnowledgeBaseConfigurationHasBeenSet() const { return m_knowledgeBaseConfigurationHasBeenSet; }
114 template <typename KnowledgeBaseConfigurationT = KnowledgeBaseConfiguration>
115 void SetKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT&& value) {
116 m_knowledgeBaseConfigurationHasBeenSet = true;
117 m_knowledgeBaseConfiguration = std::forward<KnowledgeBaseConfigurationT>(value);
118 }
119 template <typename KnowledgeBaseConfigurationT = KnowledgeBaseConfiguration>
120 CreateKnowledgeBaseRequest& WithKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT&& value) {
121 SetKnowledgeBaseConfiguration(std::forward<KnowledgeBaseConfigurationT>(value));
122 return *this;
123 }
125
127
131 inline const Aws::String& GetDescription() const { return m_description; }
132 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
133 template <typename DescriptionT = Aws::String>
134 void SetDescription(DescriptionT&& value) {
135 m_descriptionHasBeenSet = true;
136 m_description = std::forward<DescriptionT>(value);
137 }
138 template <typename DescriptionT = Aws::String>
140 SetDescription(std::forward<DescriptionT>(value));
141 return *this;
142 }
144
146
152 inline const Aws::Vector<ResourcePermission>& GetPermissions() const { return m_permissions; }
153 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
154 template <typename PermissionsT = Aws::Vector<ResourcePermission>>
155 void SetPermissions(PermissionsT&& value) {
156 m_permissionsHasBeenSet = true;
157 m_permissions = std::forward<PermissionsT>(value);
158 }
159 template <typename PermissionsT = Aws::Vector<ResourcePermission>>
161 SetPermissions(std::forward<PermissionsT>(value));
162 return *this;
163 }
164 template <typename PermissionsT = ResourcePermission>
166 m_permissionsHasBeenSet = true;
167 m_permissions.emplace_back(std::forward<PermissionsT>(value));
168 return *this;
169 }
171
173
174 inline const MediaExtractionConfiguration& GetMediaExtractionConfiguration() const { return m_mediaExtractionConfiguration; }
175 inline bool MediaExtractionConfigurationHasBeenSet() const { return m_mediaExtractionConfigurationHasBeenSet; }
176 template <typename MediaExtractionConfigurationT = MediaExtractionConfiguration>
177 void SetMediaExtractionConfiguration(MediaExtractionConfigurationT&& value) {
178 m_mediaExtractionConfigurationHasBeenSet = true;
179 m_mediaExtractionConfiguration = std::forward<MediaExtractionConfigurationT>(value);
180 }
181 template <typename MediaExtractionConfigurationT = MediaExtractionConfiguration>
182 CreateKnowledgeBaseRequest& WithMediaExtractionConfiguration(MediaExtractionConfigurationT&& value) {
183 SetMediaExtractionConfiguration(std::forward<MediaExtractionConfigurationT>(value));
184 return *this;
185 }
187
189
193 inline const AccessControlConfiguration& GetAccessControlConfiguration() const { return m_accessControlConfiguration; }
194 inline bool AccessControlConfigurationHasBeenSet() const { return m_accessControlConfigurationHasBeenSet; }
195 template <typename AccessControlConfigurationT = AccessControlConfiguration>
196 void SetAccessControlConfiguration(AccessControlConfigurationT&& value) {
197 m_accessControlConfigurationHasBeenSet = true;
198 m_accessControlConfiguration = std::forward<AccessControlConfigurationT>(value);
199 }
200 template <typename AccessControlConfigurationT = AccessControlConfiguration>
201 CreateKnowledgeBaseRequest& WithAccessControlConfiguration(AccessControlConfigurationT&& value) {
202 SetAccessControlConfiguration(std::forward<AccessControlConfigurationT>(value));
203 return *this;
204 }
206
208
223 inline const Aws::String& GetPrimaryOwnerArn() const { return m_primaryOwnerArn; }
224 inline bool PrimaryOwnerArnHasBeenSet() const { return m_primaryOwnerArnHasBeenSet; }
225 template <typename PrimaryOwnerArnT = Aws::String>
226 void SetPrimaryOwnerArn(PrimaryOwnerArnT&& value) {
227 m_primaryOwnerArnHasBeenSet = true;
228 m_primaryOwnerArn = std::forward<PrimaryOwnerArnT>(value);
229 }
230 template <typename PrimaryOwnerArnT = Aws::String>
232 SetPrimaryOwnerArn(std::forward<PrimaryOwnerArnT>(value));
233 return *this;
234 }
236
238
242 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
243 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
244 template <typename TagsT = Aws::Vector<Tag>>
245 void SetTags(TagsT&& value) {
246 m_tagsHasBeenSet = true;
247 m_tags = std::forward<TagsT>(value);
248 }
249 template <typename TagsT = Aws::Vector<Tag>>
251 SetTags(std::forward<TagsT>(value));
252 return *this;
253 }
254 template <typename TagsT = Tag>
256 m_tagsHasBeenSet = true;
257 m_tags.emplace_back(std::forward<TagsT>(value));
258 return *this;
259 }
261 private:
262 Aws::String m_awsAccountId;
263
264 Aws::String m_knowledgeBaseId;
265
266 Aws::String m_name;
267
268 Aws::String m_dataSourceArn;
269
270 KnowledgeBaseConfiguration m_knowledgeBaseConfiguration;
271
272 Aws::String m_description;
273
275
276 MediaExtractionConfiguration m_mediaExtractionConfiguration;
277
278 AccessControlConfiguration m_accessControlConfiguration;
279
280 Aws::String m_primaryOwnerArn;
281
282 Aws::Vector<Tag> m_tags;
283 bool m_awsAccountIdHasBeenSet = false;
284 bool m_knowledgeBaseIdHasBeenSet = false;
285 bool m_nameHasBeenSet = false;
286 bool m_dataSourceArnHasBeenSet = false;
287 bool m_knowledgeBaseConfigurationHasBeenSet = false;
288 bool m_descriptionHasBeenSet = false;
289 bool m_permissionsHasBeenSet = false;
290 bool m_mediaExtractionConfigurationHasBeenSet = false;
291 bool m_accessControlConfigurationHasBeenSet = false;
292 bool m_primaryOwnerArnHasBeenSet = false;
293 bool m_tagsHasBeenSet = false;
294};
295
296} // namespace Model
297} // namespace QuickSight
298} // namespace Aws
AWS_QUICKSIGHT_API CreateKnowledgeBaseRequest()=default
CreateKnowledgeBaseRequest & WithMediaExtractionConfiguration(MediaExtractionConfigurationT &&value)
const AccessControlConfiguration & GetAccessControlConfiguration() const
virtual const char * GetServiceRequestName() const override
CreateKnowledgeBaseRequest & WithAccessControlConfiguration(AccessControlConfigurationT &&value)
CreateKnowledgeBaseRequest & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
const KnowledgeBaseConfiguration & GetKnowledgeBaseConfiguration() const
const MediaExtractionConfiguration & GetMediaExtractionConfiguration() const
const Aws::Vector< ResourcePermission > & GetPermissions() const
CreateKnowledgeBaseRequest & WithPrimaryOwnerArn(PrimaryOwnerArnT &&value)
CreateKnowledgeBaseRequest & WithAwsAccountId(AwsAccountIdT &&value)
CreateKnowledgeBaseRequest & WithTags(TagsT &&value)
CreateKnowledgeBaseRequest & WithKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT &&value)
CreateKnowledgeBaseRequest & WithPermissions(PermissionsT &&value)
CreateKnowledgeBaseRequest & WithName(NameT &&value)
CreateKnowledgeBaseRequest & AddTags(TagsT &&value)
CreateKnowledgeBaseRequest & WithDataSourceArn(DataSourceArnT &&value)
CreateKnowledgeBaseRequest & WithDescription(DescriptionT &&value)
void SetAccessControlConfiguration(AccessControlConfigurationT &&value)
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
void SetMediaExtractionConfiguration(MediaExtractionConfigurationT &&value)
void SetKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT &&value)
CreateKnowledgeBaseRequest & AddPermissions(PermissionsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector