public void setLayers(java.util.Collection<String> layers) {
        if (layers == null) {
            this.layers = null;
            return;
        }

        this.layers = new java.util.ArrayList<String>(layers);
    }
<p>
The Amazon Web Services Lambda function's <a
href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html"> layers</a>. A Lambda function can
have up to five layers.
</p>

@param layers
       The Amazon Web Services Lambda function's <a
       href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html"> layers</a>. A Lambda
       function can have up to five layers.
aws-java-sdk-inspector2/src/main/java/com/amazonaws/services/inspector2/model/AwsLambdaFunctionDetails.java