AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
StartLoaderJobRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/neptunedata/NeptunedataRequest.h>
11#include <aws/neptunedata/Neptunedata_EXPORTS.h>
12#include <aws/neptunedata/model/Format.h>
13#include <aws/neptunedata/model/Mode.h>
14#include <aws/neptunedata/model/Parallelism.h>
15#include <aws/neptunedata/model/S3BucketRegion.h>
16
17#include <utility>
18
19namespace Aws {
20namespace neptunedata {
21namespace Model {
22
26 public:
27 AWS_NEPTUNEDATA_API StartLoaderJobRequest() = 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 "StartLoaderJob"; }
34
35 AWS_NEPTUNEDATA_API Aws::String SerializePayload() const override;
36
38
57 inline const Aws::String& GetSource() const { return m_source; }
58 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
59 template <typename SourceT = Aws::String>
60 void SetSource(SourceT&& value) {
61 m_sourceHasBeenSet = true;
62 m_source = std::forward<SourceT>(value);
63 }
64 template <typename SourceT = Aws::String>
66 SetSource(std::forward<SourceT>(value));
67 return *this;
68 }
70
72
91 inline Format GetFormat() const { return m_format; }
92 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
93 inline void SetFormat(Format value) {
94 m_formatHasBeenSet = true;
95 m_format = value;
96 }
98 SetFormat(value);
99 return *this;
100 }
102
104
108 inline S3BucketRegion GetS3BucketRegion() const { return m_s3BucketRegion; }
109 inline bool S3BucketRegionHasBeenSet() const { return m_s3BucketRegionHasBeenSet; }
111 m_s3BucketRegionHasBeenSet = true;
112 m_s3BucketRegion = value;
113 }
115 SetS3BucketRegion(value);
116 return *this;
117 }
119
121
128 inline const Aws::String& GetIamRoleArn() const { return m_iamRoleArn; }
129 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
130 template <typename IamRoleArnT = Aws::String>
131 void SetIamRoleArn(IamRoleArnT&& value) {
132 m_iamRoleArnHasBeenSet = true;
133 m_iamRoleArn = std::forward<IamRoleArnT>(value);
134 }
135 template <typename IamRoleArnT = Aws::String>
136 StartLoaderJobRequest& WithIamRoleArn(IamRoleArnT&& value) {
137 SetIamRoleArn(std::forward<IamRoleArnT>(value));
138 return *this;
139 }
141
143
164 inline Mode GetMode() const { return m_mode; }
165 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
166 inline void SetMode(Mode value) {
167 m_modeHasBeenSet = true;
168 m_mode = value;
169 }
171 SetMode(value);
172 return *this;
173 }
175
177
186 inline bool GetFailOnError() const { return m_failOnError; }
187 inline bool FailOnErrorHasBeenSet() const { return m_failOnErrorHasBeenSet; }
188 inline void SetFailOnError(bool value) {
189 m_failOnErrorHasBeenSet = true;
190 m_failOnError = value;
191 }
193 SetFailOnError(value);
194 return *this;
195 }
197
199
219 inline Parallelism GetParallelism() const { return m_parallelism; }
220 inline bool ParallelismHasBeenSet() const { return m_parallelismHasBeenSet; }
221 inline void SetParallelism(Parallelism value) {
222 m_parallelismHasBeenSet = true;
223 m_parallelism = value;
224 }
226 SetParallelism(value);
227 return *this;
228 }
230
232
251 inline const Aws::Map<Aws::String, Aws::String>& GetParserConfiguration() const { return m_parserConfiguration; }
252 inline bool ParserConfigurationHasBeenSet() const { return m_parserConfigurationHasBeenSet; }
253 template <typename ParserConfigurationT = Aws::Map<Aws::String, Aws::String>>
254 void SetParserConfiguration(ParserConfigurationT&& value) {
255 m_parserConfigurationHasBeenSet = true;
256 m_parserConfiguration = std::forward<ParserConfigurationT>(value);
257 }
258 template <typename ParserConfigurationT = Aws::Map<Aws::String, Aws::String>>
259 StartLoaderJobRequest& WithParserConfiguration(ParserConfigurationT&& value) {
260 SetParserConfiguration(std::forward<ParserConfigurationT>(value));
261 return *this;
262 }
263 template <typename ParserConfigurationKeyT = Aws::String, typename ParserConfigurationValueT = Aws::String>
264 StartLoaderJobRequest& AddParserConfiguration(ParserConfigurationKeyT&& key, ParserConfigurationValueT&& value) {
265 m_parserConfigurationHasBeenSet = true;
266 m_parserConfiguration.emplace(std::forward<ParserConfigurationKeyT>(key), std::forward<ParserConfigurationValueT>(value));
267 return *this;
268 }
270
272
288 inline bool GetUpdateSingleCardinalityProperties() const { return m_updateSingleCardinalityProperties; }
289 inline bool UpdateSingleCardinalityPropertiesHasBeenSet() const { return m_updateSingleCardinalityPropertiesHasBeenSet; }
290 inline void SetUpdateSingleCardinalityProperties(bool value) {
291 m_updateSingleCardinalityPropertiesHasBeenSet = true;
292 m_updateSingleCardinalityProperties = value;
293 }
296 return *this;
297 }
299
301
312 inline bool GetQueueRequest() const { return m_queueRequest; }
313 inline bool QueueRequestHasBeenSet() const { return m_queueRequestHasBeenSet; }
314 inline void SetQueueRequest(bool value) {
315 m_queueRequestHasBeenSet = true;
316 m_queueRequest = value;
317 }
319 SetQueueRequest(value);
320 return *this;
321 }
323
325
348 inline const Aws::Vector<Aws::String>& GetDependencies() const { return m_dependencies; }
349 inline bool DependenciesHasBeenSet() const { return m_dependenciesHasBeenSet; }
350 template <typename DependenciesT = Aws::Vector<Aws::String>>
351 void SetDependencies(DependenciesT&& value) {
352 m_dependenciesHasBeenSet = true;
353 m_dependencies = std::forward<DependenciesT>(value);
354 }
355 template <typename DependenciesT = Aws::Vector<Aws::String>>
356 StartLoaderJobRequest& WithDependencies(DependenciesT&& value) {
357 SetDependencies(std::forward<DependenciesT>(value));
358 return *this;
359 }
360 template <typename DependenciesT = Aws::String>
361 StartLoaderJobRequest& AddDependencies(DependenciesT&& value) {
362 m_dependenciesHasBeenSet = true;
363 m_dependencies.emplace_back(std::forward<DependenciesT>(value));
364 return *this;
365 }
367
369
385 inline bool GetUserProvidedEdgeIds() const { return m_userProvidedEdgeIds; }
386 inline bool UserProvidedEdgeIdsHasBeenSet() const { return m_userProvidedEdgeIdsHasBeenSet; }
387 inline void SetUserProvidedEdgeIds(bool value) {
388 m_userProvidedEdgeIdsHasBeenSet = true;
389 m_userProvidedEdgeIds = value;
390 }
393 return *this;
394 }
396
398
408 inline bool GetEdgeOnlyLoad() const { return m_edgeOnlyLoad; }
409 inline bool EdgeOnlyLoadHasBeenSet() const { return m_edgeOnlyLoadHasBeenSet; }
410 inline void SetEdgeOnlyLoad(bool value) {
411 m_edgeOnlyLoadHasBeenSet = true;
412 m_edgeOnlyLoad = value;
413 }
415 SetEdgeOnlyLoad(value);
416 return *this;
417 }
419 private:
420 Aws::String m_source;
421
422 Format m_format{Format::NOT_SET};
423
424 S3BucketRegion m_s3BucketRegion{S3BucketRegion::NOT_SET};
425
426 Aws::String m_iamRoleArn;
427
428 Mode m_mode{Mode::NOT_SET};
429
430 bool m_failOnError{false};
431
432 Parallelism m_parallelism{Parallelism::NOT_SET};
433
434 Aws::Map<Aws::String, Aws::String> m_parserConfiguration;
435
436 bool m_updateSingleCardinalityProperties{false};
437
438 bool m_queueRequest{false};
439
440 Aws::Vector<Aws::String> m_dependencies;
441
442 bool m_userProvidedEdgeIds{false};
443
444 bool m_edgeOnlyLoad{false};
445 bool m_sourceHasBeenSet = false;
446 bool m_formatHasBeenSet = false;
447 bool m_s3BucketRegionHasBeenSet = false;
448 bool m_iamRoleArnHasBeenSet = false;
449 bool m_modeHasBeenSet = false;
450 bool m_failOnErrorHasBeenSet = false;
451 bool m_parallelismHasBeenSet = false;
452 bool m_parserConfigurationHasBeenSet = false;
453 bool m_updateSingleCardinalityPropertiesHasBeenSet = false;
454 bool m_queueRequestHasBeenSet = false;
455 bool m_dependenciesHasBeenSet = false;
456 bool m_userProvidedEdgeIdsHasBeenSet = false;
457 bool m_edgeOnlyLoadHasBeenSet = false;
458};
459
460} // namespace Model
461} // namespace neptunedata
462} // namespace Aws
StartLoaderJobRequest & WithParserConfiguration(ParserConfigurationT &&value)
virtual const char * GetServiceRequestName() const override
StartLoaderJobRequest & WithFormat(Format value)
StartLoaderJobRequest & WithUpdateSingleCardinalityProperties(bool value)
StartLoaderJobRequest & WithQueueRequest(bool value)
StartLoaderJobRequest & WithEdgeOnlyLoad(bool value)
StartLoaderJobRequest & WithDependencies(DependenciesT &&value)
StartLoaderJobRequest & AddParserConfiguration(ParserConfigurationKeyT &&key, ParserConfigurationValueT &&value)
StartLoaderJobRequest & WithIamRoleArn(IamRoleArnT &&value)
StartLoaderJobRequest & WithParallelism(Parallelism value)
const Aws::Vector< Aws::String > & GetDependencies() const
StartLoaderJobRequest & WithSource(SourceT &&value)
StartLoaderJobRequest & WithUserProvidedEdgeIds(bool value)
StartLoaderJobRequest & AddDependencies(DependenciesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetParserConfiguration() const
AWS_NEPTUNEDATA_API Aws::String SerializePayload() const override
StartLoaderJobRequest & WithFailOnError(bool value)
AWS_NEPTUNEDATA_API StartLoaderJobRequest()=default
void SetParserConfiguration(ParserConfigurationT &&value)
StartLoaderJobRequest & WithS3BucketRegion(S3BucketRegion 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
std::vector< T, Aws::Allocator< T > > Vector