Class ResponseFormatText
java.lang.Object
com.sap.ai.sdk.orchestration.model.ResponseFormatText
- All Implemented Interfaces:
TemplateResponseFormat
ResponseFormatText
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static enumThe type of response format being defined: `text` -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for ResponseFormatText. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResponseFormatText.Buildercreate()Create a type-safe, fluent-api builder object to construct a newResponseFormatTextinstance with all required arguments.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theResponseFormatText.getType()The type of response format being defined: `text`inthashCode()voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisResponseFormatTextinstance.voidSet the type of thisResponseFormatTextinstance.toMap()Get the value of all properties of thisResponseFormatTextinstance including unrecognized properties.toString()Set the type of thisResponseFormatTextinstance and return the same instance.
-
Constructor Details
-
ResponseFormatText
protected ResponseFormatText()Default constructor for ResponseFormatText.
-
-
Method Details
-
type
Set the type of thisResponseFormatTextinstance and return the same instance.- Parameters:
type- The type of response format being defined: `text`- Returns:
- The same instance of this
ResponseFormatTextclass
-
getType
The type of response format being defined: `text`- Returns:
- type The type of this
ResponseFormatTextinstance.
-
setType
Set the type of thisResponseFormatTextinstance.- Parameters:
type- The type of response format being defined: `text`
-
getCustomFieldNames
Get the names of the unrecognizable properties of theResponseFormatText.- 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 thisResponseFormatTextinstance.- 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 thisResponseFormatTextinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisResponseFormatTextinstance. 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 newResponseFormatTextinstance with all required arguments.
-
toMap()instead.