Enum DynamoDbWriteRequestType
- java.lang.Object
-
- java.lang.Enum<DynamoDbWriteRequestType>
-
- org.apache.flink.connector.dynamodb.sink.DynamoDbWriteRequestType
-
- All Implemented Interfaces:
Serializable,Comparable<DynamoDbWriteRequestType>
@PublicEvolving public enum DynamoDbWriteRequestType extends Enum<DynamoDbWriteRequestType>
Represents a DynamoDb Write Request type. The following types are currently supported- PUT - Put Request
- DELETE - Delete Request
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DynamoDbWriteRequestTypefromByteValue(byte value)Creates aDynamoDbWriteRequestTypefrom the given byte value.bytetoByteValue()Returns the byte value representation of thisDynamoDbWriteRequestType.static DynamoDbWriteRequestTypevalueOf(String name)Returns the enum constant of this type with the specified name.static DynamoDbWriteRequestType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PUT
public static final DynamoDbWriteRequestType PUT
-
DELETE
public static final DynamoDbWriteRequestType DELETE
-
-
Method Detail
-
values
public static DynamoDbWriteRequestType[] 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 (DynamoDbWriteRequestType c : DynamoDbWriteRequestType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DynamoDbWriteRequestType 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
-
toByteValue
public byte toByteValue()
Returns the byte value representation of thisDynamoDbWriteRequestType. The byte value is used for serialization and deserialization.
-
fromByteValue
public static DynamoDbWriteRequestType fromByteValue(byte value)
Creates aDynamoDbWriteRequestTypefrom the given byte value. EachDynamoDbWriteRequestTypehas a byte value representation.- See Also:
for mapping of byte value and .
-
-