AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
40 AWS_QBUSINESS_API DataSourceSyncJob(Aws::Utils::Json::JsonView jsonValue);
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 inline void SetExecutionId(const Aws::String& value) { m_executionIdHasBeenSet = true; m_executionId = value; }
52 inline void SetExecutionId(Aws::String&& value) { m_executionIdHasBeenSet = true; m_executionId = std::move(value); }
53 inline void SetExecutionId(const char* value) { m_executionIdHasBeenSet = true; m_executionId.assign(value); }
54 inline DataSourceSyncJob& WithExecutionId(const Aws::String& value) { SetExecutionId(value); return *this;}
55 inline DataSourceSyncJob& WithExecutionId(Aws::String&& value) { SetExecutionId(std::move(value)); return *this;}
56 inline DataSourceSyncJob& WithExecutionId(const char* value) { SetExecutionId(value); return *this;}
58
60
63 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
64 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
65 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
66 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
67 inline DataSourceSyncJob& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
68 inline DataSourceSyncJob& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
70
72
75 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
76 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
77 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
78 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
79 inline DataSourceSyncJob& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
80 inline DataSourceSyncJob& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
82
84
90 inline const DataSourceSyncJobStatus& GetStatus() const{ return m_status; }
91 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
92 inline void SetStatus(const DataSourceSyncJobStatus& value) { m_statusHasBeenSet = true; m_status = value; }
93 inline void SetStatus(DataSourceSyncJobStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
94 inline DataSourceSyncJob& WithStatus(const DataSourceSyncJobStatus& value) { SetStatus(value); return *this;}
95 inline DataSourceSyncJob& WithStatus(DataSourceSyncJobStatus&& value) { SetStatus(std::move(value)); return *this;}
97
99
104 inline const ErrorDetail& GetError() const{ return m_error; }
105 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
106 inline void SetError(const ErrorDetail& value) { m_errorHasBeenSet = true; m_error = value; }
107 inline void SetError(ErrorDetail&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
108 inline DataSourceSyncJob& WithError(const ErrorDetail& value) { SetError(value); return *this;}
109 inline DataSourceSyncJob& WithError(ErrorDetail&& value) { SetError(std::move(value)); return *this;}
111
113
118 inline const Aws::String& GetDataSourceErrorCode() const{ return m_dataSourceErrorCode; }
119 inline bool DataSourceErrorCodeHasBeenSet() const { return m_dataSourceErrorCodeHasBeenSet; }
120 inline void SetDataSourceErrorCode(const Aws::String& value) { m_dataSourceErrorCodeHasBeenSet = true; m_dataSourceErrorCode = value; }
121 inline void SetDataSourceErrorCode(Aws::String&& value) { m_dataSourceErrorCodeHasBeenSet = true; m_dataSourceErrorCode = std::move(value); }
122 inline void SetDataSourceErrorCode(const char* value) { m_dataSourceErrorCodeHasBeenSet = true; m_dataSourceErrorCode.assign(value); }
124 inline DataSourceSyncJob& WithDataSourceErrorCode(Aws::String&& value) { SetDataSourceErrorCode(std::move(value)); return *this;}
125 inline DataSourceSyncJob& WithDataSourceErrorCode(const char* value) { SetDataSourceErrorCode(value); return *this;}
127
129
134 inline const DataSourceSyncJobMetrics& GetMetrics() const{ return m_metrics; }
135 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
136 inline void SetMetrics(const DataSourceSyncJobMetrics& value) { m_metricsHasBeenSet = true; m_metrics = value; }
137 inline void SetMetrics(DataSourceSyncJobMetrics&& value) { m_metricsHasBeenSet = true; m_metrics = std::move(value); }
138 inline DataSourceSyncJob& WithMetrics(const DataSourceSyncJobMetrics& value) { SetMetrics(value); return *this;}
139 inline DataSourceSyncJob& WithMetrics(DataSourceSyncJobMetrics&& value) { SetMetrics(std::move(value)); return *this;}
141 private:
142
143 Aws::String m_executionId;
144 bool m_executionIdHasBeenSet = false;
145
146 Aws::Utils::DateTime m_startTime;
147 bool m_startTimeHasBeenSet = false;
148
149 Aws::Utils::DateTime m_endTime;
150 bool m_endTimeHasBeenSet = false;
151
153 bool m_statusHasBeenSet = false;
154
155 ErrorDetail m_error;
156 bool m_errorHasBeenSet = false;
157
158 Aws::String m_dataSourceErrorCode;
159 bool m_dataSourceErrorCodeHasBeenSet = false;
160
161 DataSourceSyncJobMetrics m_metrics;
162 bool m_metricsHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace QBusiness
167} // namespace Aws
DataSourceSyncJob & WithEndTime(const Aws::Utils::DateTime &value)
AWS_QBUSINESS_API DataSourceSyncJob(Aws::Utils::Json::JsonView jsonValue)
DataSourceSyncJob & WithMetrics(DataSourceSyncJobMetrics &&value)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(DataSourceSyncJobStatus &&value)
void SetError(const ErrorDetail &value)
DataSourceSyncJob & WithDataSourceErrorCode(const char *value)
const Aws::String & GetExecutionId() const
DataSourceSyncJob & WithStatus(DataSourceSyncJobStatus &&value)
void SetEndTime(const Aws::Utils::DateTime &value)
void SetStartTime(Aws::Utils::DateTime &&value)
DataSourceSyncJob & WithStartTime(const Aws::Utils::DateTime &value)
DataSourceSyncJob & WithExecutionId(const char *value)
void SetMetrics(DataSourceSyncJobMetrics &&value)
DataSourceSyncJob & WithEndTime(Aws::Utils::DateTime &&value)
DataSourceSyncJob & WithExecutionId(const Aws::String &value)
AWS_QBUSINESS_API DataSourceSyncJob & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStartTime(const Aws::Utils::DateTime &value)
DataSourceSyncJob & WithError(const ErrorDetail &value)
const DataSourceSyncJobMetrics & GetMetrics() const
DataSourceSyncJob & WithDataSourceErrorCode(Aws::String &&value)
DataSourceSyncJob & WithDataSourceErrorCode(const Aws::String &value)
void SetMetrics(const DataSourceSyncJobMetrics &value)
const Aws::Utils::DateTime & GetEndTime() const
void SetStatus(const DataSourceSyncJobStatus &value)
const DataSourceSyncJobStatus & GetStatus() const
void SetDataSourceErrorCode(Aws::String &&value)
void SetEndTime(Aws::Utils::DateTime &&value)
DataSourceSyncJob & WithMetrics(const DataSourceSyncJobMetrics &value)
DataSourceSyncJob & WithStartTime(Aws::Utils::DateTime &&value)
DataSourceSyncJob & WithError(ErrorDetail &&value)
void SetDataSourceErrorCode(const Aws::String &value)
DataSourceSyncJob & WithExecutionId(Aws::String &&value)
const Aws::String & GetDataSourceErrorCode() const
DataSourceSyncJob & WithStatus(const DataSourceSyncJobStatus &value)
void SetExecutionId(const Aws::String &value)
const Aws::Utils::DateTime & GetStartTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue