class ResourceDimensions {

    public static ResourceDimension multiply(ResourceDimension base, double multiplier) {
        return ResourceDimension.newBuilder()
                .withCpus(base.getCpu() * multiplier)
                .withMemoryMB((long) Math.ceil(base.getMemoryMB() * multiplier))
                .withDiskMB((long) Math.ceil(base.getDiskMB() * multiplier))
                .withNetworkMbs((long) Math.ceil(base.getNetworkMbs() * multiplier))
                .withGpu((long) Math.ceil(base.getGpu() * multiplier))
                .withOpportunisticCpus((long) Math.ceil(base.getOpportunisticCpu() * multiplier))
                .build();
    }

}