Class MigrateSqlServerSqlDbSyncTaskOutputDatabaseError
java.lang.Object
com.azure.resourcemanager.datamigration.models.MigrateSqlServerSqlDbSyncTaskOutput
com.azure.resourcemanager.datamigration.models.MigrateSqlServerSqlDbSyncTaskOutputDatabaseError
public final class MigrateSqlServerSqlDbSyncTaskOutputDatabaseError
extends MigrateSqlServerSqlDbSyncTaskOutput
The MigrateSqlServerSqlDbSyncTaskOutputDatabaseError model.
-
Constructor Summary
ConstructorDescriptionCreates an instance of MigrateSqlServerSqlDbSyncTaskOutputDatabaseError class. -
Method Summary
Modifier and TypeMethodDescriptionGet the errorMessage property: Error message.events()
Get the events property: List of error events.void
validate()
Validates the instance.withErrorMessage
(String errorMessage) Set the errorMessage property: Error message.Set the events property: List of error events.Methods inherited from class com.azure.resourcemanager.datamigration.models.MigrateSqlServerSqlDbSyncTaskOutput
id
-
Constructor Details
-
MigrateSqlServerSqlDbSyncTaskOutputDatabaseError
public MigrateSqlServerSqlDbSyncTaskOutputDatabaseError()Creates an instance of MigrateSqlServerSqlDbSyncTaskOutputDatabaseError class.
-
-
Method Details
-
errorMessage
Get the errorMessage property: Error message.- Returns:
- the errorMessage value.
-
withErrorMessage
Set the errorMessage property: Error message.- Parameters:
errorMessage
- the errorMessage value to set.- Returns:
- the MigrateSqlServerSqlDbSyncTaskOutputDatabaseError object itself.
-
events
Get the events property: List of error events.- Returns:
- the events value.
-
withEvents
public MigrateSqlServerSqlDbSyncTaskOutputDatabaseError withEvents(List<SyncMigrationDatabaseErrorEvent> events) Set the events property: List of error events.- Parameters:
events
- the events value to set.- Returns:
- the MigrateSqlServerSqlDbSyncTaskOutputDatabaseError object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classMigrateSqlServerSqlDbSyncTaskOutput
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-