Class ImageContent
java.lang.Object
com.sap.ai.sdk.prompt.registry.model.ImageContent
- All Implemented Interfaces:
MultiChatContent
ImageContent
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class.static enumGets or Sets type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageContent.Buildercreate()Create a type-safe, fluent-api builder object to construct a newImageContentinstance with all required arguments.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theImageContent.Get imageUrlgetType()Get typeinthashCode()imageUrl(ImageContentImageUrl imageUrl) Set the imageUrl of thisImageContentinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisImageContentinstance.voidsetImageUrl(ImageContentImageUrl imageUrl) Set the imageUrl of thisImageContentinstance.voidsetType(ImageContent.TypeEnum type) Set the type of thisImageContentinstance.toMap()Get the value of all properties of thisImageContentinstance including unrecognized properties.toString()type(ImageContent.TypeEnum type) Set the type of thisImageContentinstance and return the same instance.
-
Constructor Details
-
ImageContent
protected ImageContent()Default constructor for ImageContent.
-
-
Method Details
-
type
Set the type of thisImageContentinstance and return the same instance.- Parameters:
type- The type of thisImageContent- Returns:
- The same instance of this
ImageContentclass
-
getType
Get type- Returns:
- type The type of this
ImageContentinstance.
-
setType
Set the type of thisImageContentinstance.- Parameters:
type- The type of thisImageContent
-
imageUrl
Set the imageUrl of thisImageContentinstance and return the same instance.- Parameters:
imageUrl- The imageUrl of thisImageContent- Returns:
- The same instance of this
ImageContentclass
-
getImageUrl
Get imageUrl- Returns:
- imageUrl The imageUrl of this
ImageContentinstance.
-
setImageUrl
Set the imageUrl of thisImageContentinstance.- Parameters:
imageUrl- The imageUrl of thisImageContent
-
getCustomFieldNames
Get the names of the unrecognizable properties of theImageContent.- Returns:
- The set of properties names
-
getCustomField
@Nullable @Deprecated public Object getCustomField(@Nonnull String name) throws NoSuchElementException Deprecated.UsetoMap()instead.Get the value of an unrecognizable property of thisImageContentinstance.- Parameters:
name- The name of the property- Returns:
- The value of the property
- Throws:
NoSuchElementException- If no property with the given name could be found.
-
toMap
Get the value of all properties of thisImageContentinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisImageContentinstance. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
customFieldName- The name of the propertycustomFieldValue- The value of the property
-
equals
-
hashCode
public int hashCode() -
toString
-
create
Create a type-safe, fluent-api builder object to construct a newImageContentinstance with all required arguments.
-
toMap()instead.