Package com.openai.models.moderations
Class ModerationImageUrlInput.Builder
-
- All Implemented Interfaces:
public final class ModerationImageUrlInput.Builder
A builder for ModerationImageUrlInput.
-
-
Method Summary
-
-
Method Detail
-
imageUrl
final ModerationImageUrlInput.Builder imageUrl(ModerationImageUrlInput.ImageUrl imageUrl)
Contains either an image URL or a data URL for a base64 encoded image.
-
imageUrl
final ModerationImageUrlInput.Builder imageUrl(JsonField<ModerationImageUrlInput.ImageUrl> imageUrl)
Sets Builder.imageUrl to an arbitrary JSON value.
You should usually call Builder.imageUrl with a well-typed ImageUrl value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final ModerationImageUrlInput.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("image_url")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ModerationImageUrlInput.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ModerationImageUrlInput.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ModerationImageUrlInput.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ModerationImageUrlInput.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ModerationImageUrlInput.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ModerationImageUrlInput build()
Returns an immutable instance of ModerationImageUrlInput.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.imageUrl()
-
-
-
-