Compartir a través de


DataContainer Class

  • java.lang.Object
    • com.azure.resourcemanager.monitor.models.DataContainer

Implements

public final class DataContainer
implements JsonSerializable<DataContainer>

Information about a container with data for a given resource.

Constructor Summary

Constructor Description
DataContainer()

Creates an instance of DataContainer class.

Method Summary

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

Reads an instance of DataContainer from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DataContainer withWorkspace(WorkspaceInfo workspace)

Set the workspace property: Log Analytics workspace information.

WorkspaceInfo workspace()

Get the workspace property: Log Analytics workspace information.

Methods inherited from java.lang.Object

Constructor Details

DataContainer

public DataContainer()

Creates an instance of DataContainer class.

Method Details

fromJson

public static DataContainer fromJson(JsonReader jsonReader)

Reads an instance of DataContainer from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withWorkspace

public DataContainer withWorkspace(WorkspaceInfo workspace)

Set the workspace property: Log Analytics workspace information.

Parameters:

workspace - the workspace value to set.

Returns:

the DataContainer object itself.

workspace

public WorkspaceInfo workspace()

Get the workspace property: Log Analytics workspace information.

Returns:

the workspace value.

Applies to