Class RestoreTargetInfo

java.lang.Object
com.azure.resourcemanager.dataprotection.models.RestoreTargetInfoBase
com.azure.resourcemanager.dataprotection.models.RestoreTargetInfo

public final class RestoreTargetInfo extends RestoreTargetInfoBase
Class encapsulating restore target parameters.
  • Constructor Details

    • RestoreTargetInfo

      public RestoreTargetInfo()
      Creates an instance of RestoreTargetInfo class.
  • Method Details

    • datasourceInfo

      public Datasource datasourceInfo()
      Get the datasourceInfo property: Datasource

      Information of target DS.

      Returns:
      the datasourceInfo value.
    • withDatasourceInfo

      public RestoreTargetInfo withDatasourceInfo(Datasource datasourceInfo)
      Set the datasourceInfo property: Datasource

      Information of target DS.

      Parameters:
      datasourceInfo - the datasourceInfo value to set.
      Returns:
      the RestoreTargetInfo object itself.
    • datasourceSetInfo

      public DatasourceSet datasourceSetInfo()
      Get the datasourceSetInfo property: DatasourceSet

      Information of target DS Set.

      Returns:
      the datasourceSetInfo value.
    • withDatasourceSetInfo

      public RestoreTargetInfo withDatasourceSetInfo(DatasourceSet datasourceSetInfo)
      Set the datasourceSetInfo property: DatasourceSet

      Information of target DS Set.

      Parameters:
      datasourceSetInfo - the datasourceSetInfo value to set.
      Returns:
      the RestoreTargetInfo 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 RestoreTargetInfo 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 RestoreTargetInfo object itself.
    • withRecoveryOption

      public RestoreTargetInfo withRecoveryOption(RecoveryOption recoveryOption)
      Set the recoveryOption property: Recovery Option.
      Overrides:
      withRecoveryOption in class RestoreTargetInfoBase
      Parameters:
      recoveryOption - the recoveryOption value to set.
      Returns:
      the RestoreTargetInfoBase object itself.
    • withRestoreLocation

      public RestoreTargetInfo withRestoreLocation(String restoreLocation)
      Set the restoreLocation property: Target Restore region.
      Overrides:
      withRestoreLocation in class RestoreTargetInfoBase
      Parameters:
      restoreLocation - the restoreLocation value to set.
      Returns:
      the RestoreTargetInfoBase object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class RestoreTargetInfoBase
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.