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.Builder
builder()
final String
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.final Instant
endTime()
The Unix timestamp when the synchronization job completed.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final ErrorCode
If theStatus
field is set toFAILED
, theErrorCode
field indicates the reason the synchronization failed.final String
If theStatus
field is set toFAILED
, theErrorCode
field indicates the reason the synchronization failed.final String
If theStatus
field is set toERROR
, theErrorMessage
field contains a description of the error that caused the synchronization to fail.final String
A identifier for the synchronization job.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final DataSourceSyncJobMetrics
metrics()
Maps a batch delete document request to a specific data source sync job.static Class
<? extends DataSourceSyncJob.Builder> final Instant
The Unix timestamp when the synchronization job started.final DataSourceSyncJobStatus
status()
The execution status of the synchronization job.final String
The 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 String
toString()
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
Status
field is set toSUCCEEDED
, the synchronization job is done. If the status code is set toFAILED
, theErrorCode
andErrorMessage
fields give you the reason for the failure.If the service returns an enum value that is not available in the current SDK version,
status
will 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
Status
field is set toSUCCEEDED
, the synchronization job is done. If the status code is set toFAILED
, theErrorCode
andErrorMessage
fields give you the reason for the failure. - See Also:
-
statusAsString
The execution status of the synchronization job. When the
Status
field is set toSUCCEEDED
, the synchronization job is done. If the status code is set toFAILED
, theErrorCode
andErrorMessage
fields give you the reason for the failure.If the service returns an enum value that is not available in the current SDK version,
status
will 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
Status
field is set toSUCCEEDED
, the synchronization job is done. If the status code is set toFAILED
, theErrorCode
andErrorMessage
fields give you the reason for the failure. - See Also:
-
errorMessage
If the
Status
field is set toERROR
, theErrorMessage
field contains a description of the error that caused the synchronization to fail.- Returns:
- If the
Status
field is set toERROR
, theErrorMessage
field contains a description of the error that caused the synchronization to fail.
-
errorCode
If the
Status
field is set toFAILED
, theErrorCode
field indicates the reason the synchronization failed.If the service returns an enum value that is not available in the current SDK version,
errorCode
will returnErrorCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromerrorCodeAsString()
.- Returns:
- If the
Status
field is set toFAILED
, theErrorCode
field indicates the reason the synchronization failed. - See Also:
-
errorCodeAsString
If the
Status
field is set toFAILED
, theErrorCode
field indicates the reason the synchronization failed.If the service returns an enum value that is not available in the current SDK version,
errorCode
will returnErrorCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromerrorCodeAsString()
.- Returns:
- If the
Status
field is set toFAILED
, theErrorCode
field 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:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<DataSourceSyncJob.Builder,
DataSourceSyncJob> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in 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
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-