Class DataSourceSyncJob
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DataSourceSyncJob.Builder,DataSourceSyncJob>
Provides information about a data source synchronization job.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic DataSourceSyncJob.Builderbuilder()final StringIf 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.final InstantendTime()The Unix timestamp when the synchronization job completed.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final ErrorCodeIf theStatusfield is set toFAILED, theErrorCodefield indicates the reason the synchronization failed.final StringIf theStatusfield is set toFAILED, theErrorCodefield indicates the reason the synchronization failed.final StringIf theStatusfield is set toERROR, theErrorMessagefield contains a description of the error that caused the synchronization to fail.final StringA identifier for the synchronization job.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final DataSourceSyncJobMetricsmetrics()Maps a batch delete document request to a specific data source sync job.static Class<? extends DataSourceSyncJob.Builder> final InstantThe Unix timestamp when the synchronization job started.final DataSourceSyncJobStatusstatus()The execution status of the synchronization job.final StringThe execution status of the synchronization job.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
executionId
A identifier for the synchronization job.
- Returns:
- A identifier for the synchronization job.
-
startTime
The Unix timestamp when the synchronization job started.
- Returns:
- The Unix timestamp when the synchronization job started.
-
endTime
The Unix timestamp when the synchronization job completed.
- Returns:
- The Unix timestamp when the synchronization job completed.
-
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.If the service returns an enum value that is not available in the current SDK version,
statuswill returnDataSourceSyncJobStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- 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. - See Also:
-
statusAsString
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.If the service returns an enum value that is not available in the current SDK version,
statuswill returnDataSourceSyncJobStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- 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. - See Also:
-
errorMessage
If the
Statusfield is set toERROR, theErrorMessagefield contains a description of the error that caused the synchronization to fail.- Returns:
- If the
Statusfield is set toERROR, theErrorMessagefield contains a description of the error that caused the synchronization to fail.
-
errorCode
If the
Statusfield is set toFAILED, theErrorCodefield indicates the reason the synchronization failed.If the service returns an enum value that is not available in the current SDK version,
errorCodewill returnErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromerrorCodeAsString().- Returns:
- If the
Statusfield is set toFAILED, theErrorCodefield indicates the reason the synchronization failed. - See Also:
-
errorCodeAsString
If the
Statusfield is set toFAILED, theErrorCodefield indicates the reason the synchronization failed.If the service returns an enum value that is not available in the current SDK version,
errorCodewill returnErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromerrorCodeAsString().- Returns:
- If the
Statusfield is set toFAILED, theErrorCodefield indicates the reason the synchronization failed. - See Also:
-
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:
- 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.
-
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:
- 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.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<DataSourceSyncJob.Builder,DataSourceSyncJob> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-