Class ItemLevelRestoreTargetInfo
- java.lang.Object
-
- com.azure.resourcemanager.dataprotection.models.RestoreTargetInfoBase
-
- com.azure.resourcemanager.dataprotection.models.ItemLevelRestoreTargetInfo
-
public final class ItemLevelRestoreTargetInfo extends RestoreTargetInfoBase
Restore target info for Item level restore operation.
-
-
Constructor Summary
Constructors Constructor Description ItemLevelRestoreTargetInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthCredentials
datasourceAuthCredentials()
Get the datasourceAuthCredentials property: Credentials to use to authenticate with data source provider.Datasource
datasourceInfo()
Get the datasourceInfo property: Datasource Information of target DS.DatasourceSet
datasourceSetInfo()
Get the datasourceSetInfo property: DatasourceSet Information of target DS Set.List<ItemLevelRestoreCriteria>
restoreCriteria()
Get the restoreCriteria property: Restore Criteria.void
validate()
Validates the instance.ItemLevelRestoreTargetInfo
withDatasourceAuthCredentials(AuthCredentials datasourceAuthCredentials)
Set the datasourceAuthCredentials property: Credentials to use to authenticate with data source provider.ItemLevelRestoreTargetInfo
withDatasourceInfo(Datasource datasourceInfo)
Set the datasourceInfo property: Datasource Information of target DS.ItemLevelRestoreTargetInfo
withDatasourceSetInfo(DatasourceSet datasourceSetInfo)
Set the datasourceSetInfo property: DatasourceSet Information of target DS Set.ItemLevelRestoreTargetInfo
withRecoveryOption(RecoveryOption recoveryOption)
Set the recoveryOption property: Recovery Option.ItemLevelRestoreTargetInfo
withRestoreCriteria(List<ItemLevelRestoreCriteria> restoreCriteria)
Set the restoreCriteria property: Restore Criteria.ItemLevelRestoreTargetInfo
withRestoreLocation(String restoreLocation)
Set the restoreLocation property: Target Restore region.-
Methods inherited from class com.azure.resourcemanager.dataprotection.models.RestoreTargetInfoBase
recoveryOption, restoreLocation
-
-
-
-
Method Detail
-
restoreCriteria
public List<ItemLevelRestoreCriteria> restoreCriteria()
Get the restoreCriteria property: Restore Criteria.- Returns:
- the restoreCriteria value.
-
withRestoreCriteria
public ItemLevelRestoreTargetInfo withRestoreCriteria(List<ItemLevelRestoreCriteria> restoreCriteria)
Set the restoreCriteria property: Restore Criteria.- Parameters:
restoreCriteria
- the restoreCriteria value to set.- Returns:
- the ItemLevelRestoreTargetInfo object itself.
-
datasourceInfo
public Datasource datasourceInfo()
Get the datasourceInfo property: Datasource Information of target DS.- Returns:
- the datasourceInfo value.
-
withDatasourceInfo
public ItemLevelRestoreTargetInfo withDatasourceInfo(Datasource datasourceInfo)
Set the datasourceInfo property: Datasource Information of target DS.- Parameters:
datasourceInfo
- the datasourceInfo value to set.- Returns:
- the ItemLevelRestoreTargetInfo object itself.
-
datasourceSetInfo
public DatasourceSet datasourceSetInfo()
Get the datasourceSetInfo property: DatasourceSet Information of target DS Set.- Returns:
- the datasourceSetInfo value.
-
withDatasourceSetInfo
public ItemLevelRestoreTargetInfo withDatasourceSetInfo(DatasourceSet datasourceSetInfo)
Set the datasourceSetInfo property: DatasourceSet Information of target DS Set.- Parameters:
datasourceSetInfo
- the datasourceSetInfo value to set.- Returns:
- the ItemLevelRestoreTargetInfo object itself.
-
datasourceAuthCredentials
public AuthCredentials datasourceAuthCredentials()
Get the datasourceAuthCredentials property: Credentials to use to authenticate with data source provider.- Returns:
- the datasourceAuthCredentials value.
-
withDatasourceAuthCredentials
public ItemLevelRestoreTargetInfo withDatasourceAuthCredentials(AuthCredentials datasourceAuthCredentials)
Set the datasourceAuthCredentials property: Credentials to use to authenticate with data source provider.- Parameters:
datasourceAuthCredentials
- the datasourceAuthCredentials value to set.- Returns:
- the ItemLevelRestoreTargetInfo object itself.
-
withRecoveryOption
public ItemLevelRestoreTargetInfo withRecoveryOption(RecoveryOption recoveryOption)
Set the recoveryOption property: Recovery Option.- Overrides:
withRecoveryOption
in classRestoreTargetInfoBase
- Parameters:
recoveryOption
- the recoveryOption value to set.- Returns:
- the RestoreTargetInfoBase object itself.
-
withRestoreLocation
public ItemLevelRestoreTargetInfo withRestoreLocation(String restoreLocation)
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.
-
-