Class DataSourceSyncJob
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<DataSourceSyncJob.Builder,
DataSourceSyncJob>
Provides information about an Amazon Q Business data source connector 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 ErrorDetail
error()
If theStatus
field is set toFAILED
, theErrorCode
field indicates the reason the synchronization failed.final String
The identifier of a data source 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 time stamp when the data source synchronization job started.final DataSourceSyncJobStatus
status()
The status of the synchronization job.final String
The 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
The identifier of a data source synchronization job.
- Returns:
- The identifier of a data source synchronization job.
-
startTime
The Unix time stamp when the data source synchronization job started.
- Returns:
- The Unix time stamp when the data source synchronization job started.
-
endTime
The Unix timestamp when the synchronization job completed.
- Returns:
- The Unix timestamp when the synchronization job completed.
-
status
The status of the synchronization job. When the
Status
field is set toSUCCEEDED
, the synchronization job is done. If the status code isFAILED
, 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 status of the synchronization job. When the
Status
field is set toSUCCEEDED
, the synchronization job is done. If the status code isFAILED
, theErrorCode
andErrorMessage
fields give you the reason for the failure. - See Also:
-
statusAsString
The status of the synchronization job. When the
Status
field is set toSUCCEEDED
, the synchronization job is done. If the status code isFAILED
, 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 status of the synchronization job. When the
Status
field is set toSUCCEEDED
, the synchronization job is done. If the status code isFAILED
, theErrorCode
andErrorMessage
fields give you the reason for the failure. - See Also:
-
error
If the
Status
field is set toFAILED
, theErrorCode
field indicates the reason the synchronization failed.- Returns:
- If the
Status
field is set toFAILED
, theErrorCode
field indicates the reason the synchronization failed.
-
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
-
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
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-