Enum ExtractNewDocumentState.ArrayEncoding
- java.lang.Object
-
- java.lang.Enum<ExtractNewDocumentState.ArrayEncoding>
-
- io.debezium.connector.mongodb.transforms.ExtractNewDocumentState.ArrayEncoding
-
- All Implemented Interfaces:
EnumeratedValue,Serializable,Comparable<ExtractNewDocumentState.ArrayEncoding>
- Enclosing class:
- ExtractNewDocumentState<R extends org.apache.kafka.connect.connector.ConnectRecord<R>>
public static enum ExtractNewDocumentState.ArrayEncoding extends Enum<ExtractNewDocumentState.ArrayEncoding> implements EnumeratedValue
-
-
Constructor Summary
Constructors Modifier Constructor Description privateArrayEncoding(String value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetValue()static ExtractNewDocumentState.ArrayEncodingparse(String value)Determine if the supplied value is one of the predefined options.static ExtractNewDocumentState.ArrayEncodingparse(String value, String defaultValue)Determine if the supplied value is one of the predefined options.static ExtractNewDocumentState.ArrayEncodingvalueOf(String name)Returns the enum constant of this type with the specified name.static ExtractNewDocumentState.ArrayEncoding[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ARRAY
public static final ExtractNewDocumentState.ArrayEncoding ARRAY
-
DOCUMENT
public static final ExtractNewDocumentState.ArrayEncoding DOCUMENT
-
-
Field Detail
-
value
private final String value
-
-
Constructor Detail
-
ArrayEncoding
private ArrayEncoding(String value)
-
-
Method Detail
-
values
public static ExtractNewDocumentState.ArrayEncoding[] 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 (ExtractNewDocumentState.ArrayEncoding c : ExtractNewDocumentState.ArrayEncoding.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExtractNewDocumentState.ArrayEncoding 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()
- Specified by:
getValuein interfaceEnumeratedValue
-
parse
public static ExtractNewDocumentState.ArrayEncoding parse(String value)
Determine if the supplied value is one of the predefined options.- Parameters:
value- the configuration property value; may not be null- Returns:
- the matching option, or null if no match is found
-
parse
public static ExtractNewDocumentState.ArrayEncoding parse(String value, String defaultValue)
Determine if the supplied value is one of the predefined options.- Parameters:
value- the configuration property value; may not be nulldefaultValue- the default value; may be null- Returns:
- the matching option, or null if no match is found and the non-null default is invalid
-
-