public NetworkFirewallInvalidRouteConfigurationViolation withAffectedSubnets(java.util.Collection<String> affectedSubnets) {
        setAffectedSubnets(affectedSubnets);
        return this;
    }
<p>
The subnets that are affected.
</p>

@param affectedSubnets
       The subnets that are affected.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-fms/src/main/java/com/amazonaws/services/fms/model/NetworkFirewallInvalidRouteConfigurationViolation.java