Class MabJobTaskDetails
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.MabJobTaskDetails
-
public final class MabJobTaskDetails extends Object
MAB workload-specific job task details.
-
-
Constructor Summary
Constructors Constructor Description MabJobTaskDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Duration
duration()
Get the duration property: Time elapsed for task.OffsetDateTime
endTime()
Get the endTime property: The end time.OffsetDateTime
startTime()
Get the startTime property: The start time.String
status()
Get the status property: The status.String
taskId()
Get the taskId property: The task display name.void
validate()
Validates the instance.MabJobTaskDetails
withDuration(Duration duration)
Set the duration property: Time elapsed for task.MabJobTaskDetails
withEndTime(OffsetDateTime endTime)
Set the endTime property: The end time.MabJobTaskDetails
withStartTime(OffsetDateTime startTime)
Set the startTime property: The start time.MabJobTaskDetails
withStatus(String status)
Set the status property: The status.MabJobTaskDetails
withTaskId(String taskId)
Set the taskId property: The task display name.
-
-
-
Method Detail
-
taskId
public String taskId()
Get the taskId property: The task display name.- Returns:
- the taskId value.
-
withTaskId
public MabJobTaskDetails withTaskId(String taskId)
Set the taskId property: The task display name.- Parameters:
taskId
- the taskId value to set.- Returns:
- the MabJobTaskDetails object itself.
-
startTime
public OffsetDateTime startTime()
Get the startTime property: The start time.- Returns:
- the startTime value.
-
withStartTime
public MabJobTaskDetails withStartTime(OffsetDateTime startTime)
Set the startTime property: The start time.- Parameters:
startTime
- the startTime value to set.- Returns:
- the MabJobTaskDetails object itself.
-
endTime
public OffsetDateTime endTime()
Get the endTime property: The end time.- Returns:
- the endTime value.
-
withEndTime
public MabJobTaskDetails withEndTime(OffsetDateTime endTime)
Set the endTime property: The end time.- Parameters:
endTime
- the endTime value to set.- Returns:
- the MabJobTaskDetails object itself.
-
duration
public Duration duration()
Get the duration property: Time elapsed for task.- Returns:
- the duration value.
-
withDuration
public MabJobTaskDetails withDuration(Duration duration)
Set the duration property: Time elapsed for task.- Parameters:
duration
- the duration value to set.- Returns:
- the MabJobTaskDetails object itself.
-
status
public String status()
Get the status property: The status.- Returns:
- the status value.
-
withStatus
public MabJobTaskDetails withStatus(String status)
Set the status property: The status.- Parameters:
status
- the status value to set.- Returns:
- the MabJobTaskDetails object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-