BackupInstance Class
- java.
lang. Object - com.
azure. resourcemanager. dataprotection. models. BackupInstance
- com.
Implements
public class BackupInstance
implements JsonSerializable<BackupInstance>
Backup Instance.
Constructor Summary
| Constructor | Description |
|---|---|
| BackupInstance() |
Creates an instance of Backup |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Current |
currentProtectionState()
Get the current |
|
Auth |
datasourceAuthCredentials()
Get the datasource |
| Datasource |
dataSourceInfo()
Get the data |
|
Datasource |
dataSourceSetInfo()
Get the data |
| String |
friendlyName()
Get the friendly |
|
static
Backup |
fromJson(JsonReader jsonReader)
Reads an instance of Backup |
|
Identity |
identityDetails()
Get the identity |
| String |
objectType()
Get the object |
|
Policy |
policyInfo()
Get the policy |
|
User |
protectionErrorDetails()
Get the protection |
|
Protection |
protectionStatus()
Get the protection |
| String |
provisioningState()
Get the provisioning |
| List<String> |
resourceGuardOperationRequests()
Get the resource |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Validation |
validationType()
Get the validation |
|
Backup |
withDatasourceAuthCredentials(AuthCredentials datasourceAuthCredentials)
Set the datasource |
|
Backup |
withDataSourceInfo(Datasource dataSourceInfo)
Set the data |
|
Backup |
withDataSourceSetInfo(DatasourceSet dataSourceSetInfo)
Set the data |
|
Backup |
withFriendlyName(String friendlyName)
Set the friendly |
|
Backup |
withIdentityDetails(IdentityDetails identityDetails)
Set the identity |
|
Backup |
withObjectType(String objectType)
Set the object |
|
Backup |
withPolicyInfo(PolicyInfo policyInfo)
Set the policy |
|
Backup |
withResourceGuardOperationRequests(List<String> resourceGuardOperationRequests)
Set the resource |
|
Backup |
withValidationType(ValidationType validationType)
Set the validation |
Methods inherited from java.lang.Object
Constructor Details
BackupInstance
public BackupInstance()
Creates an instance of BackupInstance class.
Method Details
currentProtectionState
public CurrentProtectionState currentProtectionState()
Get the currentProtectionState property: Specifies the current protection state of the resource.
Returns:
datasourceAuthCredentials
public AuthCredentials datasourceAuthCredentials()
Get the datasourceAuthCredentials property: Credentials to use to authenticate with data source provider.
Returns:
dataSourceInfo
public Datasource dataSourceInfo()
Get the dataSourceInfo property: Gets or sets the data source information.
Returns:
dataSourceSetInfo
public DatasourceSet dataSourceSetInfo()
Get the dataSourceSetInfo property: Gets or sets the data source set information.
Returns:
friendlyName
public String friendlyName()
Get the friendlyName property: Gets or sets the Backup Instance friendly name.
Returns:
fromJson
public static BackupInstance fromJson(JsonReader jsonReader)
Reads an instance of BackupInstance from the JsonReader.
Parameters:
Returns:
Throws:
identityDetails
public IdentityDetails identityDetails()
Get the identityDetails property: Contains information of the Identity Details for the BI. If it is null, default will be considered as System Assigned.
Returns:
objectType
public String objectType()
Get the objectType property: The objectType property.
Returns:
policyInfo
public PolicyInfo policyInfo()
Get the policyInfo property: Gets or sets the policy information.
Returns:
protectionErrorDetails
public UserFacingError protectionErrorDetails()
Get the protectionErrorDetails property: Specifies the protection error of the resource.
Returns:
protectionStatus
public ProtectionStatusDetails protectionStatus()
Get the protectionStatus property: Specifies the protection status of the resource.
Returns:
provisioningState
public String provisioningState()
Get the provisioningState property: Specifies the provisioning state of the resource i.e. provisioning/updating/Succeeded/Failed.
Returns:
resourceGuardOperationRequests
public List<String> resourceGuardOperationRequests()
Get the resourceGuardOperationRequests property: ResourceGuardOperationRequests on which LAC check will be performed.
Returns:
toJson
validationType
public ValidationType validationType()
Get the validationType property: Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again.
Returns:
withDatasourceAuthCredentials
public BackupInstance withDatasourceAuthCredentials(AuthCredentials datasourceAuthCredentials)
Set the datasourceAuthCredentials property: Credentials to use to authenticate with data source provider.
Parameters:
Returns:
withDataSourceInfo
public BackupInstance withDataSourceInfo(Datasource dataSourceInfo)
Set the dataSourceInfo property: Gets or sets the data source information.
Parameters:
Returns:
withDataSourceSetInfo
public BackupInstance withDataSourceSetInfo(DatasourceSet dataSourceSetInfo)
Set the dataSourceSetInfo property: Gets or sets the data source set information.
Parameters:
Returns:
withFriendlyName
public BackupInstance withFriendlyName(String friendlyName)
Set the friendlyName property: Gets or sets the Backup Instance friendly name.
Parameters:
Returns:
withIdentityDetails
public BackupInstance withIdentityDetails(IdentityDetails identityDetails)
Set the identityDetails property: Contains information of the Identity Details for the BI. If it is null, default will be considered as System Assigned.
Parameters:
Returns:
withObjectType
public BackupInstance withObjectType(String objectType)
Set the objectType property: The objectType property.
Parameters:
Returns:
withPolicyInfo
public BackupInstance withPolicyInfo(PolicyInfo policyInfo)
Set the policyInfo property: Gets or sets the policy information.
Parameters:
Returns:
withResourceGuardOperationRequests
public BackupInstance withResourceGuardOperationRequests(List<String> resourceGuardOperationRequests)
Set the resourceGuardOperationRequests property: ResourceGuardOperationRequests on which LAC check will be performed.
Parameters:
Returns:
withValidationType
public BackupInstance withValidationType(ValidationType validationType)
Set the validationType property: Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again.
Parameters:
Returns: