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 Details

    • AzureVmWorkloadItem

      public AzureVmWorkloadItem()
      Creates an instance of AzureVmWorkloadItem class.
  • Method Details

    • 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 class WorkloadItem
      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 class WorkloadItem
      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 class WorkloadItem
      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 class WorkloadItem
      Parameters:
      protectionState - the protectionState value to set.
      Returns:
      the WorkloadItem object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class WorkloadItem
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.