Serialization Class

  • java.lang.Object
    • com.azure.resourcemanager.streamanalytics.models.Serialization

Implements

public class Serialization
implements JsonSerializable<Serialization>

Describes how data from an input is serialized or how data is serialized when written to an output.

Constructor Summary

Constructor Description
Serialization()

Creates an instance of Serialization class.

Method Summary

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

Reads an instance of Serialization from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
EventSerializationType type()

Get the type property: Indicates the type of serialization that the input or output uses.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

Serialization

public Serialization()

Creates an instance of Serialization class.

Method Details

fromJson

public static Serialization fromJson(JsonReader jsonReader)

Reads an instance of Serialization from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public EventSerializationType type()

Get the type property: Indicates the type of serialization that the input or output uses. Required on PUT (CreateOrReplace) requests.

Returns:

the type value.

validate

public void validate()

Validates the instance.

Applies to