public void setAttachments(java.util.Collection<InternetGatewayAttachment> attachments) {
        if (attachments == null) {
            this.attachments = null;
            return;
        }

        this.attachments = new com.amazonaws.internal.SdkInternalList<InternetGatewayAttachment>(attachments);
    }
<p>
Any VPCs attached to the internet gateway.
</p>

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