Delen via


NotebookResource Class

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

Implements

public final class NotebookResource
implements JsonSerializable<NotebookResource>

Notebook resource type.

Constructor Summary

Constructor Description
NotebookResource()

Creates an instance of NotebookResource class.

Method Summary

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

Reads an instance of NotebookResource from the JsonReader.

String getEtag()

Get the etag property: Resource Etag.

String getId()

Get the id property: Fully qualified resource Id for the resource.

String getName()

Get the name property: The name of the resource.

Notebook getProperties()

Get the properties property: Properties of Notebook.

String getType()

Get the type property: The type of the resource.

NotebookResource setName(String name)

Set the name property: The name of the resource.

NotebookResource setProperties(Notebook properties)

Set the properties property: Properties of Notebook.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

NotebookResource

public NotebookResource()

Creates an instance of NotebookResource class.

Method Details

fromJson

public static NotebookResource fromJson(JsonReader jsonReader)

Reads an instance of NotebookResource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of NotebookResource 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.

getEtag

public String getEtag()

Get the etag property: Resource Etag.

Returns:

the etag value.

getId

public String getId()

Get the id property: Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

Returns:

the id value.

getName

public String getName()

Get the name property: The name of the resource.

Returns:

the name value.

getProperties

public Notebook getProperties()

Get the properties property: Properties of Notebook.

Returns:

the properties value.

getType

public String getType()

Get the type property: The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.

Returns:

the type value.

setName

public NotebookResource setName(String name)

Set the name property: The name of the resource.

Parameters:

name - the name value to set.

Returns:

the NotebookResource object itself.

setProperties

public NotebookResource setProperties(Notebook properties)

Set the properties property: Properties of Notebook.

Parameters:

properties - the properties value to set.

Returns:

the NotebookResource object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to