java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.WorkloadItem
Direct Known Subclasses:
AzureVmWorkloadItem

public class WorkloadItem extends Object
Base class for backup item. Workload-specific backup items are derived from this class.
  • Constructor Details

    • WorkloadItem

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

    • backupManagementType

      public String backupManagementType()
      Get the backupManagementType property: Type of backup management to backup an item.
      Returns:
      the backupManagementType value.
    • withBackupManagementType

      public WorkloadItem withBackupManagementType(String backupManagementType)
      Set the backupManagementType property: Type of backup management to backup an item.
      Parameters:
      backupManagementType - the backupManagementType value to set.
      Returns:
      the WorkloadItem object itself.
    • workloadType

      public String workloadType()
      Get the workloadType property: Type of workload for the backup management.
      Returns:
      the workloadType value.
    • withWorkloadType

      public WorkloadItem withWorkloadType(String workloadType)
      Set the workloadType property: Type of workload for the backup management.
      Parameters:
      workloadType - the workloadType value to set.
      Returns:
      the WorkloadItem object itself.
    • friendlyName

      public String friendlyName()
      Get the friendlyName property: Friendly name of the backup item.
      Returns:
      the friendlyName value.
    • withFriendlyName

      public WorkloadItem withFriendlyName(String friendlyName)
      Set the friendlyName property: Friendly name of the backup item.
      Parameters:
      friendlyName - the friendlyName value to set.
      Returns:
      the WorkloadItem object itself.
    • protectionState

      public ProtectionStatus protectionState()
      Get the protectionState property: State of the back up item.
      Returns:
      the protectionState value.
    • withProtectionState

      public WorkloadItem withProtectionState(ProtectionStatus protectionState)
      Set the protectionState property: State of the back up item.
      Parameters:
      protectionState - the protectionState value to set.
      Returns:
      the WorkloadItem object itself.
    • validate

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