/** * @param policyId policy id of the snapshot, if this is null, then use MANUAL_POLICY. */ public static CreateSnapshotOptions policyId(String policyId) { return new CreateSnapshotOptions().policyId(policyId); } }
/** * @param policyId policy id of the snapshot, if this is null, then use MANUAL_POLICY. */ public static CreateSnapshotOptions policyId(String policyId) { return new CreateSnapshotOptions().policyId(policyId); } }
/** * @param policyId policy id of the snapshot, if this is null, then use MANUAL_POLICY. */ public static CreateSnapshotOptions policyId(String policyId) { return new CreateSnapshotOptions().policyId(policyId); } }
public void testCreateSnapshotOptions() throws NoSuchMethodException { Invokable<?, ?> method = method(SnapshotAsyncClient.class, "createSnapshot", String.class, CreateSnapshotOptions[].class); GeneratedHttpRequest httpRequest = processor.createRequest(method, ImmutableList.<Object> of(5, CreateSnapshotOptions.Builder.accountInDomain("acc", "7").policyId("9"))); assertRequestLineEquals(httpRequest, "GET http://localhost:8080/client/api?response=json&command=createSnapshot&volumeid=5&account=acc&domainid=7&policyid=9 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); }
public void testCreateSnapshotOptions() throws NoSuchMethodException { Invokable<?, ?> method = method(SnapshotApi.class, "createSnapshot", String.class, CreateSnapshotOptions[].class); GeneratedHttpRequest httpRequest = processor.createRequest(method, ImmutableList.<Object> of(5, CreateSnapshotOptions.Builder.accountInDomain("acc", "7").policyId("9"))); assertRequestLineEquals(httpRequest, "GET http://localhost:8080/client/api?response=json&command=createSnapshot&volumeid=5&account=acc&domainid=7&policyid=9 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); }