AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
StartImportTaskRequest.h
1
6#pragma once
7#include <aws/neptune-graph/NeptuneGraph_EXPORTS.h>
8#include <aws/neptune-graph/NeptuneGraphRequest.h>
9#include <aws/neptune-graph/model/ImportOptions.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/neptune-graph/model/Format.h>
12#include <aws/neptune-graph/model/ParquetType.h>
13#include <aws/neptune-graph/model/BlankNodeHandling.h>
14#include <utility>
15
16namespace Aws
17{
18namespace NeptuneGraph
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_NEPTUNEGRAPH_API StartImportTaskRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "StartImportTask"; }
35
36 AWS_NEPTUNEGRAPH_API Aws::String SerializePayload() const override;
37
41 AWS_NEPTUNEGRAPH_API EndpointParameters GetEndpointContextParams() const override;
42
44
45 inline const ImportOptions& GetImportOptions() const { return m_importOptions; }
46 inline bool ImportOptionsHasBeenSet() const { return m_importOptionsHasBeenSet; }
47 template<typename ImportOptionsT = ImportOptions>
48 void SetImportOptions(ImportOptionsT&& value) { m_importOptionsHasBeenSet = true; m_importOptions = std::forward<ImportOptionsT>(value); }
49 template<typename ImportOptionsT = ImportOptions>
50 StartImportTaskRequest& WithImportOptions(ImportOptionsT&& value) { SetImportOptions(std::forward<ImportOptionsT>(value)); return *this;}
52
54
59 inline bool GetFailOnError() const { return m_failOnError; }
60 inline bool FailOnErrorHasBeenSet() const { return m_failOnErrorHasBeenSet; }
61 inline void SetFailOnError(bool value) { m_failOnErrorHasBeenSet = true; m_failOnError = value; }
62 inline StartImportTaskRequest& WithFailOnError(bool value) { SetFailOnError(value); return *this;}
64
66
70 inline const Aws::String& GetSource() const { return m_source; }
71 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
72 template<typename SourceT = Aws::String>
73 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
74 template<typename SourceT = Aws::String>
75 StartImportTaskRequest& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
77
79
84 inline Format GetFormat() const { return m_format; }
85 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
86 inline void SetFormat(Format value) { m_formatHasBeenSet = true; m_format = value; }
87 inline StartImportTaskRequest& WithFormat(Format value) { SetFormat(value); return *this;}
89
91
94 inline ParquetType GetParquetType() const { return m_parquetType; }
95 inline bool ParquetTypeHasBeenSet() const { return m_parquetTypeHasBeenSet; }
96 inline void SetParquetType(ParquetType value) { m_parquetTypeHasBeenSet = true; m_parquetType = value; }
97 inline StartImportTaskRequest& WithParquetType(ParquetType value) { SetParquetType(value); return *this;}
99
101
109 inline BlankNodeHandling GetBlankNodeHandling() const { return m_blankNodeHandling; }
110 inline bool BlankNodeHandlingHasBeenSet() const { return m_blankNodeHandlingHasBeenSet; }
111 inline void SetBlankNodeHandling(BlankNodeHandling value) { m_blankNodeHandlingHasBeenSet = true; m_blankNodeHandling = value; }
114
116
119 inline const Aws::String& GetGraphIdentifier() const { return m_graphIdentifier; }
120 inline bool GraphIdentifierHasBeenSet() const { return m_graphIdentifierHasBeenSet; }
121 template<typename GraphIdentifierT = Aws::String>
122 void SetGraphIdentifier(GraphIdentifierT&& value) { m_graphIdentifierHasBeenSet = true; m_graphIdentifier = std::forward<GraphIdentifierT>(value); }
123 template<typename GraphIdentifierT = Aws::String>
124 StartImportTaskRequest& WithGraphIdentifier(GraphIdentifierT&& value) { SetGraphIdentifier(std::forward<GraphIdentifierT>(value)); return *this;}
126
128
132 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
133 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
134 template<typename RoleArnT = Aws::String>
135 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
136 template<typename RoleArnT = Aws::String>
137 StartImportTaskRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
139 private:
140
141 ImportOptions m_importOptions;
142 bool m_importOptionsHasBeenSet = false;
143
144 bool m_failOnError{false};
145 bool m_failOnErrorHasBeenSet = false;
146
147 Aws::String m_source;
148 bool m_sourceHasBeenSet = false;
149
150 Format m_format{Format::NOT_SET};
151 bool m_formatHasBeenSet = false;
152
153 ParquetType m_parquetType{ParquetType::NOT_SET};
154 bool m_parquetTypeHasBeenSet = false;
155
157 bool m_blankNodeHandlingHasBeenSet = false;
158
159 Aws::String m_graphIdentifier;
160 bool m_graphIdentifierHasBeenSet = false;
161
162 Aws::String m_roleArn;
163 bool m_roleArnHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace NeptuneGraph
168} // 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