public UpdateFunctionConfigurationResult withKMSKeyArn(String kMSKeyArn) {
        setKMSKeyArn(kMSKeyArn);
        return this;
    }
<p>
The KMS key that's used to encrypt the function's <a
href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption"
>environment variables</a>. When <a
href="https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html">Lambda SnapStart</a> is activated,
this key is also used to encrypt the function's snapshot. This key is returned only if you've configured a
customer managed key.
</p>

@param kMSKeyArn
       The KMS key that's used to encrypt the function's <a href=
       "https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption"
       >environment variables</a>. When <a
       href="https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html">Lambda SnapStart</a> is
       activated, this key is also used to encrypt the function's snapshot. This key is returned only if you've
       configured a customer managed key.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-lambda/src/main/java/com/amazonaws/services/lambda/model/UpdateFunctionConfigurationResult.java