Package com.openai.models.images
Class ImagesResponse.Builder
-
- All Implemented Interfaces:
public final class ImagesResponse.BuilderA builder for ImagesResponse.
-
-
Method Summary
Modifier and Type Method Description final ImagesResponse.Buildercreated(Long created)final ImagesResponse.Buildercreated(JsonField<Long> created)Sets Builder.created to an arbitrary JSON value. final ImagesResponse.Builderdata(List<Image> data)final ImagesResponse.Builderdata(JsonField<List<Image>> data)Sets Builder.data to an arbitrary JSON value. final ImagesResponse.BuilderaddData(Image data)Adds a single Image to Builder.data. final ImagesResponse.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final ImagesResponse.BuilderputAdditionalProperty(String key, JsonValue value)final ImagesResponse.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final ImagesResponse.BuilderremoveAdditionalProperty(String key)final ImagesResponse.BuilderremoveAllAdditionalProperties(Set<String> keys)final ImagesResponsebuild()Returns an immutable instance of ImagesResponse. -
-
Method Detail
-
created
final ImagesResponse.Builder created(Long created)
-
created
final ImagesResponse.Builder created(JsonField<Long> created)
Sets Builder.created to an arbitrary JSON value.
You should usually call Builder.created with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
data
final ImagesResponse.Builder data(List<Image> data)
-
data
final ImagesResponse.Builder data(JsonField<List<Image>> data)
Sets Builder.data to an arbitrary JSON value.
You should usually call Builder.data with a well-typed
List<Image>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addData
final ImagesResponse.Builder addData(Image data)
Adds a single Image to Builder.data.
-
additionalProperties
final ImagesResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ImagesResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ImagesResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ImagesResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ImagesResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ImagesResponse build()
Returns an immutable instance of ImagesResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.created() .data()
-
-
-
-