次の方法で共有


DatabaseMigrationBaseProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.datamigration.models.DatabaseMigrationBaseProperties

Implements

public class DatabaseMigrationBaseProperties
implements JsonSerializable<DatabaseMigrationBaseProperties>

Database Migration Base Resource properties.

Constructor Summary

Constructor Description
DatabaseMigrationBaseProperties()

Creates an instance of DatabaseMigrationBaseProperties class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime endedOn()

Get the endedOn property: Database migration end time.

static DatabaseMigrationBaseProperties fromJson(JsonReader jsonReader)

Reads an instance of DatabaseMigrationBaseProperties from the JsonReader.

ResourceType kind()

Get the kind property: The kind property.

ErrorInfo migrationFailureError()

Get the migrationFailureError property: Error details in case of migration failure.

String migrationOperationId()

Get the migrationOperationId property: ID for current migration operation.

String migrationService()

Get the migrationService property: Resource Id of the Migration Service.

String migrationStatus()

Get the migrationStatus property: Migration status.

String provisioningError()

Get the provisioningError property: Error message for migration provisioning failure, if any.

ProvisioningState provisioningState()

Get the provisioningState property: Provisioning State of migration.

String scope()

Get the scope property: Resource Id of the target resource.

OffsetDateTime startedOn()

Get the startedOn property: Database migration start time.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DatabaseMigrationBaseProperties withMigrationOperationId(String migrationOperationId)

Set the migrationOperationId property: ID for current migration operation.

DatabaseMigrationBaseProperties withMigrationService(String migrationService)

Set the migrationService property: Resource Id of the Migration Service.

DatabaseMigrationBaseProperties withProvisioningError(String provisioningError)

Set the provisioningError property: Error message for migration provisioning failure, if any.

DatabaseMigrationBaseProperties withScope(String scope)

Set the scope property: Resource Id of the target resource.

Methods inherited from java.lang.Object

Constructor Details

DatabaseMigrationBaseProperties

public DatabaseMigrationBaseProperties()

Creates an instance of DatabaseMigrationBaseProperties class.

Method Details

endedOn

public OffsetDateTime endedOn()

Get the endedOn property: Database migration end time.

Returns:

the endedOn value.

fromJson

public static DatabaseMigrationBaseProperties fromJson(JsonReader jsonReader)

Reads an instance of DatabaseMigrationBaseProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DatabaseMigrationBaseProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the DatabaseMigrationBaseProperties.

kind

public ResourceType kind()

Get the kind property: The kind property.

Returns:

the kind value.

migrationFailureError

public ErrorInfo migrationFailureError()

Get the migrationFailureError property: Error details in case of migration failure.

Returns:

the migrationFailureError value.

migrationOperationId

public String migrationOperationId()

Get the migrationOperationId property: ID for current migration operation.

Returns:

the migrationOperationId value.

migrationService

public String migrationService()

Get the migrationService property: Resource Id of the Migration Service.

Returns:

the migrationService value.

migrationStatus

public String migrationStatus()

Get the migrationStatus property: Migration status.

Returns:

the migrationStatus value.

provisioningError

public String provisioningError()

Get the provisioningError property: Error message for migration provisioning failure, if any.

Returns:

the provisioningError value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed and migration has started.

Returns:

the provisioningState value.

scope

public String scope()

Get the scope property: Resource Id of the target resource.

Returns:

the scope value.

startedOn

public OffsetDateTime startedOn()

Get the startedOn property: Database migration start time.

Returns:

the startedOn value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withMigrationOperationId

public DatabaseMigrationBaseProperties withMigrationOperationId(String migrationOperationId)

Set the migrationOperationId property: ID for current migration operation.

Parameters:

migrationOperationId - the migrationOperationId value to set.

Returns:

the DatabaseMigrationBaseProperties object itself.

withMigrationService

public DatabaseMigrationBaseProperties withMigrationService(String migrationService)

Set the migrationService property: Resource Id of the Migration Service.

Parameters:

migrationService - the migrationService value to set.

Returns:

the DatabaseMigrationBaseProperties object itself.

withProvisioningError

public DatabaseMigrationBaseProperties withProvisioningError(String provisioningError)

Set the provisioningError property: Error message for migration provisioning failure, if any.

Parameters:

provisioningError - the provisioningError value to set.

Returns:

the DatabaseMigrationBaseProperties object itself.

withScope

public DatabaseMigrationBaseProperties withScope(String scope)

Set the scope property: Resource Id of the target resource.

Parameters:

scope - the scope value to set.

Returns:

the DatabaseMigrationBaseProperties object itself.

Applies to