Class CsvSerialization
- java.lang.Object
-
- com.azure.resourcemanager.streamanalytics.models.Serialization
-
- com.azure.resourcemanager.streamanalytics.models.CsvSerialization
-
public final class CsvSerialization extends Serialization
Describes how data from an input is serialized or how data is serialized when written to an output in CSV format.
-
-
Constructor Summary
Constructors Constructor Description CsvSerialization()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.void
validate()
Validates the instance.CsvSerialization
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.CsvSerialization
withFieldDelimiter(String fieldDelimiter)
Set the fieldDelimiter property: Specifies the delimiter that will be used to separate comma-separated value (CSV) records.
-
-
-
Method Detail
-
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.
-
withFieldDelimiter
public CsvSerialization 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 CsvSerialization object itself.
-
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.
-
withEncoding
public CsvSerialization 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 CsvSerialization object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classSerialization
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-