public static RetryMode fromName(String value) {
        if (value == null) {
            return null;
        }

        for (RetryMode retryMode : RetryMode.values()) {
            if (retryMode.getName().equalsIgnoreCase(value)) {
                return retryMode;
            }
        }

        return null;
    }
Returns a retry mode enum corresponding to the given retryMode name.

@param value The name of the retry mode
@return RetryMode enum representing the given retry mode name.
aws-java-sdk-core/src/main/java/com/amazonaws/retry/RetryMode.java