public static AckEventType of(Values value) {
        if (value == Values.SDK_UNKNOWN) {
            throw new IllegalArgumentException("SDK_UNKNOWN cannot be used to create an AckEventType. Use the raw value to" +
                                               "create an AckEventType from a string instead");
        }
        return value == null ? null : new AckEventType(value, value.toString());
    }
Create a new {@link AckEventType} from an enum value.

@param value String value of the error code.
@return An {@link AckEventType} or null if the value was null.
aws-java-sdk-kinesisvideo/src/main/java/com/amazonaws/services/kinesisvideo/model/AckEventType.java