Package com.exoscale.sdk.model
Enum JsonSchemaKafkaRest.ProducerCompressionTypeEnum
- java.lang.Object
-
- java.lang.Enum<JsonSchemaKafkaRest.ProducerCompressionTypeEnum>
-
- com.exoscale.sdk.model.JsonSchemaKafkaRest.ProducerCompressionTypeEnum
-
- All Implemented Interfaces:
Serializable
,Comparable<JsonSchemaKafkaRest.ProducerCompressionTypeEnum>
- Enclosing class:
- JsonSchemaKafkaRest
public static enum JsonSchemaKafkaRest.ProducerCompressionTypeEnum extends Enum<JsonSchemaKafkaRest.ProducerCompressionTypeEnum>
Specify the default compression type for producers. This configuration accepts the standard compression codecs ('gzip', 'snappy', 'lz4', 'zstd'). It additionally accepts 'none' which is the default and equivalent to no compression.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JsonSchemaKafkaRest.ProducerCompressionTypeEnum
fromValue(String value)
String
getValue()
String
toString()
static JsonSchemaKafkaRest.ProducerCompressionTypeEnum
valueOf(String name)
Returns the enum constant of this type with the specified name.static JsonSchemaKafkaRest.ProducerCompressionTypeEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GZIP
public static final JsonSchemaKafkaRest.ProducerCompressionTypeEnum GZIP
-
SNAPPY
public static final JsonSchemaKafkaRest.ProducerCompressionTypeEnum SNAPPY
-
LZ4
public static final JsonSchemaKafkaRest.ProducerCompressionTypeEnum LZ4
-
ZSTD
public static final JsonSchemaKafkaRest.ProducerCompressionTypeEnum ZSTD
-
NONE
public static final JsonSchemaKafkaRest.ProducerCompressionTypeEnum NONE
-
-
Method Detail
-
values
public static JsonSchemaKafkaRest.ProducerCompressionTypeEnum[] 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 (JsonSchemaKafkaRest.ProducerCompressionTypeEnum c : JsonSchemaKafkaRest.ProducerCompressionTypeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JsonSchemaKafkaRest.ProducerCompressionTypeEnum 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<JsonSchemaKafkaRest.ProducerCompressionTypeEnum>
-
fromValue
public static JsonSchemaKafkaRest.ProducerCompressionTypeEnum fromValue(String value)
-
-