AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DataSourceSyncJob.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/qbusiness/model/DataSourceSyncJobStatus.h>
11#include <aws/qbusiness/model/ErrorDetail.h>
12#include <aws/qbusiness/model/DataSourceSyncJobMetrics.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace QBusiness
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_QBUSINESS_API DataSourceSyncJob() = default;
42 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetExecutionId() const { return m_executionId; }
50 inline bool ExecutionIdHasBeenSet() const { return m_executionIdHasBeenSet; }
51 template<typename ExecutionIdT = Aws::String>
52 void SetExecutionId(ExecutionIdT&& value) { m_executionIdHasBeenSet = true; m_executionId = std::forward<ExecutionIdT>(value); }
53 template<typename ExecutionIdT = Aws::String>
54 DataSourceSyncJob& WithExecutionId(ExecutionIdT&& value) { SetExecutionId(std::forward<ExecutionIdT>(value)); return *this;}
56
58
61 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
62 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
63 template<typename StartTimeT = Aws::Utils::DateTime>
64 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
65 template<typename StartTimeT = Aws::Utils::DateTime>
66 DataSourceSyncJob& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
68
70
73 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
74 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
75 template<typename EndTimeT = Aws::Utils::DateTime>
76 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
77 template<typename EndTimeT = Aws::Utils::DateTime>
78 DataSourceSyncJob& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
80
82
88 inline DataSourceSyncJobStatus GetStatus() const { return m_status; }
89 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
90 inline void SetStatus(DataSourceSyncJobStatus value) { m_statusHasBeenSet = true; m_status = value; }
91 inline DataSourceSyncJob& WithStatus(DataSourceSyncJobStatus value) { SetStatus(value); return *this;}
93
95
100 inline const ErrorDetail& GetError() const { return m_error; }
101 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
102 template<typename ErrorT = ErrorDetail>
103 void SetError(ErrorT&& value) { m_errorHasBeenSet = true; m_error = std::forward<ErrorT>(value); }
104 template<typename ErrorT = ErrorDetail>
105 DataSourceSyncJob& WithError(ErrorT&& value) { SetError(std::forward<ErrorT>(value)); return *this;}
107
109
114 inline const Aws::String& GetDataSourceErrorCode() const { return m_dataSourceErrorCode; }
115 inline bool DataSourceErrorCodeHasBeenSet() const { return m_dataSourceErrorCodeHasBeenSet; }
116 template<typename DataSourceErrorCodeT = Aws::String>
117 void SetDataSourceErrorCode(DataSourceErrorCodeT&& value) { m_dataSourceErrorCodeHasBeenSet = true; m_dataSourceErrorCode = std::forward<DataSourceErrorCodeT>(value); }
118 template<typename DataSourceErrorCodeT = Aws::String>
119 DataSourceSyncJob& WithDataSourceErrorCode(DataSourceErrorCodeT&& value) { SetDataSourceErrorCode(std::forward<DataSourceErrorCodeT>(value)); return *this;}
121
123
128 inline const DataSourceSyncJobMetrics& GetMetrics() const { return m_metrics; }
129 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
130 template<typename MetricsT = DataSourceSyncJobMetrics>
131 void SetMetrics(MetricsT&& value) { m_metricsHasBeenSet = true; m_metrics = std::forward<MetricsT>(value); }
132 template<typename MetricsT = DataSourceSyncJobMetrics>
133 DataSourceSyncJob& WithMetrics(MetricsT&& value) { SetMetrics(std::forward<MetricsT>(value)); return *this;}
135 private:
136
137 Aws::String m_executionId;
138 bool m_executionIdHasBeenSet = false;
139
140 Aws::Utils::DateTime m_startTime{};
141 bool m_startTimeHasBeenSet = false;
142
143 Aws::Utils::DateTime m_endTime{};
144 bool m_endTimeHasBeenSet = false;
145
147 bool m_statusHasBeenSet = false;
148
149 ErrorDetail m_error;
150 bool m_errorHasBeenSet = false;
151
152 Aws::String m_dataSourceErrorCode;
153 bool m_dataSourceErrorCodeHasBeenSet = false;
154
155 DataSourceSyncJobMetrics m_metrics;
156 bool m_metricsHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace QBusiness
161} // namespace Aws
AWS_QBUSINESS_API DataSourceSyncJob(Aws::Utils::Json::JsonView jsonValue)
DataSourceSyncJob & WithError(ErrorT &&value)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetExecutionId() const
DataSourceSyncJob & WithMetrics(MetricsT &&value)
DataSourceSyncJob & WithStatus(DataSourceSyncJobStatus value)
DataSourceSyncJob & WithEndTime(EndTimeT &&value)
void SetDataSourceErrorCode(DataSourceErrorCodeT &&value)
void SetExecutionId(ExecutionIdT &&value)
DataSourceSyncJob & WithExecutionId(ExecutionIdT &&value)
AWS_QBUSINESS_API DataSourceSyncJob & operator=(Aws::Utils::Json::JsonView jsonValue)
DataSourceSyncJob & WithStartTime(StartTimeT &&value)
DataSourceSyncJob & WithDataSourceErrorCode(DataSourceErrorCodeT &&value)
const DataSourceSyncJobMetrics & GetMetrics() const
DataSourceSyncJobStatus GetStatus() const
const Aws::Utils::DateTime & GetEndTime() const
void SetStatus(DataSourceSyncJobStatus value)
AWS_QBUSINESS_API DataSourceSyncJob()=default
const Aws::String & GetDataSourceErrorCode() const
const Aws::Utils::DateTime & GetStartTime() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue