AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ExecutionResult.h
1
6#pragma once
7#include <aws/appflow/Appflow_EXPORTS.h>
8#include <aws/appflow/model/ErrorInfo.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Appflow {
20namespace Model {
21
28 public:
29 AWS_APPFLOW_API ExecutionResult() = default;
30 AWS_APPFLOW_API ExecutionResult(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const ErrorInfo& GetErrorInfo() const { return m_errorInfo; }
39 inline bool ErrorInfoHasBeenSet() const { return m_errorInfoHasBeenSet; }
40 template <typename ErrorInfoT = ErrorInfo>
41 void SetErrorInfo(ErrorInfoT&& value) {
42 m_errorInfoHasBeenSet = true;
43 m_errorInfo = std::forward<ErrorInfoT>(value);
44 }
45 template <typename ErrorInfoT = ErrorInfo>
46 ExecutionResult& WithErrorInfo(ErrorInfoT&& value) {
47 SetErrorInfo(std::forward<ErrorInfoT>(value));
48 return *this;
49 }
51
53
56 inline long long GetBytesProcessed() const { return m_bytesProcessed; }
57 inline bool BytesProcessedHasBeenSet() const { return m_bytesProcessedHasBeenSet; }
58 inline void SetBytesProcessed(long long value) {
59 m_bytesProcessedHasBeenSet = true;
60 m_bytesProcessed = value;
61 }
62 inline ExecutionResult& WithBytesProcessed(long long value) {
63 SetBytesProcessed(value);
64 return *this;
65 }
67
69
72 inline long long GetBytesWritten() const { return m_bytesWritten; }
73 inline bool BytesWrittenHasBeenSet() const { return m_bytesWrittenHasBeenSet; }
74 inline void SetBytesWritten(long long value) {
75 m_bytesWrittenHasBeenSet = true;
76 m_bytesWritten = value;
77 }
78 inline ExecutionResult& WithBytesWritten(long long value) {
79 SetBytesWritten(value);
80 return *this;
81 }
83
85
88 inline long long GetRecordsProcessed() const { return m_recordsProcessed; }
89 inline bool RecordsProcessedHasBeenSet() const { return m_recordsProcessedHasBeenSet; }
90 inline void SetRecordsProcessed(long long value) {
91 m_recordsProcessedHasBeenSet = true;
92 m_recordsProcessed = value;
93 }
94 inline ExecutionResult& WithRecordsProcessed(long long value) {
96 return *this;
97 }
99
101
105 inline long long GetNumParallelProcesses() const { return m_numParallelProcesses; }
106 inline bool NumParallelProcessesHasBeenSet() const { return m_numParallelProcessesHasBeenSet; }
107 inline void SetNumParallelProcesses(long long value) {
108 m_numParallelProcessesHasBeenSet = true;
109 m_numParallelProcesses = value;
110 }
111 inline ExecutionResult& WithNumParallelProcesses(long long value) {
113 return *this;
114 }
116
118
122 inline long long GetMaxPageSize() const { return m_maxPageSize; }
123 inline bool MaxPageSizeHasBeenSet() const { return m_maxPageSizeHasBeenSet; }
124 inline void SetMaxPageSize(long long value) {
125 m_maxPageSizeHasBeenSet = true;
126 m_maxPageSize = value;
127 }
128 inline ExecutionResult& WithMaxPageSize(long long value) {
129 SetMaxPageSize(value);
130 return *this;
131 }
133 private:
134 ErrorInfo m_errorInfo;
135
136 long long m_bytesProcessed{0};
137
138 long long m_bytesWritten{0};
139
140 long long m_recordsProcessed{0};
141
142 long long m_numParallelProcesses{0};
143
144 long long m_maxPageSize{0};
145 bool m_errorInfoHasBeenSet = false;
146 bool m_bytesProcessedHasBeenSet = false;
147 bool m_bytesWrittenHasBeenSet = false;
148 bool m_recordsProcessedHasBeenSet = false;
149 bool m_numParallelProcessesHasBeenSet = false;
150 bool m_maxPageSizeHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace Appflow
155} // namespace Aws
ExecutionResult & WithBytesProcessed(long long value)
ExecutionResult & WithNumParallelProcesses(long long value)
AWS_APPFLOW_API ExecutionResult(Aws::Utils::Json::JsonView jsonValue)
ExecutionResult & WithErrorInfo(ErrorInfoT &&value)
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
ExecutionResult & WithBytesWritten(long long value)
const ErrorInfo & GetErrorInfo() const
void SetBytesProcessed(long long value)
ExecutionResult & WithRecordsProcessed(long long value)
void SetNumParallelProcesses(long long value)
void SetRecordsProcessed(long long value)
void SetErrorInfo(ErrorInfoT &&value)
AWS_APPFLOW_API ExecutionResult()=default
ExecutionResult & WithMaxPageSize(long long value)
AWS_APPFLOW_API ExecutionResult & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue