Class ChatCompletionRequestMessageContentPartImage
java.lang.Object
com.sap.ai.sdk.foundationmodels.openai.generated.model.ChatCompletionRequestMessageContentPartImage
- All Implemented Interfaces:
ChatCompletionRequestUserMessageContentPart
public class ChatCompletionRequestMessageContentPartImage
extends Object
implements ChatCompletionRequestUserMessageContentPart
ChatCompletionRequestMessageContentPartImage
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe type of the content part. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theChatCompletionRequestMessageContentPartImage.Get imageUrlgetType()The type of the content part.inthashCode()Set the imageUrl of thisChatCompletionRequestMessageContentPartImageinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisChatCompletionRequestMessageContentPartImageinstance.voidSet the imageUrl of thisChatCompletionRequestMessageContentPartImageinstance.voidSet the type of thisChatCompletionRequestMessageContentPartImageinstance.toMap()Get the value of all properties of thisChatCompletionRequestMessageContentPartImageinstance including unrecognized properties.toString()Set the type of thisChatCompletionRequestMessageContentPartImageinstance and return the same instance.
-
Constructor Details
-
ChatCompletionRequestMessageContentPartImage
public ChatCompletionRequestMessageContentPartImage()
-
-
Method Details
-
type
@Nonnull public ChatCompletionRequestMessageContentPartImage type(@Nonnull ChatCompletionRequestMessageContentPartImage.TypeEnum type) Set the type of thisChatCompletionRequestMessageContentPartImageinstance and return the same instance.- Parameters:
type- The type of the content part.- Returns:
- The same instance of this
ChatCompletionRequestMessageContentPartImageclass
-
getType
The type of the content part.- Returns:
- type The type of this
ChatCompletionRequestMessageContentPartImageinstance.
-
setType
Set the type of thisChatCompletionRequestMessageContentPartImageinstance.- Parameters:
type- The type of the content part.
-
imageUrl
@Nonnull public ChatCompletionRequestMessageContentPartImage imageUrl(@Nonnull ChatCompletionRequestMessageContentPartImageImageUrl imageUrl) Set the imageUrl of thisChatCompletionRequestMessageContentPartImageinstance and return the same instance.- Parameters:
imageUrl- The imageUrl of thisChatCompletionRequestMessageContentPartImage- Returns:
- The same instance of this
ChatCompletionRequestMessageContentPartImageclass
-
getImageUrl
Get imageUrl- Returns:
- imageUrl The imageUrl of this
ChatCompletionRequestMessageContentPartImageinstance.
-
setImageUrl
Set the imageUrl of thisChatCompletionRequestMessageContentPartImageinstance.- Parameters:
imageUrl- The imageUrl of thisChatCompletionRequestMessageContentPartImage
-
getCustomFieldNames
Get the names of the unrecognizable properties of theChatCompletionRequestMessageContentPartImage.- 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 thisChatCompletionRequestMessageContentPartImageinstance.- 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 thisChatCompletionRequestMessageContentPartImageinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisChatCompletionRequestMessageContentPartImageinstance. 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
-
toMap()instead.