Delen via


NotebookMetadata Class

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

Implements

public final class NotebookMetadata
implements JsonSerializable<NotebookMetadata>

Notebook root-level metadata.

Constructor Summary

Constructor Description
NotebookMetadata()

Creates an instance of NotebookMetadata class.

Method Summary

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

Reads an instance of NotebookMetadata from the JsonReader.

Map<String,Object> getAdditionalProperties()

Get the additionalProperties property: Notebook root-level metadata.

NotebookKernelSpec getKernelspec()

Get the kernelspec property: Kernel information.

NotebookLanguageInfo getLanguageInfo()

Get the languageInfo property: Language info.

NotebookMetadata setAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: Notebook root-level metadata.

NotebookMetadata setKernelspec(NotebookKernelSpec kernelspec)

Set the kernelspec property: Kernel information.

NotebookMetadata setLanguageInfo(NotebookLanguageInfo languageInfo)

Set the languageInfo property: Language info.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

NotebookMetadata

public NotebookMetadata()

Creates an instance of NotebookMetadata class.

Method Details

fromJson

public static NotebookMetadata fromJson(JsonReader jsonReader)

Reads an instance of NotebookMetadata from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the NotebookMetadata.

getAdditionalProperties

public Map<String,Object> getAdditionalProperties()

Get the additionalProperties property: Notebook root-level metadata.

Returns:

the additionalProperties value.

getKernelspec

public NotebookKernelSpec getKernelspec()

Get the kernelspec property: Kernel information.

Returns:

the kernelspec value.

getLanguageInfo

public NotebookLanguageInfo getLanguageInfo()

Get the languageInfo property: Language info.

Returns:

the languageInfo value.

setAdditionalProperties

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

Set the additionalProperties property: Notebook root-level metadata.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the NotebookMetadata object itself.

setKernelspec

public NotebookMetadata setKernelspec(NotebookKernelSpec kernelspec)

Set the kernelspec property: Kernel information.

Parameters:

kernelspec - the kernelspec value to set.

Returns:

the NotebookMetadata object itself.

setLanguageInfo

public NotebookMetadata setLanguageInfo(NotebookLanguageInfo languageInfo)

Set the languageInfo property: Language info.

Parameters:

languageInfo - the languageInfo value to set.

Returns:

the NotebookMetadata object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to