@Generated(value="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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
DataSourceSyncJob.Builder |
| Modifier and Type | Method and Description |
|---|---|
static DataSourceSyncJob.Builder |
builder() |
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.
|
Instant |
endTime()
The Unix timestamp when the synchronization job completed.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
ErrorCode |
errorCode()
If the
Status field is set to FAILED, the ErrorCode field indicates the
reason the synchronization failed. |
String |
errorCodeAsString()
If the
Status field is set to FAILED, the ErrorCode field indicates the
reason the synchronization failed. |
String |
errorMessage()
If the
Status field is set to ERROR, the ErrorMessage field contains a
description of the error that caused the synchronization to fail. |
String |
executionId()
A identifier for the synchronization job.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
DataSourceSyncJobMetrics |
metrics()
Maps a batch delete document request to a specific data source sync job.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends DataSourceSyncJob.Builder> |
serializableBuilderClass() |
Instant |
startTime()
The Unix timestamp when the synchronization job started.
|
DataSourceSyncJobStatus |
status()
The execution status of the synchronization job.
|
String |
statusAsString()
The execution status of the synchronization job.
|
DataSourceSyncJob.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String executionId()
A identifier for the synchronization job.
public final Instant startTime()
The Unix timestamp when the synchronization job started.
public final Instant endTime()
The Unix timestamp when the synchronization job completed.
public final DataSourceSyncJobStatus status()
The execution status of the synchronization job. When the Status field is set to
SUCCEEDED, the synchronization job is done. If the status code is set to FAILED, the
ErrorCode and ErrorMessage 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
return DataSourceSyncJobStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from statusAsString().
Status field is set to
SUCCEEDED, the synchronization job is done. If the status code is set to FAILED
, the ErrorCode and ErrorMessage fields give you the reason for the failure.DataSourceSyncJobStatuspublic final String statusAsString()
The execution status of the synchronization job. When the Status field is set to
SUCCEEDED, the synchronization job is done. If the status code is set to FAILED, the
ErrorCode and ErrorMessage 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
return DataSourceSyncJobStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from statusAsString().
Status field is set to
SUCCEEDED, the synchronization job is done. If the status code is set to FAILED
, the ErrorCode and ErrorMessage fields give you the reason for the failure.DataSourceSyncJobStatuspublic final String errorMessage()
If the Status field is set to ERROR, the ErrorMessage field contains a
description of the error that caused the synchronization to fail.
Status field is set to ERROR, the ErrorMessage field
contains a description of the error that caused the synchronization to fail.public final ErrorCode errorCode()
If the Status field is set to FAILED, the ErrorCode 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
return ErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
errorCodeAsString().
Status field is set to FAILED, the ErrorCode field
indicates the reason the synchronization failed.ErrorCodepublic final String errorCodeAsString()
If the Status field is set to FAILED, the ErrorCode 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
return ErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
errorCodeAsString().
Status field is set to FAILED, the ErrorCode field
indicates the reason the synchronization failed.ErrorCodepublic 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.
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.
public DataSourceSyncJob.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<DataSourceSyncJob.Builder,DataSourceSyncJob>public static DataSourceSyncJob.Builder builder()
public static Class<? extends DataSourceSyncJob.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.