public static interface DataSourceSyncJob.Builder extends SdkPojo, CopyableBuilder<DataSourceSyncJob.Builder,DataSourceSyncJob>
| Modifier and Type | Method and Description |
|---|---|
DataSourceSyncJob.Builder |
dataSourceErrorCode(String 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.
|
DataSourceSyncJob.Builder |
endTime(Instant endTime)
The UNIX datetime that the synchronization job was completed.
|
DataSourceSyncJob.Builder |
errorCode(ErrorCode errorCode)
If the
Status field is set to FAILED, the ErrorCode field contains a
the reason that the synchronization failed. |
DataSourceSyncJob.Builder |
errorCode(String errorCode)
If the
Status field is set to FAILED, the ErrorCode field contains a
the reason that the synchronization failed. |
DataSourceSyncJob.Builder |
errorMessage(String errorMessage)
If the
Status field is set to ERROR, the ErrorMessage field contains a
description of the error that caused the synchronization to fail. |
DataSourceSyncJob.Builder |
executionId(String executionId)
A unique identifier for the synchronization job.
|
default DataSourceSyncJob.Builder |
metrics(Consumer<DataSourceSyncJobMetrics.Builder> metrics)
Maps a batch delete document request to a specific data source sync job.
|
DataSourceSyncJob.Builder |
metrics(DataSourceSyncJobMetrics metrics)
Maps a batch delete document request to a specific data source sync job.
|
DataSourceSyncJob.Builder |
startTime(Instant startTime)
The UNIX datetime that the synchronization job was started.
|
DataSourceSyncJob.Builder |
status(DataSourceSyncJobStatus status)
The execution status of the synchronization job.
|
DataSourceSyncJob.Builder |
status(String status)
The execution status of the synchronization job.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildDataSourceSyncJob.Builder executionId(String executionId)
A unique identifier for the synchronization job.
executionId - A unique identifier for the synchronization job.DataSourceSyncJob.Builder startTime(Instant startTime)
The UNIX datetime that the synchronization job was started.
startTime - The UNIX datetime that the synchronization job was started.DataSourceSyncJob.Builder endTime(Instant endTime)
The UNIX datetime that the synchronization job was completed.
endTime - The UNIX datetime that the synchronization job was completed.DataSourceSyncJob.Builder status(String status)
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.
status - 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.DataSourceSyncJobStatus,
DataSourceSyncJobStatusDataSourceSyncJob.Builder status(DataSourceSyncJobStatus status)
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.
status - 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.DataSourceSyncJobStatus,
DataSourceSyncJobStatusDataSourceSyncJob.Builder errorMessage(String errorMessage)
If the Status field is set to ERROR, the ErrorMessage field contains a
description of the error that caused the synchronization to fail.
errorMessage - If the Status field is set to ERROR, the ErrorMessage field
contains a description of the error that caused the synchronization to fail.DataSourceSyncJob.Builder errorCode(String errorCode)
If the Status field is set to FAILED, the ErrorCode field contains a
the reason that the synchronization failed.
DataSourceSyncJob.Builder errorCode(ErrorCode errorCode)
If the Status field is set to FAILED, the ErrorCode field contains a
the reason that the synchronization failed.
DataSourceSyncJob.Builder dataSourceErrorCode(String 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.
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.DataSourceSyncJob.Builder metrics(DataSourceSyncJobMetrics 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 data source connector.
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 data source connector.default DataSourceSyncJob.Builder metrics(Consumer<DataSourceSyncJobMetrics.Builder> 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 data source connector.
This is a convenience that creates an instance of theDataSourceSyncJobMetrics.Builder avoiding the
need to create one manually via DataSourceSyncJobMetrics.builder().
When the Consumer completes, SdkBuilder.build() is called immediately
and its result is passed to metrics(DataSourceSyncJobMetrics).metrics - a consumer that will call methods on DataSourceSyncJobMetrics.Buildermetrics(DataSourceSyncJobMetrics)Copyright © 2021. All rights reserved.