@Generated(value="software.amazon.awssdk:codegen") public final class DataSourceSyncJob extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DataSourceSyncJob.Builder,DataSourceSyncJob>
Provides information about a 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 datetime that the synchronization job was completed.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
ErrorCode |
errorCode()
If the
Status field is set to FAILED, the ErrorCode field contains a the
reason that the synchronization failed. |
String |
errorCodeAsString()
If the
Status field is set to FAILED, the ErrorCode field contains a the
reason that 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 unique 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 datetime that the synchronization job was 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 String executionId()
A unique identifier for the synchronization job.
public Instant startTime()
The UNIX datetime that the synchronization job was started.
public Instant endTime()
The UNIX datetime that the synchronization job was completed.
public 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 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 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 ErrorCode errorCode()
If the Status field is set to FAILED, the ErrorCode field contains a the
reason that 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 contains
a the reason that the synchronization failed.ErrorCodepublic String errorCodeAsString()
If the Status field is set to FAILED, the ErrorCode field contains a the
reason that 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 contains
a the reason that the synchronization failed.ErrorCodepublic 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 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 boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.