You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: change-java-runtime.rs
    path of file: ./repos/aws-sdk-rust/examples/examples/lambda/src/bin
    
    the code of the file until where you have to start completion: // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

#![allow(clippy::result_large_err)]

use aws_sdk_lambda::types::Runtime;
use aws_sdk_lambda::{Client, Error};
use clap::Parser;
use lambda_code_examples::{make_client, ArnOpt};

// Change Java runtime in Lambda function.
// snippet-start:[lambda.rust.change-java-runtime]
async fn set_runtimes(client: &Client, arn: &str) -> Result<(), Error> {
    // Get function's runtime
    let resp = client.list_functions().send().await?;

    for function in resp.functions.unwrap_or_default() {
        // We only change the runtime for the specified function.
        if arn == function.function_arn.unwrap() {
            let rt = function.runtime.unwrap();
            // We only change the Java runtime.
            if [Runtime::Java11, Runtime::Java8].contains(&rt) {
                // Change it to Java8a12 (Corretto).
                println!("Original runtime: {:?}", rt);
                let 
    
async fn set_runtimes(client: &Client, arn: &str) -> Result<(), Error> {
    // Get function's runtime
    let resp = client.list_functions().send().await?;

    for function in resp.functions.unwrap_or_default() {
        // We only change the runtime for the specified function.
        if arn == function.function_arn.unwrap() {
            let rt = function.runtime.unwrap();
            // We only change the Java runtime.
            if [Runtime::Java11, Runtime::Java8].contains(&rt) {
                // Change it to Java8a12 (Corretto).
                println!("Original runtime: {:?}", rt);
                let result = client
                    .update_function_configuration()
                    .function_name(function.function_name.unwrap())
                    .runtime(Runtime::Java8al2)
                    .send()
                    .await?;

                let result_rt = result.runtime.unwrap();
                println!("New runtime: {:?}", result_rt);
            }
        }
    }

    Ok(())
}