code: public static InstanceInfo of(
        InstanceId instanceId,
        MachineTypeId machineType,
        AttachedDisk disk,
        NetworkInterface networkInterface) {
      return newBuilder(instanceId, machineType)
          .setAttachedDisks(ImmutableList.of(disk))
          .setNetworkInterfaces(ImmutableList.of(networkInterface))
          .build();
    }
docs: Returns an {@code InstanceInfo} object given the instance identity, the machine type, a disk to
  attach to the instance and a network interface. {@code disk} must be a boot disk (i.e. {@link
  AttachedDisk.AttachedDiskConfiguration#boot()} returns {@code true}).