Freigeben über


Compression Class

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

Implements

public final class Compression
implements JsonSerializable<Compression>

Describes how input data is compressed.

Constructor Summary

Constructor Description
Compression()

Creates an instance of Compression class.

Method Summary

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

Reads an instance of Compression from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
CompressionType type()

Get the type property: Indicates the type of compression that the input uses.

void validate()

Validates the instance.

Compression withType(CompressionType type)

Set the type property: Indicates the type of compression that the input uses.

Methods inherited from java.lang.Object

Constructor Details

Compression

public Compression()

Creates an instance of Compression class.

Method Details

fromJson

public static Compression fromJson(JsonReader jsonReader)

Reads an instance of Compression from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of Compression 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:

type

public CompressionType type()

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

Returns:

the type value.

validate

public void validate()

Validates the instance.

withType

public Compression withType(CompressionType type)

Set the type property: Indicates the type of compression that the input uses. Required on PUT (CreateOrReplace) requests.

Parameters:

type - the type value to set.

Returns:

the Compression object itself.

Applies to