次の方法で共有


OfflineConfiguration Class

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

Implements

public final class OfflineConfiguration
implements JsonSerializable<OfflineConfiguration>

Offline configuration.

Constructor Summary

Constructor Description
OfflineConfiguration()

Creates an instance of OfflineConfiguration class.

Method Summary

Modifier and Type Method and Description
static OfflineConfiguration fromJson(JsonReader jsonReader)

Reads an instance of OfflineConfiguration from the JsonReader.

String lastBackupName()

Get the lastBackupName property: Last backup name for offline migration.

Boolean offline()

Get the offline property: Offline migration.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

OfflineConfiguration withLastBackupName(String lastBackupName)

Set the lastBackupName property: Last backup name for offline migration.

OfflineConfiguration withOffline(Boolean offline)

Set the offline property: Offline migration.

Methods inherited from java.lang.Object

Constructor Details

OfflineConfiguration

public OfflineConfiguration()

Creates an instance of OfflineConfiguration class.

Method Details

fromJson

public static OfflineConfiguration fromJson(JsonReader jsonReader)

Reads an instance of OfflineConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of OfflineConfiguration 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 OfflineConfiguration.

lastBackupName

public String lastBackupName()

Get the lastBackupName property: Last backup name for offline migration. This is optional for migrations from file share. If it is not provided, then the service will determine the last backup file name based on latest backup files present in file share.

Returns:

the lastBackupName value.

offline

public Boolean offline()

Get the offline property: Offline migration.

Returns:

the offline value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withLastBackupName

public OfflineConfiguration withLastBackupName(String lastBackupName)

Set the lastBackupName property: Last backup name for offline migration. This is optional for migrations from file share. If it is not provided, then the service will determine the last backup file name based on latest backup files present in file share.

Parameters:

lastBackupName - the lastBackupName value to set.

Returns:

the OfflineConfiguration object itself.

withOffline

public OfflineConfiguration withOffline(Boolean offline)

Set the offline property: Offline migration.

Parameters:

offline - the offline value to set.

Returns:

the OfflineConfiguration object itself.

Applies to