Interface DataSourceSyncJob.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<DataSourceSyncJob.Builder,DataSourceSyncJob>,SdkBuilder<DataSourceSyncJob.Builder,DataSourceSyncJob>,SdkPojo
- Enclosing class:
- DataSourceSyncJob
public static interface DataSourceSyncJob.Builder extends SdkPojo, CopyableBuilder<DataSourceSyncJob.Builder,DataSourceSyncJob>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description DataSourceSyncJob.BuilderdataSourceErrorCode(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.BuilderendTime(Instant endTime)The Unix timestamp when the synchronization job completed.DataSourceSyncJob.BuildererrorCode(String errorCode)If theStatusfield is set toFAILED, theErrorCodefield indicates the reason the synchronization failed.DataSourceSyncJob.BuildererrorCode(ErrorCode errorCode)If theStatusfield is set toFAILED, theErrorCodefield indicates the reason the synchronization failed.DataSourceSyncJob.BuildererrorMessage(String errorMessage)If theStatusfield is set toERROR, theErrorMessagefield contains a description of the error that caused the synchronization to fail.DataSourceSyncJob.BuilderexecutionId(String executionId)A identifier for the synchronization job.default DataSourceSyncJob.Buildermetrics(Consumer<DataSourceSyncJobMetrics.Builder> metrics)Maps a batch delete document request to a specific data source sync job.DataSourceSyncJob.Buildermetrics(DataSourceSyncJobMetrics metrics)Maps a batch delete document request to a specific data source sync job.DataSourceSyncJob.BuilderstartTime(Instant startTime)The Unix timestamp when the synchronization job started.DataSourceSyncJob.Builderstatus(String status)The execution status of the synchronization job.DataSourceSyncJob.Builderstatus(DataSourceSyncJobStatus status)The execution status of the synchronization job.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
executionId
DataSourceSyncJob.Builder executionId(String executionId)
A identifier for the synchronization job.
- Parameters:
executionId- A identifier for the synchronization job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startTime
DataSourceSyncJob.Builder startTime(Instant startTime)
The Unix timestamp when the synchronization job started.
- Parameters:
startTime- The Unix timestamp when the synchronization job started.- 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.
-
status
DataSourceSyncJob.Builder status(String status)
The execution status of the synchronization job. When the
Statusfield is set toSUCCEEDED, the synchronization job is done. If the status code is set toFAILED, theErrorCodeandErrorMessagefields give you the reason for the failure.- Parameters:
status- The execution status of the synchronization job. When theStatusfield is set toSUCCEEDED, the synchronization job is done. If the status code is set toFAILED, theErrorCodeandErrorMessagefields 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 execution status of the synchronization job. When the
Statusfield is set toSUCCEEDED, the synchronization job is done. If the status code is set toFAILED, theErrorCodeandErrorMessagefields give you the reason for the failure.- Parameters:
status- The execution status of the synchronization job. When theStatusfield is set toSUCCEEDED, the synchronization job is done. If the status code is set toFAILED, theErrorCodeandErrorMessagefields 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
-
errorMessage
DataSourceSyncJob.Builder errorMessage(String errorMessage)
If the
Statusfield is set toERROR, theErrorMessagefield contains a description of the error that caused the synchronization to fail.- Parameters:
errorMessage- If theStatusfield is set toERROR, theErrorMessagefield contains a description of the error that caused the synchronization to fail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorCode
DataSourceSyncJob.Builder errorCode(String errorCode)
If the
Statusfield is set toFAILED, theErrorCodefield indicates the reason the synchronization failed.
-
errorCode
DataSourceSyncJob.Builder errorCode(ErrorCode errorCode)
If the
Statusfield is set toFAILED, theErrorCodefield indicates the reason the synchronization failed.
-
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.
-
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.
-
metrics
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 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 onDataSourceSyncJobMetrics.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
metrics(DataSourceSyncJobMetrics)
-
-