/** * @param allocationState Allocation state of this Host for allocation of new resources */ public static AddClusterOptions allocationState(AllocationState allocationState) { return new AddClusterOptions().allocationState(allocationState); }
/** * @param podId the Pod ID for the host */ public static AddClusterOptions podId(String podId) { return new AddClusterOptions().podId(podId); }
/** * @param allocationState Allocation state of this Host for allocation of new resources */ public static AddClusterOptions allocationState(AllocationState allocationState) { return new AddClusterOptions().allocationState(allocationState); }
/** * @param url the URL */ public static AddClusterOptions url(String url) { return new AddClusterOptions().url(url); }
/** * @param password the password for the host */ public static AddClusterOptions password(String password) { return new AddClusterOptions().password(password); }
/** * @param podId the Pod ID for the host */ public static AddClusterOptions podId(String podId) { return new AddClusterOptions().podId(podId); }
/** * @param password the password for the host */ public static AddClusterOptions password(String password) { return new AddClusterOptions().password(password); }
/** * @param username the username for the cluster */ public static AddClusterOptions username(String username) { return new AddClusterOptions().username(username); }
/** * @param url the URL */ public static AddClusterOptions url(String url) { return new AddClusterOptions().url(url); }
/** * @param podId the Pod ID for the host */ public static AddClusterOptions podId(String podId) { return new AddClusterOptions().podId(podId); }
/** * @param allocationState Allocation state of this Host for allocation of new resources */ public static AddClusterOptions allocationState(AllocationState allocationState) { return new AddClusterOptions().allocationState(allocationState); }
/** * @param username the username for the cluster */ public static AddClusterOptions username(String username) { return new AddClusterOptions().username(username); }
/** * @param url the URL */ public static AddClusterOptions url(String url) { return new AddClusterOptions().url(url); }
public void testPodId() { AddClusterOptions options = new AddClusterOptions().podId("42"); assertEquals(ImmutableList.of("42"), options.buildQueryParameters().get("podid")); }
public void testUrl() { AddClusterOptions options = new AddClusterOptions().url("http://example.com"); assertEquals(ImmutableList.of("http://example.com"), options.buildQueryParameters().get("url")); }
public void testUsername() { AddClusterOptions options = new AddClusterOptions().username("fred"); assertEquals(ImmutableList.of("fred"), options.buildQueryParameters().get("username")); }
public void testAllocationState() { AddClusterOptions options = new AddClusterOptions().allocationState(AllocationState.ENABLED); assertEquals(ImmutableList.of("Enabled"), options.buildQueryParameters().get("allocationstate")); }
public void testPassword() { AddClusterOptions options = new AddClusterOptions().password("sekrit"); assertEquals(ImmutableList.of("sekrit"), options.buildQueryParameters().get("password")); }
public void testUrl() { AddClusterOptions options = new AddClusterOptions().url("http://example.com"); assertEquals(ImmutableList.of("http://example.com"), options.buildQueryParameters().get("url")); }
public void testPodId() { AddClusterOptions options = new AddClusterOptions().podId("42"); assertEquals(ImmutableList.of("42"), options.buildQueryParameters().get("podid")); }