Class ComputeInstanceLastOperation
java.lang.Object
com.azure.resourcemanager.machinelearning.models.ComputeInstanceLastOperation
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ComputeInstanceLastOperation>
public final class ComputeInstanceLastOperation
extends Object
implements com.azure.json.JsonSerializable<ComputeInstanceLastOperation>
The last operation on ComputeInstance.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ComputeInstanceLastOperation class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ComputeInstanceLastOperationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ComputeInstanceLastOperation from the JsonReader.Get the operationName property: Name of the last operation.Get the operationStatus property: Operation status.Get the operationTime property: Time of the last operation.Get the operationTrigger property: Trigger of operation.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withOperationName(OperationName operationName) Set the operationName property: Name of the last operation.withOperationStatus(OperationStatus operationStatus) Set the operationStatus property: Operation status.withOperationTime(OffsetDateTime operationTime) Set the operationTime property: Time of the last operation.withOperationTrigger(OperationTrigger operationTrigger) Set the operationTrigger property: Trigger of operation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ComputeInstanceLastOperation
public ComputeInstanceLastOperation()Creates an instance of ComputeInstanceLastOperation class.
-
-
Method Details
-
operationName
Get the operationName property: Name of the last operation.- Returns:
- the operationName value.
-
withOperationName
Set the operationName property: Name of the last operation.- Parameters:
operationName- the operationName value to set.- Returns:
- the ComputeInstanceLastOperation object itself.
-
operationTime
Get the operationTime property: Time of the last operation.- Returns:
- the operationTime value.
-
withOperationTime
Set the operationTime property: Time of the last operation.- Parameters:
operationTime- the operationTime value to set.- Returns:
- the ComputeInstanceLastOperation object itself.
-
operationStatus
Get the operationStatus property: Operation status.- Returns:
- the operationStatus value.
-
withOperationStatus
Set the operationStatus property: Operation status.- Parameters:
operationStatus- the operationStatus value to set.- Returns:
- the ComputeInstanceLastOperation object itself.
-
operationTrigger
Get the operationTrigger property: Trigger of operation.- Returns:
- the operationTrigger value.
-
withOperationTrigger
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ComputeInstanceLastOperation>- Throws:
IOException
-
fromJson
public static ComputeInstanceLastOperation fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ComputeInstanceLastOperation from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ComputeInstanceLastOperation if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ComputeInstanceLastOperation.
-