Class AzureVmWorkloadItem
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.WorkloadItem
com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadItem
- Direct Known Subclasses:
AzureVmWorkloadSapAseDatabaseWorkloadItem
,AzureVmWorkloadSapAseSystemWorkloadItem
,AzureVmWorkloadSapHanaDatabaseWorkloadItem
,AzureVmWorkloadSapHanaSystemWorkloadItem
,AzureVmWorkloadSqlDatabaseWorkloadItem
,AzureVmWorkloadSqlInstanceWorkloadItem
Azure VM workload-specific workload item.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the isAutoProtectable property: Indicates if workload item is auto-protectable.Get the parentName property: Name for instance or AG.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 subWorkloadItemCount 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 workload item is auto-protectable.withParentName
(String parentName) Set the parentName property: Name for instance or AG.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.withSubWorkloadItemCount
(Integer subWorkloadItemCount) Set the subWorkloadItemCount 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.WorkloadItem
backupManagementType, friendlyName, protectionState, workloadType
-
Constructor Details
-
AzureVmWorkloadItem
public AzureVmWorkloadItem()Creates an instance of AzureVmWorkloadItem 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 AzureVmWorkloadItem 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 AzureVmWorkloadItem object itself.
-
isAutoProtectable
Get the isAutoProtectable property: Indicates if workload item is auto-protectable.- Returns:
- the isAutoProtectable value.
-
withIsAutoProtectable
Set the isAutoProtectable property: Indicates if workload item is auto-protectable.- Parameters:
isAutoProtectable
- the isAutoProtectable value to set.- Returns:
- the AzureVmWorkloadItem 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 AzureVmWorkloadItem object itself.
-
subWorkloadItemCount
Get the subWorkloadItemCount property: For instance or AG, indicates number of DB's to be protected.- Returns:
- the subWorkloadItemCount value.
-
withSubWorkloadItemCount
Set the subWorkloadItemCount property: For instance or AG, indicates number of DB's to be protected.- Parameters:
subWorkloadItemCount
- the subWorkloadItemCount value to set.- Returns:
- the AzureVmWorkloadItem object itself.
-
withBackupManagementType
Set the backupManagementType property: Type of backup management to backup an item.- Overrides:
withBackupManagementType
in classWorkloadItem
- Parameters:
backupManagementType
- the backupManagementType value to set.- Returns:
- the WorkloadItem object itself.
-
withWorkloadType
Set the workloadType property: Type of workload for the backup management.- Overrides:
withWorkloadType
in classWorkloadItem
- Parameters:
workloadType
- the workloadType value to set.- Returns:
- the WorkloadItem object itself.
-
withFriendlyName
Set the friendlyName property: Friendly name of the backup item.- Overrides:
withFriendlyName
in classWorkloadItem
- Parameters:
friendlyName
- the friendlyName value to set.- Returns:
- the WorkloadItem object itself.
-
withProtectionState
Set the protectionState property: State of the back up item.- Overrides:
withProtectionState
in classWorkloadItem
- Parameters:
protectionState
- the protectionState value to set.- Returns:
- the WorkloadItem object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classWorkloadItem
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-