/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Provides information about a synchronization job.See Also:
* AWS
* API Reference
A unique identifier for the synchronization job.
*/ inline const Aws::String& GetExecutionId() const{ return m_executionId; } /** *A unique identifier for the synchronization job.
*/ inline bool ExecutionIdHasBeenSet() const { return m_executionIdHasBeenSet; } /** *A unique identifier for the synchronization job.
*/ inline void SetExecutionId(const Aws::String& value) { m_executionIdHasBeenSet = true; m_executionId = value; } /** *A unique identifier for the synchronization job.
*/ inline void SetExecutionId(Aws::String&& value) { m_executionIdHasBeenSet = true; m_executionId = std::move(value); } /** *A unique identifier for the synchronization job.
*/ inline void SetExecutionId(const char* value) { m_executionIdHasBeenSet = true; m_executionId.assign(value); } /** *A unique identifier for the synchronization job.
*/ inline DataSourceSyncJob& WithExecutionId(const Aws::String& value) { SetExecutionId(value); return *this;} /** *A unique identifier for the synchronization job.
*/ inline DataSourceSyncJob& WithExecutionId(Aws::String&& value) { SetExecutionId(std::move(value)); return *this;} /** *A unique identifier for the synchronization job.
*/ inline DataSourceSyncJob& WithExecutionId(const char* value) { SetExecutionId(value); return *this;} /** *The UNIX datetime that the synchronization job was started.
*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *The UNIX datetime that the synchronization job was started.
*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *The UNIX datetime that the synchronization job was started.
*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *The UNIX datetime that the synchronization job was started.
*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *The UNIX datetime that the synchronization job was started.
*/ inline DataSourceSyncJob& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *The UNIX datetime that the synchronization job was started.
*/ inline DataSourceSyncJob& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *The UNIX datetime that the synchronization job was completed.
*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *The UNIX datetime that the synchronization job was completed.
*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *The UNIX datetime that the synchronization job was completed.
*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *The UNIX datetime that the synchronization job was completed.
*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *The UNIX datetime that the synchronization job was completed.
*/ inline DataSourceSyncJob& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *The UNIX datetime that the synchronization job was completed.
*/ inline DataSourceSyncJob& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *The execution status of the synchronization job. When the Status
* field is set to SUCCEEDED, the synchronization job is done. If the
* status code is set to FAILED, the ErrorCode and
* ErrorMessage fields give you the reason for the failure.
The execution status of the synchronization job. When the Status
* field is set to SUCCEEDED, the synchronization job is done. If the
* status code is set to FAILED, the ErrorCode and
* ErrorMessage fields give you the reason for the failure.
The execution status of the synchronization job. When the Status
* field is set to SUCCEEDED, the synchronization job is done. If the
* status code is set to FAILED, the ErrorCode and
* ErrorMessage fields give you the reason for the failure.
The execution status of the synchronization job. When the Status
* field is set to SUCCEEDED, the synchronization job is done. If the
* status code is set to FAILED, the ErrorCode and
* ErrorMessage fields give you the reason for the failure.
The execution status of the synchronization job. When the Status
* field is set to SUCCEEDED, the synchronization job is done. If the
* status code is set to FAILED, the ErrorCode and
* ErrorMessage fields give you the reason for the failure.
The execution status of the synchronization job. When the Status
* field is set to SUCCEEDED, the synchronization job is done. If the
* status code is set to FAILED, the ErrorCode and
* ErrorMessage fields give you the reason for the failure.
If the Status field is set to ERROR, the
* ErrorMessage field contains a description of the error that caused
* the synchronization to fail.
If the Status field is set to ERROR, the
* ErrorMessage field contains a description of the error that caused
* the synchronization to fail.
If the Status field is set to ERROR, the
* ErrorMessage field contains a description of the error that caused
* the synchronization to fail.
If the Status field is set to ERROR, the
* ErrorMessage field contains a description of the error that caused
* the synchronization to fail.
If the Status field is set to ERROR, the
* ErrorMessage field contains a description of the error that caused
* the synchronization to fail.
If the Status field is set to ERROR, the
* ErrorMessage field contains a description of the error that caused
* the synchronization to fail.
If the Status field is set to ERROR, the
* ErrorMessage field contains a description of the error that caused
* the synchronization to fail.
If the Status field is set to ERROR, the
* ErrorMessage field contains a description of the error that caused
* the synchronization to fail.
If the Status field is set to FAILED, the
* ErrorCode field contains a the reason that the synchronization
* failed.
If the Status field is set to FAILED, the
* ErrorCode field contains a the reason that the synchronization
* failed.
If the Status field is set to FAILED, the
* ErrorCode field contains a the reason that the synchronization
* failed.
If the Status field is set to FAILED, the
* ErrorCode field contains a the reason that the synchronization
* failed.
If the Status field is set to FAILED, the
* ErrorCode field contains a the reason that the synchronization
* failed.
If the Status field is set to FAILED, the
* ErrorCode field contains a the reason that the synchronization
* failed.
If the reason that the synchronization failed is due to an error with the * underlying data source, this field contains a code that identifies the * error.
*/ inline const Aws::String& GetDataSourceErrorCode() const{ return m_dataSourceErrorCode; } /** *If the reason that the synchronization failed is due to an error with the * underlying data source, this field contains a code that identifies the * error.
*/ inline bool DataSourceErrorCodeHasBeenSet() const { return m_dataSourceErrorCodeHasBeenSet; } /** *If the reason that the synchronization failed is due to an error with the * underlying data source, this field contains a code that identifies the * error.
*/ inline void SetDataSourceErrorCode(const Aws::String& value) { m_dataSourceErrorCodeHasBeenSet = true; m_dataSourceErrorCode = value; } /** *If the reason that the synchronization failed is due to an error with the * underlying data source, this field contains a code that identifies the * error.
*/ inline void SetDataSourceErrorCode(Aws::String&& value) { m_dataSourceErrorCodeHasBeenSet = true; m_dataSourceErrorCode = std::move(value); } /** *If the reason that the synchronization failed is due to an error with the * underlying data source, this field contains a code that identifies the * error.
*/ inline void SetDataSourceErrorCode(const char* value) { m_dataSourceErrorCodeHasBeenSet = true; m_dataSourceErrorCode.assign(value); } /** *If the reason that the synchronization failed is due to an error with the * underlying data source, this field contains a code that identifies the * error.
*/ inline DataSourceSyncJob& WithDataSourceErrorCode(const Aws::String& value) { SetDataSourceErrorCode(value); return *this;} /** *If the reason that the synchronization failed is due to an error with the * underlying data source, this field contains a code that identifies the * error.
*/ inline DataSourceSyncJob& WithDataSourceErrorCode(Aws::String&& value) { SetDataSourceErrorCode(std::move(value)); return *this;} /** *If the reason that the synchronization failed is due to an error with the * underlying data source, this field contains a code that identifies the * error.
*/ inline DataSourceSyncJob& WithDataSourceErrorCode(const char* value) { SetDataSourceErrorCode(value); return *this;} /** *Maps a batch delete document request to a specific data source sync job. This * is optional and should only be supplied when documents are deleted by a * connector.
*/ inline const DataSourceSyncJobMetrics& GetMetrics() const{ return m_metrics; } /** *Maps a batch delete document request to a specific data source sync job. This * is optional and should only be supplied when documents are deleted by a * connector.
*/ inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; } /** *Maps a batch delete document request to a specific data source sync job. This * is optional and should only be supplied when documents are deleted by a * connector.
*/ inline void SetMetrics(const DataSourceSyncJobMetrics& value) { m_metricsHasBeenSet = true; m_metrics = value; } /** *Maps a batch delete document request to a specific data source sync job. This * is optional and should only be supplied when documents are deleted by a * connector.
*/ inline void SetMetrics(DataSourceSyncJobMetrics&& value) { m_metricsHasBeenSet = true; m_metrics = std::move(value); } /** *Maps a batch delete document request to a specific data source sync job. This * is optional and should only be supplied when documents are deleted by a * connector.
*/ inline DataSourceSyncJob& WithMetrics(const DataSourceSyncJobMetrics& value) { SetMetrics(value); return *this;} /** *Maps a batch delete document request to a specific data source sync job. This * is optional and should only be supplied when documents are deleted by a * connector.
*/ inline DataSourceSyncJob& WithMetrics(DataSourceSyncJobMetrics&& value) { SetMetrics(std::move(value)); return *this;} private: Aws::String m_executionId; bool m_executionIdHasBeenSet; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet; DataSourceSyncJobStatus m_status; bool m_statusHasBeenSet; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet; ErrorCode m_errorCode; bool m_errorCodeHasBeenSet; Aws::String m_dataSourceErrorCode; bool m_dataSourceErrorCodeHasBeenSet; DataSourceSyncJobMetrics m_metrics; bool m_metricsHasBeenSet; }; } // namespace Model } // namespace kendra } // namespace Aws