BackupInstance Class

  • java.lang.Object
    • com.azure.resourcemanager.dataprotection.models.BackupInstance

Implements

public class BackupInstance
implements JsonSerializable<BackupInstance>

Backup Instance.

Constructor Summary

Constructor Description
BackupInstance()

Creates an instance of BackupInstance class.

Method Summary

Modifier and Type Method and Description
CurrentProtectionState currentProtectionState()

Get the currentProtectionState property: Specifies the current protection state of the resource.

AuthCredentials datasourceAuthCredentials()

Get the datasourceAuthCredentials property: Credentials to use to authenticate with data source provider.

Datasource dataSourceInfo()

Get the dataSourceInfo property: Gets or sets the data source information.

DatasourceSet dataSourceSetInfo()

Get the dataSourceSetInfo property: Gets or sets the data source set information.

String friendlyName()

Get the friendlyName property: Gets or sets the Backup Instance friendly name.

static BackupInstance fromJson(JsonReader jsonReader)

Reads an instance of BackupInstance from the JsonReader.

IdentityDetails identityDetails()

Get the identityDetails property: Contains information of the Identity Details for the BI.

String objectType()

Get the objectType property: The objectType property.

PolicyInfo policyInfo()

Get the policyInfo property: Gets or sets the policy information.

UserFacingError protectionErrorDetails()

Get the protectionErrorDetails property: Specifies the protection error of the resource.

ProtectionStatusDetails protectionStatus()

Get the protectionStatus property: Specifies the protection status of the resource.

String provisioningState()

Get the provisioningState property: Specifies the provisioning state of the resource i.e.

List<String> resourceGuardOperationRequests()

Get the resourceGuardOperationRequests property: ResourceGuardOperationRequests on which LAC check will be performed.

JsonWriter toJson(JsonWriter jsonWriter)
ValidationType validationType()

Get the validationType property: Specifies the type of validation.

BackupInstance withDatasourceAuthCredentials(AuthCredentials datasourceAuthCredentials)

Set the datasourceAuthCredentials property: Credentials to use to authenticate with data source provider.

BackupInstance withDataSourceInfo(Datasource dataSourceInfo)

Set the dataSourceInfo property: Gets or sets the data source information.

BackupInstance withDataSourceSetInfo(DatasourceSet dataSourceSetInfo)

Set the dataSourceSetInfo property: Gets or sets the data source set information.

BackupInstance withFriendlyName(String friendlyName)

Set the friendlyName property: Gets or sets the Backup Instance friendly name.

BackupInstance withIdentityDetails(IdentityDetails identityDetails)

Set the identityDetails property: Contains information of the Identity Details for the BI.

BackupInstance withObjectType(String objectType)

Set the objectType property: The objectType property.

BackupInstance withPolicyInfo(PolicyInfo policyInfo)

Set the policyInfo property: Gets or sets the policy information.

BackupInstance withResourceGuardOperationRequests(List<String> resourceGuardOperationRequests)

Set the resourceGuardOperationRequests property: ResourceGuardOperationRequests on which LAC check will be performed.

BackupInstance withValidationType(ValidationType validationType)

Set the validationType property: Specifies the type of 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:

the currentProtectionState value.

datasourceAuthCredentials

public AuthCredentials datasourceAuthCredentials()

Get the datasourceAuthCredentials property: Credentials to use to authenticate with data source provider.

Returns:

the datasourceAuthCredentials value.

dataSourceInfo

public Datasource dataSourceInfo()

Get the dataSourceInfo property: Gets or sets the data source information.

Returns:

the dataSourceInfo value.

dataSourceSetInfo

public DatasourceSet dataSourceSetInfo()

Get the dataSourceSetInfo property: Gets or sets the data source set information.

Returns:

the dataSourceSetInfo value.

friendlyName

public String friendlyName()

Get the friendlyName property: Gets or sets the Backup Instance friendly name.

Returns:

the friendlyName value.

fromJson

public static BackupInstance fromJson(JsonReader jsonReader)

Reads an instance of BackupInstance from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BackupInstance if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

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:

the identityDetails value.

objectType

public String objectType()

Get the objectType property: The objectType property.

Returns:

the objectType value.

policyInfo

public PolicyInfo policyInfo()

Get the policyInfo property: Gets or sets the policy information.

Returns:

the policyInfo value.

protectionErrorDetails

public UserFacingError protectionErrorDetails()

Get the protectionErrorDetails property: Specifies the protection error of the resource.

Returns:

the protectionErrorDetails value.

protectionStatus

public ProtectionStatusDetails protectionStatus()

Get the protectionStatus property: Specifies the protection status of the resource.

Returns:

the protectionStatus value.

provisioningState

public String provisioningState()

Get the provisioningState property: Specifies the provisioning state of the resource i.e. provisioning/updating/Succeeded/Failed.

Returns:

the provisioningState value.

resourceGuardOperationRequests

public List<String> resourceGuardOperationRequests()

Get the resourceGuardOperationRequests property: ResourceGuardOperationRequests on which LAC check will be performed.

Returns:

the resourceGuardOperationRequests value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

the validationType value.

withDatasourceAuthCredentials

public BackupInstance 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 BackupInstance object itself.

withDataSourceInfo

public BackupInstance withDataSourceInfo(Datasource dataSourceInfo)

Set the dataSourceInfo property: Gets or sets the data source information.

Parameters:

dataSourceInfo - the dataSourceInfo value to set.

Returns:

the BackupInstance object itself.

withDataSourceSetInfo

public BackupInstance withDataSourceSetInfo(DatasourceSet dataSourceSetInfo)

Set the dataSourceSetInfo property: Gets or sets the data source set information.

Parameters:

dataSourceSetInfo - the dataSourceSetInfo value to set.

Returns:

the BackupInstance object itself.

withFriendlyName

public BackupInstance withFriendlyName(String friendlyName)

Set the friendlyName property: Gets or sets the Backup Instance friendly name.

Parameters:

friendlyName - the friendlyName value to set.

Returns:

the BackupInstance object itself.

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:

identityDetails - the identityDetails value to set.

Returns:

the BackupInstance object itself.

withObjectType

public BackupInstance withObjectType(String objectType)

Set the objectType property: The objectType property.

Parameters:

objectType - the objectType value to set.

Returns:

the BackupInstance object itself.

withPolicyInfo

public BackupInstance withPolicyInfo(PolicyInfo policyInfo)

Set the policyInfo property: Gets or sets the policy information.

Parameters:

policyInfo - the policyInfo value to set.

Returns:

the BackupInstance object itself.

withResourceGuardOperationRequests

public BackupInstance withResourceGuardOperationRequests(List<String> resourceGuardOperationRequests)

Set the resourceGuardOperationRequests property: ResourceGuardOperationRequests on which LAC check will be performed.

Parameters:

resourceGuardOperationRequests - the resourceGuardOperationRequests value to set.

Returns:

the BackupInstance object itself.

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:

validationType - the validationType value to set.

Returns:

the BackupInstance object itself.

Applies to