AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
StartImportJobRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/qconnect/QConnectRequest.h>
11#include <aws/qconnect/QConnect_EXPORTS.h>
12#include <aws/qconnect/model/ExternalSourceConfiguration.h>
13#include <aws/qconnect/model/ImportJobType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace QConnect {
19namespace Model {
20
24 public:
25 AWS_QCONNECT_API StartImportJobRequest() = 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 "StartImportJob"; }
32
33 AWS_QCONNECT_API Aws::String SerializePayload() const override;
34
36
42 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
43 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
44 template <typename KnowledgeBaseIdT = Aws::String>
46 m_knowledgeBaseIdHasBeenSet = true;
47 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
48 }
49 template <typename KnowledgeBaseIdT = Aws::String>
51 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
52 return *this;
53 }
55
57
61 inline ImportJobType GetImportJobType() const { return m_importJobType; }
62 inline bool ImportJobTypeHasBeenSet() const { return m_importJobTypeHasBeenSet; }
63 inline void SetImportJobType(ImportJobType value) {
64 m_importJobTypeHasBeenSet = true;
65 m_importJobType = value;
66 }
68 SetImportJobType(value);
69 return *this;
70 }
72
74
78 inline const Aws::String& GetUploadId() const { return m_uploadId; }
79 inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
80 template <typename UploadIdT = Aws::String>
81 void SetUploadId(UploadIdT&& value) {
82 m_uploadIdHasBeenSet = true;
83 m_uploadId = std::forward<UploadIdT>(value);
84 }
85 template <typename UploadIdT = Aws::String>
87 SetUploadId(std::forward<UploadIdT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetClientToken() const { return m_clientToken; }
97 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
98 template <typename ClientTokenT = Aws::String>
100 m_clientTokenHasBeenSet = true;
101 m_clientToken = std::forward<ClientTokenT>(value);
102 }
103 template <typename ClientTokenT = Aws::String>
105 SetClientToken(std::forward<ClientTokenT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
115 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
116 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
117 void SetMetadata(MetadataT&& value) {
118 m_metadataHasBeenSet = true;
119 m_metadata = std::forward<MetadataT>(value);
120 }
121 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
123 SetMetadata(std::forward<MetadataT>(value));
124 return *this;
125 }
126 template <typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
128 m_metadataHasBeenSet = true;
129 m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
130 return *this;
131 }
133
135
139 inline const ExternalSourceConfiguration& GetExternalSourceConfiguration() const { return m_externalSourceConfiguration; }
140 inline bool ExternalSourceConfigurationHasBeenSet() const { return m_externalSourceConfigurationHasBeenSet; }
141 template <typename ExternalSourceConfigurationT = ExternalSourceConfiguration>
143 m_externalSourceConfigurationHasBeenSet = true;
144 m_externalSourceConfiguration = std::forward<ExternalSourceConfigurationT>(value);
145 }
146 template <typename ExternalSourceConfigurationT = ExternalSourceConfiguration>
148 SetExternalSourceConfiguration(std::forward<ExternalSourceConfigurationT>(value));
149 return *this;
150 }
152 private:
153 Aws::String m_knowledgeBaseId;
154
155 ImportJobType m_importJobType{ImportJobType::NOT_SET};
156
157 Aws::String m_uploadId;
158
160
162
163 ExternalSourceConfiguration m_externalSourceConfiguration;
164 bool m_knowledgeBaseIdHasBeenSet = false;
165 bool m_importJobTypeHasBeenSet = false;
166 bool m_uploadIdHasBeenSet = false;
167 bool m_clientTokenHasBeenSet = true;
168 bool m_metadataHasBeenSet = false;
169 bool m_externalSourceConfigurationHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace QConnect
174} // namespace Aws
StartImportJobRequest & WithImportJobType(ImportJobType value)
const ExternalSourceConfiguration & GetExternalSourceConfiguration() const
AWS_QCONNECT_API Aws::String SerializePayload() const override
void SetExternalSourceConfiguration(ExternalSourceConfigurationT &&value)
StartImportJobRequest & WithExternalSourceConfiguration(ExternalSourceConfigurationT &&value)
StartImportJobRequest & WithClientToken(ClientTokenT &&value)
virtual const char * GetServiceRequestName() const override
void SetKnowledgeBaseId(KnowledgeBaseIdT &&value)
AWS_QCONNECT_API StartImportJobRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
StartImportJobRequest & WithUploadId(UploadIdT &&value)
StartImportJobRequest & WithMetadata(MetadataT &&value)
StartImportJobRequest & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
StartImportJobRequest & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
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