Class AzureIaaSvmJobV2
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.Job
-
- com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSvmJobV2
-
public final class AzureIaaSvmJobV2 extends Job
Azure IaaS VM workload-specific job object.
-
-
Constructor Summary
Constructors Constructor Description AzureIaaSvmJobV2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<JobSupportedAction>
actionsInfo()
Get the actionsInfo property: Gets or sets the state/actions applicable on this job like cancel/retry.String
containerName()
Get the containerName property: Container name of the entity on which the current job is executing.Duration
duration()
Get the duration property: Time elapsed during the execution of this job.List<AzureIaaSvmErrorInfo>
errorDetails()
Get the errorDetails property: Error details on execution of this job.AzureIaaSvmJobExtendedInfo
extendedInfo()
Get the extendedInfo property: Additional information for this job.void
validate()
Validates the instance.String
virtualMachineVersion()
Get the virtualMachineVersion property: Specifies whether the backup item is a Classic or an Azure Resource Manager VM.AzureIaaSvmJobV2
withActionsInfo(List<JobSupportedAction> actionsInfo)
Set the actionsInfo property: Gets or sets the state/actions applicable on this job like cancel/retry.AzureIaaSvmJobV2
withActivityId(String activityId)
Set the activityId property: ActivityId of job.AzureIaaSvmJobV2
withBackupManagementType(BackupManagementType backupManagementType)
Set the backupManagementType property: Backup management type to execute the current job.AzureIaaSvmJobV2
withContainerName(String containerName)
Set the containerName property: Container name of the entity on which the current job is executing.AzureIaaSvmJobV2
withDuration(Duration duration)
Set the duration property: Time elapsed during the execution of this job.AzureIaaSvmJobV2
withEndTime(OffsetDateTime endTime)
Set the endTime property: The end time.AzureIaaSvmJobV2
withEntityFriendlyName(String entityFriendlyName)
Set the entityFriendlyName property: Friendly name of the entity on which the current job is executing.AzureIaaSvmJobV2
withErrorDetails(List<AzureIaaSvmErrorInfo> errorDetails)
Set the errorDetails property: Error details on execution of this job.AzureIaaSvmJobV2
withExtendedInfo(AzureIaaSvmJobExtendedInfo extendedInfo)
Set the extendedInfo property: Additional information for this job.AzureIaaSvmJobV2
withOperation(String operation)
Set the operation property: The operation name.AzureIaaSvmJobV2
withStartTime(OffsetDateTime startTime)
Set the startTime property: The start time.AzureIaaSvmJobV2
withStatus(String status)
Set the status property: Job status.AzureIaaSvmJobV2
withVirtualMachineVersion(String virtualMachineVersion)
Set the virtualMachineVersion property: Specifies whether the backup item is a Classic or an Azure Resource Manager VM.-
Methods inherited from class com.azure.resourcemanager.recoveryservicesbackup.models.Job
activityId, backupManagementType, endTime, entityFriendlyName, operation, startTime, status
-
-
-
-
Method Detail
-
actionsInfo
public List<JobSupportedAction> actionsInfo()
Get the actionsInfo property: Gets or sets the state/actions applicable on this job like cancel/retry.- Returns:
- the actionsInfo value.
-
withActionsInfo
public AzureIaaSvmJobV2 withActionsInfo(List<JobSupportedAction> actionsInfo)
Set the actionsInfo property: Gets or sets the state/actions applicable on this job like cancel/retry.- Parameters:
actionsInfo
- the actionsInfo value to set.- Returns:
- the AzureIaaSvmJobV2 object itself.
-
containerName
public String containerName()
Get the containerName property: Container name of the entity on which the current job is executing.- Returns:
- the containerName value.
-
withContainerName
public AzureIaaSvmJobV2 withContainerName(String containerName)
Set the containerName property: Container name of the entity on which the current job is executing.- Parameters:
containerName
- the containerName value to set.- Returns:
- the AzureIaaSvmJobV2 object itself.
-
duration
public Duration duration()
Get the duration property: Time elapsed during the execution of this job.- Returns:
- the duration value.
-
withDuration
public AzureIaaSvmJobV2 withDuration(Duration duration)
Set the duration property: Time elapsed during the execution of this job.- Parameters:
duration
- the duration value to set.- Returns:
- the AzureIaaSvmJobV2 object itself.
-
errorDetails
public List<AzureIaaSvmErrorInfo> errorDetails()
Get the errorDetails property: Error details on execution of this job.- Returns:
- the errorDetails value.
-
withErrorDetails
public AzureIaaSvmJobV2 withErrorDetails(List<AzureIaaSvmErrorInfo> errorDetails)
Set the errorDetails property: Error details on execution of this job.- Parameters:
errorDetails
- the errorDetails value to set.- Returns:
- the AzureIaaSvmJobV2 object itself.
-
virtualMachineVersion
public String virtualMachineVersion()
Get the virtualMachineVersion property: Specifies whether the backup item is a Classic or an Azure Resource Manager VM.- Returns:
- the virtualMachineVersion value.
-
withVirtualMachineVersion
public AzureIaaSvmJobV2 withVirtualMachineVersion(String virtualMachineVersion)
Set the virtualMachineVersion property: Specifies whether the backup item is a Classic or an Azure Resource Manager VM.- Parameters:
virtualMachineVersion
- the virtualMachineVersion value to set.- Returns:
- the AzureIaaSvmJobV2 object itself.
-
extendedInfo
public AzureIaaSvmJobExtendedInfo extendedInfo()
Get the extendedInfo property: Additional information for this job.- Returns:
- the extendedInfo value.
-
withExtendedInfo
public AzureIaaSvmJobV2 withExtendedInfo(AzureIaaSvmJobExtendedInfo extendedInfo)
Set the extendedInfo property: Additional information for this job.- Parameters:
extendedInfo
- the extendedInfo value to set.- Returns:
- the AzureIaaSvmJobV2 object itself.
-
withEntityFriendlyName
public AzureIaaSvmJobV2 withEntityFriendlyName(String entityFriendlyName)
Set the entityFriendlyName property: Friendly name of the entity on which the current job is executing.- Overrides:
withEntityFriendlyName
in classJob
- Parameters:
entityFriendlyName
- the entityFriendlyName value to set.- Returns:
- the Job object itself.
-
withBackupManagementType
public AzureIaaSvmJobV2 withBackupManagementType(BackupManagementType backupManagementType)
Set the backupManagementType property: Backup management type to execute the current job.- Overrides:
withBackupManagementType
in classJob
- Parameters:
backupManagementType
- the backupManagementType value to set.- Returns:
- the Job object itself.
-
withOperation
public AzureIaaSvmJobV2 withOperation(String operation)
Set the operation property: The operation name.- Overrides:
withOperation
in classJob
- Parameters:
operation
- the operation value to set.- Returns:
- the Job object itself.
-
withStatus
public AzureIaaSvmJobV2 withStatus(String status)
Set the status property: Job status.- Overrides:
withStatus
in classJob
- Parameters:
status
- the status value to set.- Returns:
- the Job object itself.
-
withStartTime
public AzureIaaSvmJobV2 withStartTime(OffsetDateTime startTime)
Set the startTime property: The start time.- Overrides:
withStartTime
in classJob
- Parameters:
startTime
- the startTime value to set.- Returns:
- the Job object itself.
-
withEndTime
public AzureIaaSvmJobV2 withEndTime(OffsetDateTime endTime)
Set the endTime property: The end time.- Overrides:
withEndTime
in classJob
- Parameters:
endTime
- the endTime value to set.- Returns:
- the Job object itself.
-
withActivityId
public AzureIaaSvmJobV2 withActivityId(String activityId)
Set the activityId property: ActivityId of job.- Overrides:
withActivityId
in classJob
- Parameters:
activityId
- the activityId value to set.- Returns:
- the Job object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classJob
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-