Snapshots Class

  • java.lang.Object
    • com.azure.resourcemanager.dashboard.models.Snapshots

Implements

public final class Snapshots
implements JsonSerializable<Snapshots>

Grafana Snapshots settings.

Constructor Summary

Constructor Description
Snapshots()

Creates an instance of Snapshots class.

Method Summary

Modifier and Type Method and Description
Boolean externalEnabled()

Get the externalEnabled property: Set to false to disable external snapshot publish endpoint.

static Snapshots fromJson(JsonReader jsonReader)

Reads an instance of Snapshots from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
Snapshots withExternalEnabled(Boolean externalEnabled)

Set the externalEnabled property: Set to false to disable external snapshot publish endpoint.

Methods inherited from java.lang.Object

Constructor Details

Snapshots

public Snapshots()

Creates an instance of Snapshots class.

Method Details

externalEnabled

public Boolean externalEnabled()

Get the externalEnabled property: Set to false to disable external snapshot publish endpoint.

Returns:

the externalEnabled value.

fromJson

public static Snapshots fromJson(JsonReader jsonReader)

Reads an instance of Snapshots from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withExternalEnabled

public Snapshots withExternalEnabled(Boolean externalEnabled)

Set the externalEnabled property: Set to false to disable external snapshot publish endpoint.

Parameters:

externalEnabled - the externalEnabled value to set.

Returns:

the Snapshots object itself.

Applies to