Class FileContent
java.lang.Object
com.sap.ai.sdk.orchestration.model.FileContent
FileContent
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FileContent.Buildercreate()Create a type-safe, fluent-api builder object to construct a newFileContentinstance with all required arguments.booleanSet the fileData of thisFileContentinstance and return the same instance.Set the filename of thisFileContentinstance and return the same instance.getCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theFileContent.Base64 encoded file content or file URLName of the fileinthashCode()voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisFileContentinstance.voidsetFileData(String fileData) Set the fileData of thisFileContentinstance.voidsetFilename(String filename) Set the filename of thisFileContentinstance.toMap()Get the value of all properties of thisFileContentinstance including unrecognized properties.toString()
-
Constructor Details
-
FileContent
protected FileContent()Default constructor for FileContent.
-
-
Method Details
-
fileData
Set the fileData of thisFileContentinstance and return the same instance.- Parameters:
fileData- Base64 encoded file content or file URL- Returns:
- The same instance of this
FileContentclass
-
getFileData
Base64 encoded file content or file URL- Returns:
- fileData The fileData of this
FileContentinstance.
-
setFileData
Set the fileData of thisFileContentinstance.- Parameters:
fileData- Base64 encoded file content or file URL
-
filename
Set the filename of thisFileContentinstance and return the same instance.- Parameters:
filename- Name of the file- Returns:
- The same instance of this
FileContentclass
-
getFilename
Name of the file- Returns:
- filename The filename of this
FileContentinstance.
-
setFilename
Set the filename of thisFileContentinstance.- Parameters:
filename- Name of the file
-
getCustomFieldNames
Get the names of the unrecognizable properties of theFileContent.- 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 thisFileContentinstance.- 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 thisFileContentinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisFileContentinstance. 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 newFileContentinstance with all required arguments.
-
toMap()instead.