@Test public void createVMPathTest() throws Exception { final String path = createVMURL(nutanixCreateVMInputs); assertEquals(EXPECTED_CREATE_VM_PATH, path); }
@NotNull public static String createVMURL(NutanixCreateVMInputs nutanixCreateVMInputs) throws Exception { final URIBuilder uriBuilder = getUriBuilder(nutanixCreateVMInputs.getCommonInputs()); StringBuilder pathString = new StringBuilder() .append(API) .append(nutanixCreateVMInputs.getCommonInputs().getAPIVersion()) .append(GET_VM_DETAILS_PATH); uriBuilder.setPath(pathString.toString()); return uriBuilder.build().toURL().toString(); }
VMImpl { @NotNull public static String createVMURL(NutanixCreateVMInputs nutanixCreateVMInputs) throws Exception { final URIBuilder uriBuilder = getUriBuilder(nutanixCreateVMInputs.getCommonInputs()); StringBuilder pathString = new StringBuilder() .append(API) .append(nutanixCreateVMInputs.getCommonInputs().getAPIVersion()) .append(GET_VM_DETAILS_PATH); uriBuilder.setPath(pathString.toString()); return uriBuilder.build().toURL().toString(); } }
VMImpl { @NotNull public static String createVMURL(NutanixCreateVMInputs nutanixCreateVMInputs) throws Exception { final URIBuilder uriBuilder = getUriBuilder(nutanixCreateVMInputs.getCommonInputs()); StringBuilder pathString = new StringBuilder() .append(API) .append(nutanixCreateVMInputs.getCommonInputs().getAPIVersion()) .append(GET_VM_DETAILS_PATH); uriBuilder.setPath(pathString.toString()); return uriBuilder.build().toURL().toString(); }  }
VMImpl { @NotNull public static String createVMURL(NutanixCreateVMInputs nutanixCreateVMInputs) throws Exception { final URIBuilder uriBuilder = getUriBuilder(nutanixCreateVMInputs.getCommonInputs()); StringBuilder pathString = new StringBuilder() .append(API) .append(nutanixCreateVMInputs.getCommonInputs().getAPIVersion()) .append(GET_VM_DETAILS_PATH); uriBuilder.setPath(pathString.toString()); return uriBuilder.build().toURL().toString(); }  @NotNull static Map<String, String> listVMs(@NotNull final NutanixListVMsInputs nutanixListVMsInputs); @NotNull static Map<String, String> createVM(@NotNull final NutanixCreateVMInputs nutanixCreateVMInputs); @NotNull static Map<String, String> updateVM(@NotNull final NutanixUpdateVMInputs nutanixUpdateVMInputs); @NotNull static Map<String, String> deleteVM(@NotNull final NutanixDeleteVMInputs nutanixDeleteVMInputs); @NotNull static Map<String, String> setVMPowerState(@NotNull final NutanixSetVMPowerStateInputs nutanixSetVMPowerStateInputs); @NotNull static Map<String, String> getVMDetails(@NotNull final NutanixGetVMDetailsInputs nutanixGetVMDetailsInputs); @NotNull static String listVMsURL(NutanixListVMsInputs nutanixListVMsInputs); @NotNull static String getVMDetailsURL(NutanixGetVMDetailsInputs nutanixGetVMDetailsInputs); @NotNull static String createVMURL(NutanixCreateVMInputs nutanixCreateVMInputs); @NotNull static String updateVMURL(NutanixUpdateVMInputs nutanixUpdateVMInputs); static String deleteVMURL(NutanixDeleteVMInputs nutanixDeleteVMInputs); @NotNull static String setVMPowerStateURL(NutanixSetVMPowerStateInputs nutanixSetVMPowerStateInputs); @NotNull static String createVMBody(NutanixCreateVMInputs nutanixCreateVMInputs, String delimiter); @NotNull static String setVMPowerStateBody(NutanixSetVMPowerStateInputs nutanixSetVMPowerStateInputs); @NotNull static String updateVMBody(NutanixUpdateVMInputs nutanixUpdateVMInputs, String delimiter); }
VMImpl { @NotNull public static String createVMURL(NutanixCreateVMInputs nutanixCreateVMInputs) throws Exception { final URIBuilder uriBuilder = getUriBuilder(nutanixCreateVMInputs.getCommonInputs()); StringBuilder pathString = new StringBuilder() .append(API) .append(nutanixCreateVMInputs.getCommonInputs().getAPIVersion()) .append(GET_VM_DETAILS_PATH); uriBuilder.setPath(pathString.toString()); return uriBuilder.build().toURL().toString(); }  @NotNull static Map<String, String> listVMs(@NotNull final NutanixListVMsInputs nutanixListVMsInputs); @NotNull static Map<String, String> createVM(@NotNull final NutanixCreateVMInputs nutanixCreateVMInputs); @NotNull static Map<String, String> updateVM(@NotNull final NutanixUpdateVMInputs nutanixUpdateVMInputs); @NotNull static Map<String, String> deleteVM(@NotNull final NutanixDeleteVMInputs nutanixDeleteVMInputs); @NotNull static Map<String, String> setVMPowerState(@NotNull final NutanixSetVMPowerStateInputs nutanixSetVMPowerStateInputs); @NotNull static Map<String, String> getVMDetails(@NotNull final NutanixGetVMDetailsInputs nutanixGetVMDetailsInputs); @NotNull static String listVMsURL(NutanixListVMsInputs nutanixListVMsInputs); @NotNull static String getVMDetailsURL(NutanixGetVMDetailsInputs nutanixGetVMDetailsInputs); @NotNull static String createVMURL(NutanixCreateVMInputs nutanixCreateVMInputs); @NotNull static String updateVMURL(NutanixUpdateVMInputs nutanixUpdateVMInputs); static String deleteVMURL(NutanixDeleteVMInputs nutanixDeleteVMInputs); @NotNull static String setVMPowerStateURL(NutanixSetVMPowerStateInputs nutanixSetVMPowerStateInputs); @NotNull static String createVMBody(NutanixCreateVMInputs nutanixCreateVMInputs, String delimiter); @NotNull static String setVMPowerStateBody(NutanixSetVMPowerStateInputs nutanixSetVMPowerStateInputs); @NotNull static String updateVMBody(NutanixUpdateVMInputs nutanixUpdateVMInputs, String delimiter);  }