public void setCarrierGateways(java.util.Collection<CarrierGateway> carrierGateways) {
        if (carrierGateways == null) {
            this.carrierGateways = null;
            return;
        }

        this.carrierGateways = new com.amazonaws.internal.SdkInternalList<CarrierGateway>(carrierGateways);
    }
<p>
Information about the carrier gateway.
</p>

@param carrierGateways
       Information about the carrier gateway.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/DescribeCarrierGatewaysResult.java