public PublishLayerVersionRequest withCompatibleArchitectures(String... compatibleArchitectures) {
        if (this.compatibleArchitectures == null) {
            setCompatibleArchitectures(new com.amazonaws.internal.SdkInternalList<String>(compatibleArchitectures.length));
        }
        for (String ele : compatibleArchitectures) {
            this.compatibleArchitectures.add(ele);
        }
        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>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setCompatibleArchitectures(java.util.Collection)} or
{@link #withCompatibleArchitectures(java.util.Collection)} if you want to override the existing values.
</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