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
public class AzureVmWorkloadItem extends WorkloadItem
Azure VM workload-specific workload item.
-
-
Constructor Summary
Constructors Constructor Description AzureVmWorkloadItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
isAutoProtectable()
Get the isAutoProtectable property: Indicates if workload item is auto-protectable.String
parentName()
Get the parentName property: Name for instance or AG.String
serverName()
Get the serverName property: Host/Cluster Name for instance or AG.Integer
subinquireditemcount()
Get the subinquireditemcount property: For instance or AG, indicates number of DB's present.Integer
subWorkloadItemCount()
Get the subWorkloadItemCount property: For instance or AG, indicates number of DB's to be protected.void
validate()
Validates the instance.AzureVmWorkloadItem
withBackupManagementType(String backupManagementType)
Set the backupManagementType property: Type of backup management to backup an item.AzureVmWorkloadItem
withFriendlyName(String friendlyName)
Set the friendlyName property: Friendly name of the backup item.AzureVmWorkloadItem
withIsAutoProtectable(Boolean isAutoProtectable)
Set the isAutoProtectable property: Indicates if workload item is auto-protectable.AzureVmWorkloadItem
withParentName(String parentName)
Set the parentName property: Name for instance or AG.AzureVmWorkloadItem
withProtectionState(ProtectionStatus protectionState)
Set the protectionState property: State of the back up item.AzureVmWorkloadItem
withServerName(String serverName)
Set the serverName property: Host/Cluster Name for instance or AG.AzureVmWorkloadItem
withSubinquireditemcount(Integer subinquireditemcount)
Set the subinquireditemcount property: For instance or AG, indicates number of DB's present.AzureVmWorkloadItem
withSubWorkloadItemCount(Integer subWorkloadItemCount)
Set the subWorkloadItemCount property: For instance or AG, indicates number of DB's to be protected.AzureVmWorkloadItem
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
-
-
-
-
Method Detail
-
parentName
public String parentName()
Get the parentName property: Name for instance or AG.- Returns:
- the parentName value.
-
withParentName
public AzureVmWorkloadItem withParentName(String parentName)
Set the parentName property: Name for instance or AG.- Parameters:
parentName
- the parentName value to set.- Returns:
- the AzureVmWorkloadItem object itself.
-
serverName
public String serverName()
Get the serverName property: Host/Cluster Name for instance or AG.- Returns:
- the serverName value.
-
withServerName
public AzureVmWorkloadItem withServerName(String serverName)
Set the serverName property: Host/Cluster Name for instance or AG.- Parameters:
serverName
- the serverName value to set.- Returns:
- the AzureVmWorkloadItem object itself.
-
isAutoProtectable
public Boolean isAutoProtectable()
Get the isAutoProtectable property: Indicates if workload item is auto-protectable.- Returns:
- the isAutoProtectable value.
-
withIsAutoProtectable
public AzureVmWorkloadItem withIsAutoProtectable(Boolean isAutoProtectable)
Set the isAutoProtectable property: Indicates if workload item is auto-protectable.- Parameters:
isAutoProtectable
- the isAutoProtectable value to set.- Returns:
- the AzureVmWorkloadItem object itself.
-
subinquireditemcount
public Integer subinquireditemcount()
Get the subinquireditemcount property: For instance or AG, indicates number of DB's present.- Returns:
- the subinquireditemcount value.
-
withSubinquireditemcount
public AzureVmWorkloadItem withSubinquireditemcount(Integer subinquireditemcount)
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
public Integer subWorkloadItemCount()
Get the subWorkloadItemCount property: For instance or AG, indicates number of DB's to be protected.- Returns:
- the subWorkloadItemCount value.
-
withSubWorkloadItemCount
public AzureVmWorkloadItem withSubWorkloadItemCount(Integer subWorkloadItemCount)
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
public AzureVmWorkloadItem withBackupManagementType(String backupManagementType)
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
public AzureVmWorkloadItem withWorkloadType(String workloadType)
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
public AzureVmWorkloadItem withFriendlyName(String friendlyName)
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
public AzureVmWorkloadItem withProtectionState(ProtectionStatus protectionState)
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.
-
-