AWS SDK for C++

AWS SDK for C++ Version 1.11.684

Loading...
Searching...
No Matches
StartImportTaskRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/neptune-graph/NeptuneGraphRequest.h>
9#include <aws/neptune-graph/NeptuneGraph_EXPORTS.h>
10#include <aws/neptune-graph/model/BlankNodeHandling.h>
11#include <aws/neptune-graph/model/Format.h>
12#include <aws/neptune-graph/model/ImportOptions.h>
13#include <aws/neptune-graph/model/ParquetType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace NeptuneGraph {
19namespace Model {
20
24 public:
25 AWS_NEPTUNEGRAPH_API StartImportTaskRequest() = 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 "StartImportTask"; }
32
33 AWS_NEPTUNEGRAPH_API Aws::String SerializePayload() const override;
34
38 AWS_NEPTUNEGRAPH_API EndpointParameters GetEndpointContextParams() const override;
39
41
42 inline const ImportOptions& GetImportOptions() const { return m_importOptions; }
43 inline bool ImportOptionsHasBeenSet() const { return m_importOptionsHasBeenSet; }
44 template <typename ImportOptionsT = ImportOptions>
45 void SetImportOptions(ImportOptionsT&& value) {
46 m_importOptionsHasBeenSet = true;
47 m_importOptions = std::forward<ImportOptionsT>(value);
48 }
49 template <typename ImportOptionsT = ImportOptions>
50 StartImportTaskRequest& WithImportOptions(ImportOptionsT&& value) {
51 SetImportOptions(std::forward<ImportOptionsT>(value));
52 return *this;
53 }
55
57
62 inline bool GetFailOnError() const { return m_failOnError; }
63 inline bool FailOnErrorHasBeenSet() const { return m_failOnErrorHasBeenSet; }
64 inline void SetFailOnError(bool value) {
65 m_failOnErrorHasBeenSet = true;
66 m_failOnError = value;
67 }
69 SetFailOnError(value);
70 return *this;
71 }
73
75
79 inline const Aws::String& GetSource() const { return m_source; }
80 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
81 template <typename SourceT = Aws::String>
82 void SetSource(SourceT&& value) {
83 m_sourceHasBeenSet = true;
84 m_source = std::forward<SourceT>(value);
85 }
86 template <typename SourceT = Aws::String>
88 SetSource(std::forward<SourceT>(value));
89 return *this;
90 }
92
94
99 inline Format GetFormat() const { return m_format; }
100 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
101 inline void SetFormat(Format value) {
102 m_formatHasBeenSet = true;
103 m_format = value;
104 }
106 SetFormat(value);
107 return *this;
108 }
110
112
115 inline ParquetType GetParquetType() const { return m_parquetType; }
116 inline bool ParquetTypeHasBeenSet() const { return m_parquetTypeHasBeenSet; }
117 inline void SetParquetType(ParquetType value) {
118 m_parquetTypeHasBeenSet = true;
119 m_parquetType = value;
120 }
122 SetParquetType(value);
123 return *this;
124 }
126
128
136 inline BlankNodeHandling GetBlankNodeHandling() const { return m_blankNodeHandling; }
137 inline bool BlankNodeHandlingHasBeenSet() const { return m_blankNodeHandlingHasBeenSet; }
139 m_blankNodeHandlingHasBeenSet = true;
140 m_blankNodeHandling = value;
141 }
144 return *this;
145 }
147
149
152 inline const Aws::String& GetGraphIdentifier() const { return m_graphIdentifier; }
153 inline bool GraphIdentifierHasBeenSet() const { return m_graphIdentifierHasBeenSet; }
154 template <typename GraphIdentifierT = Aws::String>
155 void SetGraphIdentifier(GraphIdentifierT&& value) {
156 m_graphIdentifierHasBeenSet = true;
157 m_graphIdentifier = std::forward<GraphIdentifierT>(value);
158 }
159 template <typename GraphIdentifierT = Aws::String>
160 StartImportTaskRequest& WithGraphIdentifier(GraphIdentifierT&& value) {
161 SetGraphIdentifier(std::forward<GraphIdentifierT>(value));
162 return *this;
163 }
165
167
171 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
172 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
173 template <typename RoleArnT = Aws::String>
174 void SetRoleArn(RoleArnT&& value) {
175 m_roleArnHasBeenSet = true;
176 m_roleArn = std::forward<RoleArnT>(value);
177 }
178 template <typename RoleArnT = Aws::String>
180 SetRoleArn(std::forward<RoleArnT>(value));
181 return *this;
182 }
184 private:
185 ImportOptions m_importOptions;
186 bool m_importOptionsHasBeenSet = false;
187
188 bool m_failOnError{false};
189 bool m_failOnErrorHasBeenSet = false;
190
191 Aws::String m_source;
192 bool m_sourceHasBeenSet = false;
193
194 Format m_format{Format::NOT_SET};
195 bool m_formatHasBeenSet = false;
196
197 ParquetType m_parquetType{ParquetType::NOT_SET};
198 bool m_parquetTypeHasBeenSet = false;
199
201 bool m_blankNodeHandlingHasBeenSet = false;
202
203 Aws::String m_graphIdentifier;
204 bool m_graphIdentifierHasBeenSet = false;
205
206 Aws::String m_roleArn;
207 bool m_roleArnHasBeenSet = false;
208};
209
210} // namespace Model
211} // namespace NeptuneGraph
212} // namespace Aws
StartImportTaskRequest & WithFormat(Format value)
StartImportTaskRequest & WithParquetType(ParquetType value)
AWS_NEPTUNEGRAPH_API EndpointParameters GetEndpointContextParams() const override
StartImportTaskRequest & WithFailOnError(bool value)
StartImportTaskRequest & WithBlankNodeHandling(BlankNodeHandling value)
StartImportTaskRequest & WithRoleArn(RoleArnT &&value)
StartImportTaskRequest & WithSource(SourceT &&value)
StartImportTaskRequest & WithGraphIdentifier(GraphIdentifierT &&value)
AWS_NEPTUNEGRAPH_API StartImportTaskRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_NEPTUNEGRAPH_API Aws::String SerializePayload() const override
StartImportTaskRequest & WithImportOptions(ImportOptionsT &&value)
Aws::Endpoint::EndpointParameters EndpointParameters
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String