Class ComputeInstanceLastOperation
- java.lang.Object
-
- com.azure.resourcemanager.machinelearning.models.ComputeInstanceLastOperation
-
public final class ComputeInstanceLastOperation extends Object
The last operation on ComputeInstance.
-
-
Constructor Summary
Constructors Constructor Description ComputeInstanceLastOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationName
operationName()
Get the operationName property: Name of the last operation.OperationStatus
operationStatus()
Get the operationStatus property: Operation status.OffsetDateTime
operationTime()
Get the operationTime property: Time of the last operation.OperationTrigger
operationTrigger()
Get the operationTrigger property: Trigger of operation.void
validate()
Validates the instance.ComputeInstanceLastOperation
withOperationName(OperationName operationName)
Set the operationName property: Name of the last operation.ComputeInstanceLastOperation
withOperationStatus(OperationStatus operationStatus)
Set the operationStatus property: Operation status.ComputeInstanceLastOperation
withOperationTime(OffsetDateTime operationTime)
Set the operationTime property: Time of the last operation.ComputeInstanceLastOperation
withOperationTrigger(OperationTrigger operationTrigger)
Set the operationTrigger property: Trigger of operation.
-
-
-
Method Detail
-
operationName
public OperationName operationName()
Get the operationName property: Name of the last operation.- Returns:
- the operationName value.
-
withOperationName
public ComputeInstanceLastOperation withOperationName(OperationName operationName)
Set the operationName property: Name of the last operation.- Parameters:
operationName
- the operationName value to set.- Returns:
- the ComputeInstanceLastOperation object itself.
-
operationTime
public OffsetDateTime operationTime()
Get the operationTime property: Time of the last operation.- Returns:
- the operationTime value.
-
withOperationTime
public ComputeInstanceLastOperation withOperationTime(OffsetDateTime operationTime)
Set the operationTime property: Time of the last operation.- Parameters:
operationTime
- the operationTime value to set.- Returns:
- the ComputeInstanceLastOperation object itself.
-
operationStatus
public OperationStatus operationStatus()
Get the operationStatus property: Operation status.- Returns:
- the operationStatus value.
-
withOperationStatus
public ComputeInstanceLastOperation withOperationStatus(OperationStatus operationStatus)
Set the operationStatus property: Operation status.- Parameters:
operationStatus
- the operationStatus value to set.- Returns:
- the ComputeInstanceLastOperation object itself.
-
operationTrigger
public OperationTrigger operationTrigger()
Get the operationTrigger property: Trigger of operation.- Returns:
- the operationTrigger value.
-
withOperationTrigger
public ComputeInstanceLastOperation withOperationTrigger(OperationTrigger operationTrigger)
Set the operationTrigger property: Trigger of operation.- Parameters:
operationTrigger
- the operationTrigger value to set.- Returns:
- the ComputeInstanceLastOperation object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-