Partager via


StreamDeclaration Class

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

Implements

public final class StreamDeclaration
implements JsonSerializable<StreamDeclaration>

Declaration of a custom stream.

Constructor Summary

Constructor Description
StreamDeclaration()

Creates an instance of StreamDeclaration class.

Method Summary

Modifier and Type Method and Description
List<ColumnDefinition> columns()

Get the columns property: List of columns used by data in this stream.

static StreamDeclaration fromJson(JsonReader jsonReader)

Reads an instance of StreamDeclaration from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

StreamDeclaration withColumns(List<ColumnDefinition> columns)

Set the columns property: List of columns used by data in this stream.

Methods inherited from java.lang.Object

Constructor Details

StreamDeclaration

public StreamDeclaration()

Creates an instance of StreamDeclaration class.

Method Details

columns

public List columns()

Get the columns property: List of columns used by data in this stream.

Returns:

the columns value.

fromJson

public static StreamDeclaration fromJson(JsonReader jsonReader)

Reads an instance of StreamDeclaration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withColumns

public StreamDeclaration withColumns(List columns)

Set the columns property: List of columns used by data in this stream.

Parameters:

columns - the columns value to set.

Returns:

the StreamDeclaration object itself.

Applies to