Class RestoreTargetInfo
java.lang.Object
com.azure.resourcemanager.dataprotection.models.RestoreTargetInfoBase
com.azure.resourcemanager.dataprotection.models.RestoreTargetInfo
Class encapsulating restore target parameters.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the datasourceAuthCredentials property: Credentials to use to authenticate with data source provider.Get the datasourceInfo property: DatasourceGet the datasourceSetInfo property: DatasourceSetvoid
validate()
Validates the instance.withDatasourceAuthCredentials
(AuthCredentials datasourceAuthCredentials) Set the datasourceAuthCredentials property: Credentials to use to authenticate with data source provider.withDatasourceInfo
(Datasource datasourceInfo) Set the datasourceInfo property: DatasourcewithDatasourceSetInfo
(DatasourceSet datasourceSetInfo) Set the datasourceSetInfo property: DatasourceSetwithRecoveryOption
(RecoveryOption recoveryOption) Set the recoveryOption property: Recovery Option.withRestoreLocation
(String restoreLocation) Set the restoreLocation property: Target Restore region.Methods inherited from class com.azure.resourcemanager.dataprotection.models.RestoreTargetInfoBase
recoveryOption, restoreLocation
-
Constructor Details
-
RestoreTargetInfo
public RestoreTargetInfo()Creates an instance of RestoreTargetInfo class.
-
-
Method Details
-
datasourceInfo
Get the datasourceInfo property: DatasourceInformation of target DS.
- Returns:
- the datasourceInfo value.
-
withDatasourceInfo
Set the datasourceInfo property: DatasourceInformation of target DS.
- Parameters:
datasourceInfo
- the datasourceInfo value to set.- Returns:
- the RestoreTargetInfo object itself.
-
datasourceSetInfo
Get the datasourceSetInfo property: DatasourceSetInformation of target DS Set.
- Returns:
- the datasourceSetInfo value.
-
withDatasourceSetInfo
Set the datasourceSetInfo property: DatasourceSetInformation of target DS Set.
- Parameters:
datasourceSetInfo
- the datasourceSetInfo value to set.- Returns:
- the RestoreTargetInfo object itself.
-
datasourceAuthCredentials
Get the datasourceAuthCredentials property: Credentials to use to authenticate with data source provider.- Returns:
- the datasourceAuthCredentials value.
-
withDatasourceAuthCredentials
Set the datasourceAuthCredentials property: Credentials to use to authenticate with data source provider.- Parameters:
datasourceAuthCredentials
- the datasourceAuthCredentials value to set.- Returns:
- the RestoreTargetInfo object itself.
-
withRecoveryOption
Set the recoveryOption property: Recovery Option.- Overrides:
withRecoveryOption
in classRestoreTargetInfoBase
- Parameters:
recoveryOption
- the recoveryOption value to set.- Returns:
- the RestoreTargetInfoBase object itself.
-
withRestoreLocation
Set the restoreLocation property: Target Restore region.- Overrides:
withRestoreLocation
in classRestoreTargetInfoBase
- Parameters:
restoreLocation
- the restoreLocation value to set.- Returns:
- the RestoreTargetInfoBase object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classRestoreTargetInfoBase
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-