Class Image.Builder
-
- All Implemented Interfaces:
public final class Image.Builder
A builder for Image.
-
-
Method Summary
Modifier and Type Method Description final Image.Builder
b64Json(String b64Json)
The base64-encoded JSON of the generated image, if response_format
isb64_json
.final Image.Builder
b64Json(JsonField<String> b64Json)
Sets Builder.b64Json to an arbitrary JSON value. final Image.Builder
revisedPrompt(String revisedPrompt)
The prompt that was used to generate the image, if there was any revision to the prompt. final Image.Builder
revisedPrompt(JsonField<String> revisedPrompt)
Sets Builder.revisedPrompt to an arbitrary JSON value. final Image.Builder
url(String url)
The URL of the generated image, if response_format
isurl
(default).final Image.Builder
url(JsonField<String> url)
Sets Builder.url to an arbitrary JSON value. final Image.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final Image.Builder
putAdditionalProperty(String key, JsonValue value)
final Image.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final Image.Builder
removeAdditionalProperty(String key)
final Image.Builder
removeAllAdditionalProperties(Set<String> keys)
final Image
build()
Returns an immutable instance of Image. -
-
Method Detail
-
b64Json
final Image.Builder b64Json(String b64Json)
The base64-encoded JSON of the generated image, if
response_format
isb64_json
.
-
b64Json
final Image.Builder b64Json(JsonField<String> b64Json)
Sets Builder.b64Json to an arbitrary JSON value.
You should usually call Builder.b64Json with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
revisedPrompt
final Image.Builder revisedPrompt(String revisedPrompt)
The prompt that was used to generate the image, if there was any revision to the prompt.
-
revisedPrompt
final Image.Builder revisedPrompt(JsonField<String> revisedPrompt)
Sets Builder.revisedPrompt to an arbitrary JSON value.
You should usually call Builder.revisedPrompt with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
url
final Image.Builder url(String url)
The URL of the generated image, if
response_format
isurl
(default).
-
url
final Image.Builder url(JsonField<String> url)
Sets Builder.url to an arbitrary JSON value.
You should usually call Builder.url with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final Image.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final Image.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final Image.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final Image.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final Image.Builder removeAllAdditionalProperties(Set<String> keys)
-
-
-
-