CreateAsyncResponse Class

  • java.lang.Object
    • com.azure.ai.projects.models.CreateAsyncResponse

Implements

public final class CreateAsyncResponse
implements JsonSerializable<CreateAsyncResponse>

The CreateAsyncResponse model.

Method Summary

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

Reads an instance of CreateAsyncResponse from the JsonReader.

String getLocation()

Get the location property: URL to poll for operation status.

String getOperationResult()

Get the operationResult property: URL to the operation result, or null if the operation is still in progress.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static CreateAsyncResponse fromJson(JsonReader jsonReader)

Reads an instance of CreateAsyncResponse from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CreateAsyncResponse 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 CreateAsyncResponse.

getLocation

public String getLocation()

Get the location property: URL to poll for operation status.

Returns:

the location value.

getOperationResult

public String getOperationResult()

Get the operationResult property: URL to the operation result, or null if the operation is still in progress.

Returns:

the operationResult value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to