Class BackupInstance
java.lang.Object
com.azure.resourcemanager.dataprotection.models.BackupInstance
- Direct Known Subclasses:
DeletedBackupInstance
Backup Instance.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the currentProtectionState property: Specifies the current protection state of the resource.Get the datasourceAuthCredentials property: Credentials to use to authenticate with data source provider.Get the dataSourceInfo property: DatasourceGet the dataSourceSetInfo property: DatasourceSetGet the friendlyName property: Gets or sets the Backup Instance friendly name.Get the objectType property: The objectType property.Get the policyInfo property: PolicyInfoGet the protectionErrorDetails property: Specifies the protection error of the resource.Get the protectionStatus property: ProtectionStatusDetailsGet the provisioningState property: Specifies the provisioning state of the resource i.e.void
validate()
Validates the instance.Get the validationType property: Specifies the type of validation.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.
-
Constructor Details
-
BackupInstance
public BackupInstance()Creates an instance of BackupInstance class.
-
-
Method Details
-
friendlyName
Get the friendlyName property: Gets or sets the Backup Instance friendly name.- Returns:
- the friendlyName value.
-
withFriendlyName
Set the friendlyName property: Gets or sets the Backup Instance friendly name.- Parameters:
friendlyName
- the friendlyName value to set.- Returns:
- the BackupInstance object itself.
-
dataSourceInfo
Get the dataSourceInfo property: DatasourceGets or sets the data source information.
- Returns:
- the dataSourceInfo value.
-
withDataSourceInfo
Set the dataSourceInfo property: DatasourceGets or sets the data source information.
- Parameters:
dataSourceInfo
- the dataSourceInfo value to set.- Returns:
- the BackupInstance object itself.
-
dataSourceSetInfo
Get the dataSourceSetInfo property: DatasourceSetGets or sets the data source set information.
- Returns:
- the dataSourceSetInfo value.
-
withDataSourceSetInfo
Set the dataSourceSetInfo property: DatasourceSetGets or sets the data source set information.
- Parameters:
dataSourceSetInfo
- the dataSourceSetInfo value to set.- Returns:
- the BackupInstance object itself.
-
policyInfo
Get the policyInfo property: PolicyInfoGets or sets the policy information.
- Returns:
- the policyInfo value.
-
withPolicyInfo
Set the policyInfo property: PolicyInfoGets or sets the policy information.
- Parameters:
policyInfo
- the policyInfo value to set.- Returns:
- the BackupInstance object itself.
-
protectionStatus
Get the protectionStatus property: ProtectionStatusDetailsSpecifies the protection status of the resource.
- Returns:
- the protectionStatus value.
-
currentProtectionState
Get the currentProtectionState property: Specifies the current protection state of the resource.- Returns:
- the currentProtectionState value.
-
protectionErrorDetails
Get the protectionErrorDetails property: Specifies the protection error of the resource.- Returns:
- the protectionErrorDetails value.
-
provisioningState
Get the provisioningState property: Specifies the provisioning state of the resource i.e. provisioning/updating/Succeeded/Failed.- Returns:
- the provisioningState value.
-
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 BackupInstance object itself.
-
validationType
Get the validationType property: Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again.- Returns:
- the validationType value.
-
withValidationType
Set the validationType property: Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again.- Parameters:
validationType
- the validationType value to set.- Returns:
- the BackupInstance object itself.
-
objectType
Get the objectType property: The objectType property.- Returns:
- the objectType value.
-
withObjectType
Set the objectType property: The objectType property.- Parameters:
objectType
- the objectType value to set.- Returns:
- the BackupInstance object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-