Class AzureVmWorkloadProtectableItem
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.WorkloadProtectableItem
com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadProtectableItem
- Direct Known Subclasses:
AzureVmWorkloadSapAseSystemProtectableItem
,AzureVmWorkloadSapHanaDatabaseProtectableItem
,AzureVmWorkloadSapHanaDBInstance
,AzureVmWorkloadSapHanaHsr
,AzureVmWorkloadSapHanaSystemProtectableItem
,AzureVmWorkloadSqlAvailabilityGroupProtectableItem
,AzureVmWorkloadSqlDatabaseProtectableItem
,AzureVmWorkloadSqlInstanceProtectableItem
Azure VM workload-specific protectable item.
-
Constructor Summary
ConstructorDescriptionCreates an instance of AzureVmWorkloadProtectableItem class. -
Method Summary
Modifier and TypeMethodDescriptionGet the isAutoProtectable property: Indicates if protectable item is auto-protectable.Get the isAutoProtected property: Indicates if protectable item is auto-protected.Get the parentName property: Name for instance or AG.Get the parentUniqueName property: Parent Unique Name is added to provide the service formatted URI Name of the Parent Only Applicable for data bases where the parent would be either Instance or a SQL AG.Get the prebackupvalidation property: Pre-backup validation for protectable objects.Get the serverName property: Host/Cluster Name for instance or AG.Get the subinquireditemcount property: For instance or AG, indicates number of DB's present.Get the subprotectableitemcount property: For instance or AG, indicates number of DB's to be protected.void
validate()
Validates the instance.withBackupManagementType
(String backupManagementType) Set the backupManagementType property: Type of backup management to backup an item.withFriendlyName
(String friendlyName) Set the friendlyName property: Friendly name of the backup item.withIsAutoProtectable
(Boolean isAutoProtectable) Set the isAutoProtectable property: Indicates if protectable item is auto-protectable.withIsAutoProtected
(Boolean isAutoProtected) Set the isAutoProtected property: Indicates if protectable item is auto-protected.withParentName
(String parentName) Set the parentName property: Name for instance or AG.withParentUniqueName
(String parentUniqueName) Set the parentUniqueName property: Parent Unique Name is added to provide the service formatted URI Name of the Parent Only Applicable for data bases where the parent would be either Instance or a SQL AG.withPrebackupvalidation
(PreBackupValidation prebackupvalidation) Set the prebackupvalidation property: Pre-backup validation for protectable objects.withProtectionState
(ProtectionStatus protectionState) Set the protectionState property: State of the back up item.withServerName
(String serverName) Set the serverName property: Host/Cluster Name for instance or AG.withSubinquireditemcount
(Integer subinquireditemcount) Set the subinquireditemcount property: For instance or AG, indicates number of DB's present.withSubprotectableitemcount
(Integer subprotectableitemcount) Set the subprotectableitemcount property: For instance or AG, indicates number of DB's to be protected.withWorkloadType
(String workloadType) Set the workloadType property: Type of workload for the backup management.Methods inherited from class com.azure.resourcemanager.recoveryservicesbackup.models.WorkloadProtectableItem
backupManagementType, friendlyName, protectionState, workloadType
-
Constructor Details
-
AzureVmWorkloadProtectableItem
public AzureVmWorkloadProtectableItem()Creates an instance of AzureVmWorkloadProtectableItem class.
-
-
Method Details
-
parentName
Get the parentName property: Name for instance or AG.- Returns:
- the parentName value.
-
withParentName
Set the parentName property: Name for instance or AG.- Parameters:
parentName
- the parentName value to set.- Returns:
- the AzureVmWorkloadProtectableItem object itself.
-
parentUniqueName
Get the parentUniqueName property: Parent Unique Name is added to provide the service formatted URI Name of the Parent Only Applicable for data bases where the parent would be either Instance or a SQL AG.- Returns:
- the parentUniqueName value.
-
withParentUniqueName
Set the parentUniqueName property: Parent Unique Name is added to provide the service formatted URI Name of the Parent Only Applicable for data bases where the parent would be either Instance or a SQL AG.- Parameters:
parentUniqueName
- the parentUniqueName value to set.- Returns:
- the AzureVmWorkloadProtectableItem object itself.
-
serverName
Get the serverName property: Host/Cluster Name for instance or AG.- Returns:
- the serverName value.
-
withServerName
Set the serverName property: Host/Cluster Name for instance or AG.- Parameters:
serverName
- the serverName value to set.- Returns:
- the AzureVmWorkloadProtectableItem object itself.
-
isAutoProtectable
Get the isAutoProtectable property: Indicates if protectable item is auto-protectable.- Returns:
- the isAutoProtectable value.
-
withIsAutoProtectable
Set the isAutoProtectable property: Indicates if protectable item is auto-protectable.- Parameters:
isAutoProtectable
- the isAutoProtectable value to set.- Returns:
- the AzureVmWorkloadProtectableItem object itself.
-
isAutoProtected
Get the isAutoProtected property: Indicates if protectable item is auto-protected.- Returns:
- the isAutoProtected value.
-
withIsAutoProtected
Set the isAutoProtected property: Indicates if protectable item is auto-protected.- Parameters:
isAutoProtected
- the isAutoProtected value to set.- Returns:
- the AzureVmWorkloadProtectableItem object itself.
-
subinquireditemcount
Get the subinquireditemcount property: For instance or AG, indicates number of DB's present.- Returns:
- the subinquireditemcount value.
-
withSubinquireditemcount
Set the subinquireditemcount property: For instance or AG, indicates number of DB's present.- Parameters:
subinquireditemcount
- the subinquireditemcount value to set.- Returns:
- the AzureVmWorkloadProtectableItem object itself.
-
subprotectableitemcount
Get the subprotectableitemcount property: For instance or AG, indicates number of DB's to be protected.- Returns:
- the subprotectableitemcount value.
-
withSubprotectableitemcount
Set the subprotectableitemcount property: For instance or AG, indicates number of DB's to be protected.- Parameters:
subprotectableitemcount
- the subprotectableitemcount value to set.- Returns:
- the AzureVmWorkloadProtectableItem object itself.
-
prebackupvalidation
Get the prebackupvalidation property: Pre-backup validation for protectable objects.- Returns:
- the prebackupvalidation value.
-
withPrebackupvalidation
public AzureVmWorkloadProtectableItem withPrebackupvalidation(PreBackupValidation prebackupvalidation) Set the prebackupvalidation property: Pre-backup validation for protectable objects.- Parameters:
prebackupvalidation
- the prebackupvalidation value to set.- Returns:
- the AzureVmWorkloadProtectableItem object itself.
-
withBackupManagementType
Set the backupManagementType property: Type of backup management to backup an item.- Overrides:
withBackupManagementType
in classWorkloadProtectableItem
- Parameters:
backupManagementType
- the backupManagementType value to set.- Returns:
- the WorkloadProtectableItem object itself.
-
withWorkloadType
Set the workloadType property: Type of workload for the backup management.- Overrides:
withWorkloadType
in classWorkloadProtectableItem
- Parameters:
workloadType
- the workloadType value to set.- Returns:
- the WorkloadProtectableItem object itself.
-
withFriendlyName
Set the friendlyName property: Friendly name of the backup item.- Overrides:
withFriendlyName
in classWorkloadProtectableItem
- Parameters:
friendlyName
- the friendlyName value to set.- Returns:
- the WorkloadProtectableItem object itself.
-
withProtectionState
Set the protectionState property: State of the back up item.- Overrides:
withProtectionState
in classWorkloadProtectableItem
- Parameters:
protectionState
- the protectionState value to set.- Returns:
- the WorkloadProtectableItem object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classWorkloadProtectableItem
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-