Interface DataSourceSyncJob.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<DataSourceSyncJob.Builder,,- DataSourceSyncJob> - SdkBuilder<DataSourceSyncJob.Builder,,- DataSourceSyncJob> - SdkPojo
- Enclosing class:
- DataSourceSyncJob
- 
Method SummaryModifier and TypeMethodDescriptiondataSourceErrorCode(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.The Unix timestamp when the synchronization job completed.default DataSourceSyncJob.Buildererror(Consumer<ErrorDetail.Builder> error) If theStatusfield is set toFAILED, theErrorCodefield indicates the reason the synchronization failed.error(ErrorDetail error) If theStatusfield is set toFAILED, theErrorCodefield indicates the reason the synchronization failed.executionId(String executionId) The identifier of a data source synchronization job.default DataSourceSyncJob.Buildermetrics(Consumer<DataSourceSyncJobMetrics.Builder> metrics) Maps a batch delete document request to a specific data source sync job.metrics(DataSourceSyncJobMetrics metrics) Maps a batch delete document request to a specific data source sync job.The Unix time stamp when the data source synchronization job started.The status of the synchronization job.status(DataSourceSyncJobStatus status) The status of the synchronization job.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
executionIdThe 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.
 
- 
startTimeThe 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.
 
- 
endTimeThe 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.
 
- 
statusThe status of the synchronization job. When the Statusfield is set toSUCCEEDED, the synchronization job is done. If the status code isFAILED, theErrorCodeandErrorMessagefields give you the reason for the failure.- Parameters:
- status- The status of the synchronization job. When the- Statusfield is set to- SUCCEEDED, the synchronization job is done. If the status code is- FAILED, the- ErrorCodeand- ErrorMessagefields give you the reason for the failure.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
statusThe status of the synchronization job. When the Statusfield is set toSUCCEEDED, the synchronization job is done. If the status code isFAILED, theErrorCodeandErrorMessagefields give you the reason for the failure.- Parameters:
- status- The status of the synchronization job. When the- Statusfield is set to- SUCCEEDED, the synchronization job is done. If the status code is- FAILED, the- ErrorCodeand- ErrorMessagefields give you the reason for the failure.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
errorIf the Statusfield is set toFAILED, theErrorCodefield indicates the reason the synchronization failed.- Parameters:
- error- If the- Statusfield is set to- FAILED, the- ErrorCodefield indicates the reason the synchronization failed.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
errorIf the This is a convenience method that creates an instance of theStatusfield is set toFAILED, theErrorCodefield indicates the reason the synchronization failed.ErrorDetail.Builderavoiding the need to create one manually viaErrorDetail.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toerror(ErrorDetail).- Parameters:
- error- a consumer that will call methods on- ErrorDetail.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
dataSourceErrorCodeIf 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.
 
- 
metricsMaps 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.
 
- 
metricsMaps 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 method that creates an instance of theDataSourceSyncJobMetrics.Builderavoiding the need to create one manually viaDataSourceSyncJobMetrics.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometrics(DataSourceSyncJobMetrics).- Parameters:
- metrics- a consumer that will call methods on- DataSourceSyncJobMetrics.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
 
-