public InternetGateway withAttachments(java.util.Collection<InternetGatewayAttachment> attachments) {
        setAttachments(attachments);
        return this;
    }
<p>
Any VPCs attached to the internet gateway.
</p>

@param attachments
       Any VPCs attached to the internet gateway.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/InternetGateway.java