public java.util.List<InternetGatewayAttachment> getAttachments() {
        if (attachments == null) {
            attachments = new com.amazonaws.internal.SdkInternalList<InternetGatewayAttachment>();
        }
        return attachments;
    }
<p>
Any VPCs attached to the internet gateway.
</p>

@return Any VPCs attached to the internet gateway.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/InternetGateway.java