Class DataSourceSyncJob
- java.lang.Object
-
- software.amazon.awssdk.services.kendra.model.DataSourceSyncJob
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DataSourceSyncJob.Builder,DataSourceSyncJob>
@Generated("software.amazon.awssdk:codegen") public final class DataSourceSyncJob extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DataSourceSyncJob.Builder,DataSourceSyncJob>
Provides information about a data source synchronization job.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDataSourceSyncJob.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DataSourceSyncJob.Builderbuilder()StringdataSourceErrorCode()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.InstantendTime()The Unix timestamp when the synchronization job completed.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)ErrorCodeerrorCode()If theStatusfield is set toFAILED, theErrorCodefield indicates the reason the synchronization failed.StringerrorCodeAsString()If theStatusfield is set toFAILED, theErrorCodefield indicates the reason the synchronization failed.StringerrorMessage()If theStatusfield is set toERROR, theErrorMessagefield contains a description of the error that caused the synchronization to fail.StringexecutionId()A identifier for the synchronization job.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()DataSourceSyncJobMetricsmetrics()Maps a batch delete document request to a specific data source sync job.List<SdkField<?>>sdkFields()static Class<? extends DataSourceSyncJob.Builder>serializableBuilderClass()InstantstartTime()The Unix timestamp when the synchronization job started.DataSourceSyncJobStatusstatus()The execution status of the synchronization job.StringstatusAsString()The execution status of the synchronization job.DataSourceSyncJob.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
executionId
public final String executionId()
A identifier for the synchronization job.
- Returns:
- A identifier for the synchronization job.
-
startTime
public final Instant startTime()
The Unix timestamp when the synchronization job started.
- Returns:
- The Unix timestamp when the synchronization job started.
-
endTime
public final Instant endTime()
The Unix timestamp when the synchronization job completed.
- Returns:
- The Unix timestamp when the synchronization job completed.
-
status
public final 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.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:
DataSourceSyncJobStatus
-
statusAsString
public final String 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:
DataSourceSyncJobStatus
-
errorMessage
public final String 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
public final ErrorCode 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:
ErrorCode
-
errorCodeAsString
public final String 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:
ErrorCode
-
dataSourceErrorCode
public final 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.
- 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
public final 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.
- 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
public DataSourceSyncJob.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DataSourceSyncJob.Builder,DataSourceSyncJob>
-
builder
public static DataSourceSyncJob.Builder builder()
-
serializableBuilderClass
public static Class<? extends DataSourceSyncJob.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String 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.
-
-