public PublishLayerVersionRequest withCompatibleArchitectures(Architecture... compatibleArchitectures) {
        com.amazonaws.internal.SdkInternalList<String> compatibleArchitecturesCopy = new com.amazonaws.internal.SdkInternalList<String>(
                compatibleArchitectures.length);
        for (Architecture value : compatibleArchitectures) {
            compatibleArchitecturesCopy.add(value.toString());
        }
        if (getCompatibleArchitectures() == null) {
            setCompatibleArchitectures(compatibleArchitecturesCopy);
        } else {
            getCompatibleArchitectures().addAll(compatibleArchitecturesCopy);
        }
        return this;
    }
<p>
A list of compatible <a href="https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html">instruction set
architectures</a>.
</p>

@param compatibleArchitectures
       A list of compatible <a
       href="https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html">instruction set
       architectures</a>.
@return Returns a reference to this object so that method calls can be chained together.
@see Architecture
aws-java-sdk-lambda/src/main/java/com/amazonaws/services/lambda/model/PublishLayerVersionRequest.java