AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ImportTaskDetails.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/neptune-graph/NeptuneGraph_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace NeptuneGraph {
21namespace Model {
22
29 public:
30 AWS_NEPTUNEGRAPH_API ImportTaskDetails() = default;
31 AWS_NEPTUNEGRAPH_API ImportTaskDetails(Aws::Utils::Json::JsonView jsonValue);
32 AWS_NEPTUNEGRAPH_API ImportTaskDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_NEPTUNEGRAPH_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetStatus() const { return m_status; }
40 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
41 template <typename StatusT = Aws::String>
42 void SetStatus(StatusT&& value) {
43 m_statusHasBeenSet = true;
44 m_status = std::forward<StatusT>(value);
45 }
46 template <typename StatusT = Aws::String>
47 ImportTaskDetails& WithStatus(StatusT&& value) {
48 SetStatus(std::forward<StatusT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
58 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
59 template <typename StartTimeT = Aws::Utils::DateTime>
60 void SetStartTime(StartTimeT&& value) {
61 m_startTimeHasBeenSet = true;
62 m_startTime = std::forward<StartTimeT>(value);
63 }
64 template <typename StartTimeT = Aws::Utils::DateTime>
65 ImportTaskDetails& WithStartTime(StartTimeT&& value) {
66 SetStartTime(std::forward<StartTimeT>(value));
67 return *this;
68 }
70
72
75 inline long long GetTimeElapsedSeconds() const { return m_timeElapsedSeconds; }
76 inline bool TimeElapsedSecondsHasBeenSet() const { return m_timeElapsedSecondsHasBeenSet; }
77 inline void SetTimeElapsedSeconds(long long value) {
78 m_timeElapsedSecondsHasBeenSet = true;
79 m_timeElapsedSeconds = value;
80 }
81 inline ImportTaskDetails& WithTimeElapsedSeconds(long long value) {
83 return *this;
84 }
86
88
91 inline int GetProgressPercentage() const { return m_progressPercentage; }
92 inline bool ProgressPercentageHasBeenSet() const { return m_progressPercentageHasBeenSet; }
93 inline void SetProgressPercentage(int value) {
94 m_progressPercentageHasBeenSet = true;
95 m_progressPercentage = value;
96 }
99 return *this;
100 }
102
104
107 inline int GetErrorCount() const { return m_errorCount; }
108 inline bool ErrorCountHasBeenSet() const { return m_errorCountHasBeenSet; }
109 inline void SetErrorCount(int value) {
110 m_errorCountHasBeenSet = true;
111 m_errorCount = value;
112 }
114 SetErrorCount(value);
115 return *this;
116 }
118
120
123 inline const Aws::String& GetErrorDetails() const { return m_errorDetails; }
124 inline bool ErrorDetailsHasBeenSet() const { return m_errorDetailsHasBeenSet; }
125 template <typename ErrorDetailsT = Aws::String>
126 void SetErrorDetails(ErrorDetailsT&& value) {
127 m_errorDetailsHasBeenSet = true;
128 m_errorDetails = std::forward<ErrorDetailsT>(value);
129 }
130 template <typename ErrorDetailsT = Aws::String>
131 ImportTaskDetails& WithErrorDetails(ErrorDetailsT&& value) {
132 SetErrorDetails(std::forward<ErrorDetailsT>(value));
133 return *this;
134 }
136
138
141 inline long long GetStatementCount() const { return m_statementCount; }
142 inline bool StatementCountHasBeenSet() const { return m_statementCountHasBeenSet; }
143 inline void SetStatementCount(long long value) {
144 m_statementCountHasBeenSet = true;
145 m_statementCount = value;
146 }
147 inline ImportTaskDetails& WithStatementCount(long long value) {
148 SetStatementCount(value);
149 return *this;
150 }
152
154
157 inline long long GetDictionaryEntryCount() const { return m_dictionaryEntryCount; }
158 inline bool DictionaryEntryCountHasBeenSet() const { return m_dictionaryEntryCountHasBeenSet; }
159 inline void SetDictionaryEntryCount(long long value) {
160 m_dictionaryEntryCountHasBeenSet = true;
161 m_dictionaryEntryCount = value;
162 }
165 return *this;
166 }
168 private:
169 Aws::String m_status;
170
171 Aws::Utils::DateTime m_startTime{};
172
173 long long m_timeElapsedSeconds{0};
174
175 int m_progressPercentage{0};
176
177 int m_errorCount{0};
178
179 Aws::String m_errorDetails;
180
181 long long m_statementCount{0};
182
183 long long m_dictionaryEntryCount{0};
184 bool m_statusHasBeenSet = false;
185 bool m_startTimeHasBeenSet = false;
186 bool m_timeElapsedSecondsHasBeenSet = false;
187 bool m_progressPercentageHasBeenSet = false;
188 bool m_errorCountHasBeenSet = false;
189 bool m_errorDetailsHasBeenSet = false;
190 bool m_statementCountHasBeenSet = false;
191 bool m_dictionaryEntryCountHasBeenSet = false;
192};
193
194} // namespace Model
195} // namespace NeptuneGraph
196} // namespace Aws
AWS_NEPTUNEGRAPH_API ImportTaskDetails()=default
ImportTaskDetails & WithStartTime(StartTimeT &&value)
ImportTaskDetails & WithTimeElapsedSeconds(long long value)
ImportTaskDetails & WithErrorCount(int value)
ImportTaskDetails & WithErrorDetails(ErrorDetailsT &&value)
ImportTaskDetails & WithProgressPercentage(int value)
AWS_NEPTUNEGRAPH_API ImportTaskDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
ImportTaskDetails & WithStatementCount(long long value)
AWS_NEPTUNEGRAPH_API ImportTaskDetails(Aws::Utils::Json::JsonView jsonValue)
ImportTaskDetails & WithDictionaryEntryCount(long long value)
ImportTaskDetails & WithStatus(StatusT &&value)
AWS_NEPTUNEGRAPH_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetStartTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue