/** * @param displayText the display text of the image */ public static UpdateISOOptions displayText(String displayText) { return new UpdateISOOptions().displayText(displayText); }
/** * @param format the format for the image */ public static UpdateISOOptions format(String format) { return new UpdateISOOptions().format(format); }
/** * @param name the name of the image file */ public static UpdateISOOptions name(String name) { return new UpdateISOOptions().name(name); }
/** * @param osTypeId the ID of the OS type that best represents the OS of this image. */ public static UpdateISOOptions osTypeId(String osTypeId) { return new UpdateISOOptions().osTypeId(osTypeId); }
public void testUpdateISOOptions() throws NoSuchMethodException { Invokable<?, ?> method = method(ISOAsyncClient.class, "updateISO", String.class, UpdateISOOptions[].class); GeneratedHttpRequest httpRequest = processor.createRequest(method, ImmutableList.<Object> of(3, UpdateISOOptions.Builder.bootable(true).displayText("robert").format("format").name("bob").osTypeId("9").passwordEnabled(true))); assertRequestLineEquals(httpRequest, "GET http://localhost:8080/client/api?response=json&command=updateIso&id=3&bootable=true&displaytext=robert&format=format&name=bob&ostypeid=9&passwordenabled=true HTTP/1.1"); assertNonPayloadHeadersEqual(httpRequest, "Accept: application/json\n"); assertPayloadEquals(httpRequest, null, null, false); assertResponseParserClassEquals(method, httpRequest, UnwrapOnlyJsonValue.class); assertSaxResponseParserClassEquals(method, null); assertFallbackClassEquals(method, MapHttp4xxCodesToExceptions.class); checkFilters(httpRequest); }
/** * @param passwordEnabled true if the image supports the password reset feature; default is false */ public static UpdateISOOptions passwordEnabled(boolean passwordEnabled) { return new UpdateISOOptions().passwordEnabled(passwordEnabled); } }
/** * @param bootable true if image is bootable, false otherwise */ public static UpdateISOOptions bootable(boolean bootable) { return new UpdateISOOptions().bootable(bootable); }
public void testUpdateISOOptions() throws NoSuchMethodException { Invokable<?, ?> method = method(ISOApi.class, "updateISO", String.class, UpdateISOOptions[].class); GeneratedHttpRequest httpRequest = processor.createRequest(method, ImmutableList.<Object> of(3, UpdateISOOptions.Builder.bootable(true).displayText("robert").format("format").name("bob").osTypeId("9").passwordEnabled(true))); assertRequestLineEquals(httpRequest, "GET http://localhost:8080/client/api?response=json&command=updateIso&id=3&bootable=true&displaytext=robert&format=format&name=bob&ostypeid=9&passwordenabled=true HTTP/1.1"); assertNonPayloadHeadersEqual(httpRequest, "Accept: application/json\n"); assertPayloadEquals(httpRequest, null, null, false); assertResponseParserClassEquals(method, httpRequest, UnwrapOnlyJsonValue.class); assertSaxResponseParserClassEquals(method, null); assertFallbackClassEquals(method, MapHttp4xxCodesToExceptions.class); checkFilters(httpRequest); }
/** * @param osTypeId the ID of the OS type that best represents the OS of this image. */ public static UpdateISOOptions osTypeId(String osTypeId) { return new UpdateISOOptions().osTypeId(osTypeId); }
/** * @param passwordEnabled true if the image supports the password reset feature; default is false */ public static UpdateISOOptions passwordEnabled(boolean passwordEnabled) { return new UpdateISOOptions().passwordEnabled(passwordEnabled); } }
/** * @param bootable true if image is bootable, false otherwise */ public static UpdateISOOptions bootable(boolean bootable) { return new UpdateISOOptions().bootable(bootable); }
/** * @param name the name of the image file */ public static UpdateISOOptions name(String name) { return new UpdateISOOptions().name(name); }
/** * @param displayText the display text of the image */ public static UpdateISOOptions displayText(String displayText) { return new UpdateISOOptions().displayText(displayText); }
/** * @param osTypeId the ID of the OS type that best represents the OS of this image. */ public static UpdateISOOptions osTypeId(String osTypeId) { return new UpdateISOOptions().osTypeId(osTypeId); }
/** * @param format the format for the image */ public static UpdateISOOptions format(String format) { return new UpdateISOOptions().format(format); }
/** * @param passwordEnabled true if the image supports the password reset feature; default is false */ public static UpdateISOOptions passwordEnabled(boolean passwordEnabled) { return new UpdateISOOptions().passwordEnabled(passwordEnabled); } }
/** * @param bootable true if image is bootable, false otherwise */ public static UpdateISOOptions bootable(boolean bootable) { return new UpdateISOOptions().bootable(bootable); }
/** * @param name the name of the image file */ public static UpdateISOOptions name(String name) { return new UpdateISOOptions().name(name); }
/** * @param displayText the display text of the image */ public static UpdateISOOptions displayText(String displayText) { return new UpdateISOOptions().displayText(displayText); }
/** * @param format the format for the image */ public static UpdateISOOptions format(String format) { return new UpdateISOOptions().format(format); }