public Firewall withSubnetMappings(java.util.Collection<SubnetMapping> subnetMappings) {
        setSubnetMappings(subnetMappings);
        return this;
    }
<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.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-networkfirewall/src/main/java/com/amazonaws/services/networkfirewall/model/Firewall.java