Class DeletedBackupInstance
java.lang.Object
com.azure.resourcemanager.dataprotection.models.BackupInstance
com.azure.resourcemanager.dataprotection.models.DeletedBackupInstance
Deleted Backup Instance.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the deletionInfo property: Deletion info of Backup Instance.void
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: DatasourceSetwithFriendlyName
(String friendlyName) Set the friendlyName property: Gets or sets the Backup Instance friendly name.withObjectType
(String objectType) Set the objectType property: The objectType property.withPolicyInfo
(PolicyInfo policyInfo) Set the policyInfo property: PolicyInfowithValidationType
(ValidationType validationType) Set the validationType property: Specifies the type of validation.Methods inherited from class com.azure.resourcemanager.dataprotection.models.BackupInstance
currentProtectionState, datasourceAuthCredentials, dataSourceInfo, dataSourceSetInfo, friendlyName, objectType, policyInfo, protectionErrorDetails, protectionStatus, provisioningState, validationType
-
Constructor Details
-
DeletedBackupInstance
public DeletedBackupInstance()Creates an instance of DeletedBackupInstance class.
-
-
Method Details
-
deletionInfo
Get the deletionInfo property: Deletion info of Backup Instance.- Returns:
- the deletionInfo value.
-
withFriendlyName
Set the friendlyName property: Gets or sets the Backup Instance friendly name.- Overrides:
withFriendlyName
in classBackupInstance
- Parameters:
friendlyName
- the friendlyName value to set.- Returns:
- the BackupInstance object itself.
-
withDataSourceInfo
Set the dataSourceInfo property: DatasourceGets or sets the data source information.
- Overrides:
withDataSourceInfo
in classBackupInstance
- Parameters:
dataSourceInfo
- the dataSourceInfo value to set.- Returns:
- the BackupInstance object itself.
-
withDataSourceSetInfo
Set the dataSourceSetInfo property: DatasourceSetGets or sets the data source set information.
- Overrides:
withDataSourceSetInfo
in classBackupInstance
- Parameters:
dataSourceSetInfo
- the dataSourceSetInfo value to set.- Returns:
- the BackupInstance object itself.
-
withPolicyInfo
Set the policyInfo property: PolicyInfoGets or sets the policy information.
- Overrides:
withPolicyInfo
in classBackupInstance
- Parameters:
policyInfo
- the policyInfo value to set.- Returns:
- the BackupInstance object itself.
-
withDatasourceAuthCredentials
public DeletedBackupInstance withDatasourceAuthCredentials(AuthCredentials datasourceAuthCredentials) Set the datasourceAuthCredentials property: Credentials to use to authenticate with data source provider.- Overrides:
withDatasourceAuthCredentials
in classBackupInstance
- Parameters:
datasourceAuthCredentials
- the datasourceAuthCredentials value to set.- Returns:
- the BackupInstance object itself.
-
withValidationType
Set the validationType property: Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again.- Overrides:
withValidationType
in classBackupInstance
- Parameters:
validationType
- the validationType value to set.- Returns:
- the BackupInstance object itself.
-
withObjectType
Set the objectType property: The objectType property.- Overrides:
withObjectType
in classBackupInstance
- Parameters:
objectType
- the objectType value to set.- Returns:
- the BackupInstance object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classBackupInstance
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-