public CreateFunctionRequest withArchitectures(Architecture... architectures) {
        com.amazonaws.internal.SdkInternalList<String> architecturesCopy = new com.amazonaws.internal.SdkInternalList<String>(architectures.length);
        for (Architecture value : architectures) {
            architecturesCopy.add(value.toString());
        }
        if (getArchitectures() == null) {
            setArchitectures(architecturesCopy);
        } else {
            getArchitectures().addAll(architecturesCopy);
        }
        return this;
    }
<p>
The instruction set architecture that the function supports. Enter a string array with one of the valid values
(arm64 or x86_64). The default value is <code>x86_64</code>.
</p>

@param architectures
       The instruction set architecture that the function supports. Enter a string array with one of the valid
       values (arm64 or x86_64). The default value is <code>x86_64</code>.
@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/CreateFunctionRequest.java