public AwsLambdaFunctionDetails withLayers(String... layers) {
        if (this.layers == null) {
            setLayers(new java.util.ArrayList<String>(layers.length));
        }
        for (String ele : layers) {
            this.layers.add(ele);
        }
        return this;
    }
<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>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setLayers(java.util.Collection)} or {@link #withLayers(java.util.Collection)} if you want to override the
existing values.
</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.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-inspector2/src/main/java/com/amazonaws/services/inspector2/model/AwsLambdaFunctionDetails.java