Package com.exoscale.sdk.model
Enum JsonSchemaKafka.CompressionTypeEnum
- java.lang.Object
-
- java.lang.Enum<JsonSchemaKafka.CompressionTypeEnum>
-
- com.exoscale.sdk.model.JsonSchemaKafka.CompressionTypeEnum
-
- All Implemented Interfaces:
Serializable
,Comparable<JsonSchemaKafka.CompressionTypeEnum>
- Enclosing class:
- JsonSchemaKafka
public static enum JsonSchemaKafka.CompressionTypeEnum extends Enum<JsonSchemaKafka.CompressionTypeEnum>
Specify the final compression type for a given topic. This configuration accepts the standard compression codecs ('gzip', 'snappy', 'lz4', 'zstd'). It additionally accepts 'uncompressed' which is equivalent to no compression; and 'producer' which means retain the original compression codec set by the producer.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JsonSchemaKafka.CompressionTypeEnum
fromValue(String value)
String
getValue()
String
toString()
static JsonSchemaKafka.CompressionTypeEnum
valueOf(String name)
Returns the enum constant of this type with the specified name.static JsonSchemaKafka.CompressionTypeEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GZIP
public static final JsonSchemaKafka.CompressionTypeEnum GZIP
-
SNAPPY
public static final JsonSchemaKafka.CompressionTypeEnum SNAPPY
-
LZ4
public static final JsonSchemaKafka.CompressionTypeEnum LZ4
-
ZSTD
public static final JsonSchemaKafka.CompressionTypeEnum ZSTD
-
UNCOMPRESSED
public static final JsonSchemaKafka.CompressionTypeEnum UNCOMPRESSED
-
PRODUCER
public static final JsonSchemaKafka.CompressionTypeEnum PRODUCER
-
-
Method Detail
-
values
public static JsonSchemaKafka.CompressionTypeEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (JsonSchemaKafka.CompressionTypeEnum c : JsonSchemaKafka.CompressionTypeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JsonSchemaKafka.CompressionTypeEnum valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public String getValue()
-
toString
public String toString()
- Overrides:
toString
in classEnum<JsonSchemaKafka.CompressionTypeEnum>
-
fromValue
public static JsonSchemaKafka.CompressionTypeEnum fromValue(String value)
-
-