BackupConfiguration Class
- java.
lang. Object - com.
azure. resourcemanager. datamigration. models. BackupConfiguration
- com.
Implements
public final class BackupConfiguration
implements JsonSerializable<BackupConfiguration>
Backup Configuration.
Constructor Summary
| Constructor | Description |
|---|---|
| BackupConfiguration() |
Creates an instance of Backup |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Backup |
fromJson(JsonReader jsonReader)
Reads an instance of Backup |
|
Source |
sourceLocation()
Get the source |
|
Target |
targetLocation()
Get the target |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Backup |
withSourceLocation(SourceLocation sourceLocation)
Set the source |
|
Backup |
withTargetLocation(TargetLocation targetLocation)
Set the target |
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:
Returns:
Throws:
sourceLocation
public SourceLocation sourceLocation()
Get the sourceLocation property: Source location of backups.
Returns:
targetLocation
public TargetLocation targetLocation()
Get the targetLocation property: Target location for copying backups.
Returns:
toJson
validate
public void validate()
Validates the instance.
withSourceLocation
public BackupConfiguration withSourceLocation(SourceLocation sourceLocation)
Set the sourceLocation property: Source location of backups.
Parameters:
Returns:
withTargetLocation
public BackupConfiguration withTargetLocation(TargetLocation targetLocation)
Set the targetLocation property: Target location for copying backups.
Parameters:
Returns: