Interface DataSourceSyncJob.Builder

    • Method Detail

      • dataSourceErrorCode

        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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • endTime

        DataSourceSyncJob.Builder endTime​(Instant endTime)

        The Unix timestamp when the synchronization job completed.

        Parameters:
        endTime - The Unix timestamp when the synchronization job completed.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • error

        DataSourceSyncJob.Builder error​(ErrorDetail error)

        If the Status field is set to FAILED, the ErrorCode field indicates the reason the synchronization failed.

        Parameters:
        error - If the Status field is set to FAILED, the ErrorCode field indicates the reason the synchronization failed.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • executionId

        DataSourceSyncJob.Builder executionId​(String executionId)

        The identifier of a data source synchronization job.

        Parameters:
        executionId - The identifier of a data source synchronization job.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • metrics

        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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • startTime

        DataSourceSyncJob.Builder startTime​(Instant startTime)

        The Unix time stamp when the data source synchronization job started.

        Parameters:
        startTime - The Unix time stamp when the data source synchronization job started.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • status

        DataSourceSyncJob.Builder status​(String status)

        The status of the synchronization job. When the Status field is set to SUCCEEDED, the synchronization job is done. If the status code is FAILED, the ErrorCode and ErrorMessage fields give you the reason for the failure.

        Parameters:
        status - The status of the synchronization job. When the Status field is set to SUCCEEDED, the synchronization job is done. If the status code is FAILED, the ErrorCode and ErrorMessage fields give you the reason for the failure.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        DataSourceSyncJobStatus, DataSourceSyncJobStatus
      • status

        DataSourceSyncJob.Builder status​(DataSourceSyncJobStatus status)

        The status of the synchronization job. When the Status field is set to SUCCEEDED, the synchronization job is done. If the status code is FAILED, the ErrorCode and ErrorMessage fields give you the reason for the failure.

        Parameters:
        status - The status of the synchronization job. When the Status field is set to SUCCEEDED, the synchronization job is done. If the status code is FAILED, the ErrorCode and ErrorMessage fields give you the reason for the failure.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        DataSourceSyncJobStatus, DataSourceSyncJobStatus