Aracılığıyla paylaş


ImageGenerations Class

  • java.lang.Object
    • com.azure.ai.openai.models.ImageGenerations

Implements

public final class ImageGenerations
implements JsonSerializable<ImageGenerations>

The result of a successful image generation operation.

Method Summary

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

Reads an instance of ImageGenerations from the JsonReader.

OffsetDateTime getCreatedAt()

Get the createdAt property: A timestamp representing when this operation was started.

List<ImageGenerationData> getData()

Get the data property: The images generated by the operation.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static ImageGenerations fromJson(JsonReader jsonReader)

Reads an instance of ImageGenerations from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ImageGenerations if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getCreatedAt

public OffsetDateTime getCreatedAt()

Get the createdAt property: A timestamp representing when this operation was started. Expressed in seconds since the Unix epoch of 1970-01-01T00:00:00+0000.

Returns:

the createdAt value.

getData

public List getData()

Get the data property: The images generated by the operation.

Returns:

the data value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to