ComputeInstanceLastOperation Class

  • java.lang.Object
    • com.azure.resourcemanager.machinelearning.models.ComputeInstanceLastOperation

Implements

public final class ComputeInstanceLastOperation
implements JsonSerializable<ComputeInstanceLastOperation>

The last operation on ComputeInstance.

Constructor Summary

Constructor Description
ComputeInstanceLastOperation()

Creates an instance of ComputeInstanceLastOperation class.

Method Summary

Modifier and Type Method and Description
static ComputeInstanceLastOperation fromJson(JsonReader jsonReader)

Reads an instance of ComputeInstanceLastOperation from the JsonReader.

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.

JsonWriter toJson(JsonWriter jsonWriter)
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.

Methods inherited from java.lang.Object

Constructor Details

ComputeInstanceLastOperation

public ComputeInstanceLastOperation()

Creates an instance of ComputeInstanceLastOperation class.

Method Details

fromJson

public static ComputeInstanceLastOperation fromJson(JsonReader jsonReader)

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.

operationName

public OperationName operationName()

Get the operationName property: Name of the last operation.

Returns:

the operationName value.

operationStatus

public OperationStatus operationStatus()

Get the operationStatus property: Operation status.

Returns:

the operationStatus value.

operationTime

public OffsetDateTime operationTime()

Get the operationTime property: Time of the last operation.

Returns:

the operationTime value.

operationTrigger

public OperationTrigger operationTrigger()

Get the operationTrigger property: Trigger of operation.

Returns:

the operationTrigger value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

withOperationStatus

public ComputeInstanceLastOperation withOperationStatus(OperationStatus operationStatus)

Set the operationStatus property: Operation status.

Parameters:

operationStatus - the operationStatus value to set.

Returns:

the ComputeInstanceLastOperation object itself.

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.

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.

Applies to