public void setSubnetMappings(java.util.Collection<SubnetMapping> subnetMappings) {
        if (subnetMappings == null) {
            this.subnetMappings = null;
            return;
        }

        this.subnetMappings = new java.util.ArrayList<SubnetMapping>(subnetMappings);
    }
<p>
The public subnets that Network Firewall is using for the firewall. Each subnet must belong to a different
Availability Zone.
</p>

@param subnetMappings
       The public subnets that Network Firewall is using for the firewall. Each subnet must belong to a different
       Availability Zone.
aws-java-sdk-networkfirewall/src/main/java/com/amazonaws/services/networkfirewall/model/Firewall.java