public PublishLayerVersionRequest withCompatibleRuntimes(Runtime... compatibleRuntimes) {
        com.amazonaws.internal.SdkInternalList<String> compatibleRuntimesCopy = new com.amazonaws.internal.SdkInternalList<String>(compatibleRuntimes.length);
        for (Runtime value : compatibleRuntimes) {
            compatibleRuntimesCopy.add(value.toString());
        }
        if (getCompatibleRuntimes() == null) {
            setCompatibleRuntimes(compatibleRuntimesCopy);
        } else {
            getCompatibleRuntimes().addAll(compatibleRuntimesCopy);
        }
        return this;
    }
<p>
A list of compatible <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html">function
runtimes</a>. Used for filtering with <a>ListLayers</a> and <a>ListLayerVersions</a>.
</p>
<p>
The following list includes deprecated runtimes. For more information, see <a
href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-support-policy">Runtime
deprecation policy</a>.
</p>

@param compatibleRuntimes
       A list of compatible <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html">function
       runtimes</a>. Used for filtering with <a>ListLayers</a> and <a>ListLayerVersions</a>.</p>
       <p>
       The following list includes deprecated runtimes. For more information, see <a
       href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-support-policy">Runtime
       deprecation policy</a>.
@return Returns a reference to this object so that method calls can be chained together.
@see Runtime
aws-java-sdk-lambda/src/main/java/com/amazonaws/services/lambda/model/PublishLayerVersionRequest.java