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

        for (AccountIdEndpointMode accountIdEndpointMode : AccountIdEndpointMode.values()) {
            if (accountIdEndpointMode.getName().equalsIgnoreCase(value)) {
                return accountIdEndpointMode;
            }
        }

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

@param value The name of the accountEndpointId mode
@return AccountEndpointIdMode enum representing the given accountEndpointId mode name.
aws-java-sdk-core/src/main/java/com/amazonaws/endpoints/AccountIdEndpointMode.java