Class WorkloadItem
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.WorkloadItem
- Direct Known Subclasses:
AzureVmWorkloadItem
Base class for backup item. Workload-specific backup items are derived from this class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the backupManagementType property: Type of backup management to backup an item.Get the friendlyName property: Friendly name of the backup item.Get the protectionState property: State of the back up item.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.withProtectionState
(ProtectionStatus protectionState) Set the protectionState property: State of the back up item.withWorkloadType
(String workloadType) Set the workloadType property: Type of workload for the backup management.Get the workloadType property: Type of workload for the backup management.
-
Constructor Details
-
WorkloadItem
public WorkloadItem()Creates an instance of WorkloadItem class.
-
-
Method Details
-
backupManagementType
Get the backupManagementType property: Type of backup management to backup an item.- Returns:
- the backupManagementType value.
-
withBackupManagementType
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
Get the workloadType property: Type of workload for the backup management.- Returns:
- the workloadType value.
-
withWorkloadType
Set the workloadType property: Type of workload for the backup management.- Parameters:
workloadType
- the workloadType value to set.- Returns:
- the WorkloadItem object itself.
-
friendlyName
Get the friendlyName property: Friendly name of the backup item.- Returns:
- the friendlyName value.
-
withFriendlyName
Set the friendlyName property: Friendly name of the backup item.- Parameters:
friendlyName
- the friendlyName value to set.- Returns:
- the WorkloadItem object itself.
-
protectionState
Get the protectionState property: State of the back up item.- Returns:
- the protectionState value.
-
withProtectionState
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.
-