/** * @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 account The account of the snapshot. * @param domainId The domain ID of the snapshot. */ public static CreateSnapshotOptions accountInDomain(String account, String domainId) { return (CreateSnapshotOptions) new CreateSnapshotOptions().accountInDomain(account, domainId); }
/** * @param domainId The domain ID of the snapshot. */ public static CreateSnapshotOptions domainId(String domainId) { return (CreateSnapshotOptions) new CreateSnapshotOptions().domainId(domainId); }
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); }
/** * @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 domainId The domain ID of the snapshot. */ public static CreateSnapshotOptions domainId(String domainId) { return (CreateSnapshotOptions) new CreateSnapshotOptions().domainId(domainId); }
/** * @param account The account of the snapshot. * @param domainId The domain ID of the snapshot. */ public static CreateSnapshotOptions accountInDomain(String account, String domainId) { return (CreateSnapshotOptions) new CreateSnapshotOptions().accountInDomain(account, domainId); }
/** * @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 domainId The domain ID of the snapshot. */ public static CreateSnapshotOptions domainId(String domainId) { return (CreateSnapshotOptions) new CreateSnapshotOptions().domainId(domainId); }
/** * @param account The account of the snapshot. * @param domainId The domain ID of the snapshot. */ public static CreateSnapshotOptions accountInDomain(String account, String domainId) { return (CreateSnapshotOptions) new CreateSnapshotOptions().accountInDomain(account, domainId); }