public NetworkFirewallInvalidRouteConfigurationViolation withExpectedInternetGatewayRoutes(ExpectedRoute... expectedInternetGatewayRoutes) {
        if (this.expectedInternetGatewayRoutes == null) {
            setExpectedInternetGatewayRoutes(new java.util.ArrayList<ExpectedRoute>(expectedInternetGatewayRoutes.length));
        }
        for (ExpectedRoute ele : expectedInternetGatewayRoutes) {
            this.expectedInternetGatewayRoutes.add(ele);
        }
        return this;
    }
<p>
The expected routes for the internet gateway.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setExpectedInternetGatewayRoutes(java.util.Collection)} or
{@link #withExpectedInternetGatewayRoutes(java.util.Collection)} if you want to override the existing values.
</p>

@param expectedInternetGatewayRoutes
       The expected routes for the internet gateway.
@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