CsvSerializationProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.streamanalytics.fluent.models.CsvSerializationProperties

Implements

public final class CsvSerializationProperties
implements JsonSerializable<CsvSerializationProperties>

The properties that are associated with the CSV serialization type.

Constructor Summary

Constructor Description
CsvSerializationProperties()

Creates an instance of CsvSerializationProperties class.

Method Summary

Modifier and Type Method and Description
Encoding encoding()

Get the encoding property: Specifies the encoding of the incoming data in the case of input and the encoding of outgoing data in the case of output.

String fieldDelimiter()

Get the fieldDelimiter property: Specifies the delimiter that will be used to separate comma-separated value (CSV) records.

static CsvSerializationProperties fromJson(JsonReader jsonReader)

Reads an instance of CsvSerializationProperties from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CsvSerializationProperties withEncoding(Encoding encoding)

Set the encoding property: Specifies the encoding of the incoming data in the case of input and the encoding of outgoing data in the case of output.

CsvSerializationProperties withFieldDelimiter(String fieldDelimiter)

Set the fieldDelimiter property: Specifies the delimiter that will be used to separate comma-separated value (CSV) records.

Methods inherited from java.lang.Object

Constructor Details

CsvSerializationProperties

public CsvSerializationProperties()

Creates an instance of CsvSerializationProperties class.

Method Details

encoding

public Encoding encoding()

Get the encoding property: Specifies the encoding of the incoming data in the case of input and the encoding of outgoing data in the case of output. Required on PUT (CreateOrReplace) requests.

Returns:

the encoding value.

fieldDelimiter

public String fieldDelimiter()

Get the fieldDelimiter property: Specifies the delimiter that will be used to separate comma-separated value (CSV) records. See https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-input or https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output for a list of supported values. Required on PUT (CreateOrReplace) requests.

Returns:

the fieldDelimiter value.

fromJson

public static CsvSerializationProperties fromJson(JsonReader jsonReader)

Reads an instance of CsvSerializationProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEncoding

public CsvSerializationProperties withEncoding(Encoding encoding)

Set the encoding property: Specifies the encoding of the incoming data in the case of input and the encoding of outgoing data in the case of output. Required on PUT (CreateOrReplace) requests.

Parameters:

encoding - the encoding value to set.

Returns:

the CsvSerializationProperties object itself.

withFieldDelimiter

public CsvSerializationProperties withFieldDelimiter(String fieldDelimiter)

Set the fieldDelimiter property: Specifies the delimiter that will be used to separate comma-separated value (CSV) records. See https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-input or https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output for a list of supported values. Required on PUT (CreateOrReplace) requests.

Parameters:

fieldDelimiter - the fieldDelimiter value to set.

Returns:

the CsvSerializationProperties object itself.

Applies to