CodeFileDetails Class

  • java.lang.Object
    • com.azure.ai.agents.models.CodeFileDetails

public final class CodeFileDetails

The file details for the "code" field.

Constructor Summary

Constructor Description
CodeFileDetails(BinaryData content)

Creates an instance of CodeFileDetails class.

CodeFileDetails(String filePath)

Creates an instance of CodeFileDetails class.

Method Summary

Modifier and Type Method and Description
BinaryData getContent()

Get the content property: The content of the file.

String getContentType()

Get the contentType property: The content-type of the file.

String getFilename()

Get the filename property: The filename of the file.

CodeFileDetails setContentType(String contentType)

Set the contentType property: The content-type of the file.

CodeFileDetails 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:

content - the content value to set.

CodeFileDetails

public CodeFileDetails(String filePath)

Creates an instance of CodeFileDetails class.

Parameters:

filePath - path to the file on disk to upload.

Method Details

getContent

public BinaryData getContent()

Get the content property: The content of the file.

Returns:

the content value.

getContentType

public String getContentType()

Get the contentType property: The content-type of the file.

Returns:

the contentType value.

getFilename

public String getFilename()

Get the filename property: The filename of the file.

Returns:

the filename value.

setContentType

public CodeFileDetails setContentType(String contentType)

Set the contentType property: The content-type of the file.

Parameters:

contentType - the contentType value to set.

Returns:

the CodeFileDetails object itself.

setFilename

public CodeFileDetails setFilename(String filename)

Set the filename property: The filename of the file.

Parameters:

filename - the filename value to set.

Returns:

the CodeFileDetails object itself.

Applies to