CodeFileDetails Class
- java.
lang. Object - com.
azure. ai. agents. models. CodeFileDetails
- com.
public final class CodeFileDetails
The file details for the "code" field.
Constructor Summary
| Constructor | Description |
|---|---|
| CodeFileDetails(BinaryData content) |
Creates an instance of Code |
| CodeFileDetails(String filePath) |
Creates an instance of Code |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Binary |
getContent()
Get the content property: The content of the file. |
| String |
getContentType()
Get the content |
| String |
getFilename()
Get the filename property: The filename of the file. |
|
Code |
setContentType(String contentType)
Set the content |
|
Code |
setFilename(String filename)
Set the filename property: The filename of the file. |
Methods inherited from java.lang.Object
Constructor Details
CodeFileDetails
public CodeFileDetails(BinaryData content)
Creates an instance of CodeFileDetails class.
Parameters:
CodeFileDetails
public CodeFileDetails(String filePath)
Creates an instance of CodeFileDetails class.
Parameters:
Method Details
getContent
public BinaryData getContent()
Get the content property: The content of the file.
Returns:
getContentType
public String getContentType()
Get the contentType property: The content-type of the file.
Returns:
getFilename
public String getFilename()
Get the filename property: The filename of the file.
Returns:
setContentType
public CodeFileDetails setContentType(String contentType)
Set the contentType property: The content-type of the file.
Parameters:
Returns:
setFilename
public CodeFileDetails setFilename(String filename)
Set the filename property: The filename of the file.
Parameters:
Returns: