Share via


NotebookCell Class

  • java.lang.Object
    • com.azure.analytics.synapse.artifacts.models.NotebookCell

Implements

public final class NotebookCell
implements JsonSerializable<NotebookCell>

Notebook cell.

Constructor Summary

Constructor Description
NotebookCell()

Creates an instance of NotebookCell class.

Method Summary

Modifier and Type Method and Description
static NotebookCell fromJson(JsonReader jsonReader)

Reads an instance of NotebookCell from the JsonReader.

Map<String,Object> getAdditionalProperties()

Get the additionalProperties property: Notebook cell.

Object getAttachments()

Get the attachments property: Attachments associated with the cell.

String getCellType()

Get the cellType property: String identifying the type of cell.

Object getMetadata()

Get the metadata property: Cell-level metadata.

List<NotebookCellOutputItem> getOutputs()

Get the outputs property: Cell-level output items.

List<String> getSource()

Get the source property: Contents of the cell, represented as an array of lines.

NotebookCell setAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: Notebook cell.

NotebookCell setAttachments(Object attachments)

Set the attachments property: Attachments associated with the cell.

NotebookCell setCellType(String cellType)

Set the cellType property: String identifying the type of cell.

NotebookCell setMetadata(Object metadata)

Set the metadata property: Cell-level metadata.

NotebookCell setOutputs(List<NotebookCellOutputItem> outputs)

Set the outputs property: Cell-level output items.

NotebookCell setSource(List<String> source)

Set the source property: Contents of the cell, represented as an array of lines.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

NotebookCell

public NotebookCell()

Creates an instance of NotebookCell class.

Method Details

fromJson

public static NotebookCell fromJson(JsonReader jsonReader)

Reads an instance of NotebookCell from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of NotebookCell if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getAdditionalProperties

public Map<String,Object> getAdditionalProperties()

Get the additionalProperties property: Notebook cell.

Returns:

the additionalProperties value.

getAttachments

public Object getAttachments()

Get the attachments property: Attachments associated with the cell.

Returns:

the attachments value.

getCellType

public String getCellType()

Get the cellType property: String identifying the type of cell.

Returns:

the cellType value.

getMetadata

public Object getMetadata()

Get the metadata property: Cell-level metadata.

Returns:

the metadata value.

getOutputs

public List<NotebookCellOutputItem> getOutputs()

Get the outputs property: Cell-level output items.

Returns:

the outputs value.

getSource

public List<String> getSource()

Get the source property: Contents of the cell, represented as an array of lines.

Returns:

the source value.

setAdditionalProperties

public NotebookCell setAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: Notebook cell.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the NotebookCell object itself.

setAttachments

public NotebookCell setAttachments(Object attachments)

Set the attachments property: Attachments associated with the cell.

Parameters:

attachments - the attachments value to set.

Returns:

the NotebookCell object itself.

setCellType

public NotebookCell setCellType(String cellType)

Set the cellType property: String identifying the type of cell.

Parameters:

cellType - the cellType value to set.

Returns:

the NotebookCell object itself.

setMetadata

public NotebookCell setMetadata(Object metadata)

Set the metadata property: Cell-level metadata.

Parameters:

metadata - the metadata value to set.

Returns:

the NotebookCell object itself.

setOutputs

public NotebookCell setOutputs(List<NotebookCellOutputItem> outputs)

Set the outputs property: Cell-level output items.

Parameters:

outputs - the outputs value to set.

Returns:

the NotebookCell object itself.

setSource

public NotebookCell setSource(List<String> source)

Set the source property: Contents of the cell, represented as an array of lines.

Parameters:

source - the source value to set.

Returns:

the NotebookCell object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to