次の方法で共有


BackupConfiguration Class

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

Implements

public final class BackupConfiguration
implements JsonSerializable<BackupConfiguration>

Backup Configuration.

Constructor Summary

Constructor Description
BackupConfiguration()

Creates an instance of BackupConfiguration class.

Method Summary

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

Reads an instance of BackupConfiguration from the JsonReader.

SourceLocation sourceLocation()

Get the sourceLocation property: Source location of backups.

TargetLocation targetLocation()

Get the targetLocation property: Target location for copying backups.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

BackupConfiguration withSourceLocation(SourceLocation sourceLocation)

Set the sourceLocation property: Source location of backups.

BackupConfiguration withTargetLocation(TargetLocation targetLocation)

Set the targetLocation property: Target location for copying backups.

Methods inherited from java.lang.Object

Constructor Details

BackupConfiguration

public BackupConfiguration()

Creates an instance of BackupConfiguration class.

Method Details

fromJson

public static BackupConfiguration fromJson(JsonReader jsonReader)

Reads an instance of BackupConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

sourceLocation

public SourceLocation sourceLocation()

Get the sourceLocation property: Source location of backups.

Returns:

the sourceLocation value.

targetLocation

public TargetLocation targetLocation()

Get the targetLocation property: Target location for copying backups.

Returns:

the targetLocation value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withSourceLocation

public BackupConfiguration withSourceLocation(SourceLocation sourceLocation)

Set the sourceLocation property: Source location of backups.

Parameters:

sourceLocation - the sourceLocation value to set.

Returns:

the BackupConfiguration object itself.

withTargetLocation

public BackupConfiguration withTargetLocation(TargetLocation targetLocation)

Set the targetLocation property: Target location for copying backups.

Parameters:

targetLocation - the targetLocation value to set.

Returns:

the BackupConfiguration object itself.

Applies to