class ResourceDimensions {

    public static ResourceDimension fromServerInfo(ServerInfo serverInfo) {
        return ResourceDimension.newBuilder()
                .withCpus(serverInfo.getCpus())
                .withMemoryMB(serverInfo.getMemoryGB() * 1024)
                .withDiskMB(serverInfo.getStorageGB() * 1024)
                .withNetworkMbs(serverInfo.getNetworkMbs())
                .withGpu(serverInfo.getGpus())
                .build();
    }

}