Class SchemasTextContent
java.lang.Object
com.sap.ai.sdk.prompt.registry.model.SchemasTextContent
SchemasTextContent
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class.static enumGets or Sets type -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for SchemasTextContent. -
Method Summary
Modifier and TypeMethodDescriptioncacheControl(CacheControl cacheControl) Set the cacheControl of thisSchemasTextContentinstance and return the same instance.static SchemasTextContent.Buildercreate()Create a type-safe, fluent-api builder object to construct a newSchemasTextContentinstance with all required arguments.booleanGet cacheControlgetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theSchemasTextContent.getText()Get textgetType()Get typeinthashCode()voidsetCacheControl(CacheControl cacheControl) Set the cacheControl of thisSchemasTextContentinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisSchemasTextContentinstance.voidSet the text of thisSchemasTextContentinstance.voidSet the type of thisSchemasTextContentinstance.Set the text of thisSchemasTextContentinstance and return the same instance.toMap()Get the value of all properties of thisSchemasTextContentinstance including unrecognized properties.toString()Set the type of thisSchemasTextContentinstance and return the same instance.
-
Constructor Details
-
SchemasTextContent
protected SchemasTextContent()Default constructor for SchemasTextContent.
-
-
Method Details
-
type
Set the type of thisSchemasTextContentinstance and return the same instance.- Parameters:
type- The type of thisSchemasTextContent- Returns:
- The same instance of this
SchemasTextContentclass
-
getType
Get type- Returns:
- type The type of this
SchemasTextContentinstance.
-
setType
Set the type of thisSchemasTextContentinstance.- Parameters:
type- The type of thisSchemasTextContent
-
text
Set the text of thisSchemasTextContentinstance and return the same instance.- Parameters:
text- The text of thisSchemasTextContent- Returns:
- The same instance of this
SchemasTextContentclass
-
getText
Get text- Returns:
- text The text of this
SchemasTextContentinstance.
-
setText
Set the text of thisSchemasTextContentinstance.- Parameters:
text- The text of thisSchemasTextContent
-
cacheControl
Set the cacheControl of thisSchemasTextContentinstance and return the same instance.- Parameters:
cacheControl- The cacheControl of thisSchemasTextContent- Returns:
- The same instance of this
SchemasTextContentclass
-
getCacheControl
Get cacheControl- Returns:
- cacheControl The cacheControl of this
SchemasTextContentinstance.
-
setCacheControl
Set the cacheControl of thisSchemasTextContentinstance.- Parameters:
cacheControl- The cacheControl of thisSchemasTextContent
-
getCustomFieldNames
Get the names of the unrecognizable properties of theSchemasTextContent.- 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 thisSchemasTextContentinstance.- 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 thisSchemasTextContentinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisSchemasTextContentinstance. 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 newSchemasTextContentinstance with all required arguments.
-
toMap()instead.