Class DataSourceSyncJob
- java.lang.Object
-
- software.amazon.awssdk.services.qbusiness.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 an Amazon Q data source connector 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)ErrorDetailerror()If theStatusfield is set toFAILED, theErrorCodefield indicates the reason the synchronization failed.StringexecutionId()The identifier of a data source 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 time stamp when the data source synchronization job started.DataSourceSyncJobStatusstatus()The status of the synchronization job.StringstatusAsString()The 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
-
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.
-
endTime
public final Instant endTime()
The Unix timestamp when the synchronization job completed.
- Returns:
- The Unix timestamp when the synchronization job completed.
-
error
public final ErrorDetail error()
If the
Statusfield is set toFAILED, theErrorCodefield indicates the reason the synchronization failed.- Returns:
- If the
Statusfield is set toFAILED, theErrorCodefield indicates the reason the synchronization failed.
-
executionId
public final String executionId()
The identifier of a data source synchronization job.
- Returns:
- The identifier of a data source synchronization job.
-
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.
-
startTime
public final Instant startTime()
The Unix time stamp when the data source synchronization job started.
- Returns:
- The Unix time stamp when the data source synchronization job started.
-
status
public final DataSourceSyncJobStatus status()
The status of the synchronization job. When the
Statusfield is set toSUCCEEDED, the synchronization job is done. If the status code isFAILED, 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 status of the synchronization job. When the
Statusfield is set toSUCCEEDED, the synchronization job is done. If the status code isFAILED, theErrorCodeandErrorMessagefields give you the reason for the failure. - See Also:
DataSourceSyncJobStatus
-
statusAsString
public final String statusAsString()
The status of the synchronization job. When the
Statusfield is set toSUCCEEDED, the synchronization job is done. If the status code isFAILED, 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 status of the synchronization job. When the
Statusfield is set toSUCCEEDED, the synchronization job is done. If the status code isFAILED, theErrorCodeandErrorMessagefields give you the reason for the failure. - See Also:
DataSourceSyncJobStatus
-
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.
-
-